Debian Codegraph @

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

raw symbols SCIP
1 // Copyright 2015-2026 The Khronos Group Inc.
2 //
3 // SPDX-License-Identifier: Apache-2.0 OR MIT
4 //
5
6 // This header is generated from the Khronos Vulkan XML API Registry.
7
8 #ifndef VULKAN_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 VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE
15 {
16 //===========================
17 //=== COMMAND Definitions ===
18 //===========================
19
20 //=== VK_VERSION_1_0 ===
21
22 // wrapper function for command vkCreateInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateInstance.html
23 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateInstance ), bool>::type>
24 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result createInstance(
25 InstanceCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, Instance * pInstance, Dispatch const & d ) VULKAN_HPP_NOEXCEPT
26 {
27 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28 return static_cast<Result>( d.vkCreateInstance( reinterpret_cast<VkInstanceCreateInfo const *>( pCreateInfo ),
29 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
30 reinterpret_cast<VkInstance *>( pInstance ) ) );
31 }
32
33 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
34 // wrapper function for command vkCreateInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateInstance.html
35 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateInstance ), bool>::type>
36 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Instance>::type createInstance(
37 InstanceCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
38 {
39 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
40 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
41 VULKAN_HPP_ASSERT( d.vkCreateInstance && "Function <vkCreateInstance> requires <VK_VERSION_1_0>" );
42 # endif
43
44 Instance instance;
45 Result result = static_cast<Result>( d.vkCreateInstance( reinterpret_cast<VkInstanceCreateInfo const *>( &createInfo ),
46 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
47 reinterpret_cast<VkInstance *>( &instance ) ) );
48 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::createInstance" );
49
50 return detail::createResultValueType( result, std::move( instance ) );
51 }
52
53 # ifndef VULKAN_HPP_NO_SMART_HANDLE
54 // wrapper function for command vkCreateInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateInstance.html
55 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateInstance ), bool>::type>
56 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Instance, Dispatch>>::type createInstanceUnique(
57 InstanceCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
58 {
59 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
60 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
61 VULKAN_HPP_ASSERT( d.vkCreateInstance && "Function <vkCreateInstance> requires <VK_VERSION_1_0>" );
62 # endif
63
64 Instance instance;
65 Result result = static_cast<Result>( d.vkCreateInstance( reinterpret_cast<VkInstanceCreateInfo const *>( &createInfo ),
66 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
67 reinterpret_cast<VkInstance *>( &instance ) ) );
68 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::createInstanceUnique" );
69
70 return detail::createResultValueType( result,
71 UniqueHandle<Instance, Dispatch>( instance, detail::ObjectDestroy<detail::NoParent, Dispatch>( allocator, d ) ) );
72 }
73 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
74 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
75
76 // wrapper function for command vkDestroyInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyInstance.html
77 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyInstance ), bool>::type>
78 VULKAN_HPP_INLINE void Instance::destroy( AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
79 {
80 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
81 d.vkDestroyInstance( static_cast<VkInstance>( m_instance ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
82 }
83
84 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
85 // wrapper function for command vkDestroyInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyInstance.html
86 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyInstance ), bool>::type>
87 VULKAN_HPP_INLINE void Instance::destroy( Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
88 {
89 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
90 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
91 VULKAN_HPP_ASSERT( d.vkDestroyInstance && "Function <vkDestroyInstance> requires <VK_VERSION_1_0>" );
92 # endif
93
94 d.vkDestroyInstance( m_instance, reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
95 }
96 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
97
98 // wrapper function for command vkEnumeratePhysicalDevices, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDevices.html
99 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDevices ), bool>::type>
100 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::enumeratePhysicalDevices(
101 uint32_t * pPhysicalDeviceCount, PhysicalDevice * pPhysicalDevices, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
102 {
103 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
104 return static_cast<Result>(
105 d.vkEnumeratePhysicalDevices( static_cast<VkInstance>( m_instance ), pPhysicalDeviceCount, reinterpret_cast<VkPhysicalDevice *>( pPhysicalDevices ) ) );
106 }
107
108 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
109 // wrapper function for command vkEnumeratePhysicalDevices, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDevices.html
110 template <typename PhysicalDeviceAllocator,
111 typename Dispatch,
112 typename std::enable_if<std::is_same<typename PhysicalDeviceAllocator::value_type, PhysicalDevice>::value, int>::type,
113 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDevices ), bool>::type>
114 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDevice, PhysicalDeviceAllocator>>::type
115 Instance::enumeratePhysicalDevices( Dispatch const & d ) const
116 {
117 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
118 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
119 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDevices && "Function <vkEnumeratePhysicalDevices> requires <VK_VERSION_1_0>" );
120 # endif
121
122 std::vector<PhysicalDevice, PhysicalDeviceAllocator> physicalDevices;
123 uint32_t physicalDeviceCount;
124 Result result;
125 do
126 {
127 result = static_cast<Result>( d.vkEnumeratePhysicalDevices( m_instance, &physicalDeviceCount, nullptr ) );
128 if ( ( result == Result::eSuccess ) && physicalDeviceCount )
129 {
130 physicalDevices.resize( physicalDeviceCount );
131 result = static_cast<Result>(
132 d.vkEnumeratePhysicalDevices( m_instance, &physicalDeviceCount, reinterpret_cast<VkPhysicalDevice *>( physicalDevices.data() ) ) );
133 }
134 } while ( result == Result::eIncomplete );
135 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDevices" );
136 VULKAN_HPP_ASSERT( physicalDeviceCount <= physicalDevices.size() );
137 if ( physicalDeviceCount < physicalDevices.size() )
138 {
139 physicalDevices.resize( physicalDeviceCount );
140 }
141 return detail::createResultValueType( result, std::move( physicalDevices ) );
142 }
143
144 // wrapper function for command vkEnumeratePhysicalDevices, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDevices.html
145 template <typename PhysicalDeviceAllocator,
146 typename Dispatch,
147 typename std::enable_if<std::is_same<typename PhysicalDeviceAllocator::value_type, PhysicalDevice>::value, int>::type,
148 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDevices ), bool>::type>
149 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDevice, PhysicalDeviceAllocator>>::type
150 Instance::enumeratePhysicalDevices( PhysicalDeviceAllocator const & physicalDeviceAllocator, Dispatch const & d ) const
151 {
152 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
153 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
154 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDevices && "Function <vkEnumeratePhysicalDevices> requires <VK_VERSION_1_0>" );
155 # endif
156
157 std::vector<PhysicalDevice, PhysicalDeviceAllocator> physicalDevices( physicalDeviceAllocator );
158 uint32_t physicalDeviceCount;
159 Result result;
160 do
161 {
162 result = static_cast<Result>( d.vkEnumeratePhysicalDevices( m_instance, &physicalDeviceCount, nullptr ) );
163 if ( ( result == Result::eSuccess ) && physicalDeviceCount )
164 {
165 physicalDevices.resize( physicalDeviceCount );
166 result = static_cast<Result>(
167 d.vkEnumeratePhysicalDevices( m_instance, &physicalDeviceCount, reinterpret_cast<VkPhysicalDevice *>( physicalDevices.data() ) ) );
168 }
169 } while ( result == Result::eIncomplete );
170 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDevices" );
171 VULKAN_HPP_ASSERT( physicalDeviceCount <= physicalDevices.size() );
172 if ( physicalDeviceCount < physicalDevices.size() )
173 {
174 physicalDevices.resize( physicalDeviceCount );
175 }
176 return detail::createResultValueType( result, std::move( physicalDevices ) );
177 }
178 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
179
180 // wrapper function for command vkGetPhysicalDeviceFeatures, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures.html
181 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures ), bool>::type>
182 VULKAN_HPP_INLINE void PhysicalDevice::getFeatures( PhysicalDeviceFeatures * pFeatures, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
183 {
184 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
185 d.vkGetPhysicalDeviceFeatures( static_cast<VkPhysicalDevice>( m_physicalDevice ), reinterpret_cast<VkPhysicalDeviceFeatures *>( pFeatures ) );
186 }
187
188 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
189 // wrapper function for command vkGetPhysicalDeviceFeatures, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures.html
190 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures ), bool>::type>
191 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceFeatures PhysicalDevice::getFeatures( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
192 {
193 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
194 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
195 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFeatures && "Function <vkGetPhysicalDeviceFeatures> requires <VK_VERSION_1_0>" );
196 # endif
197
198 PhysicalDeviceFeatures features;
199 d.vkGetPhysicalDeviceFeatures( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures *>( &features ) );
200
201 return features;
202 }
203 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
204
205 // wrapper function for command vkGetPhysicalDeviceFormatProperties, see
206 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties.html
207 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties ), bool>::type>
208 VULKAN_HPP_INLINE void PhysicalDevice::getFormatProperties( Format format, FormatProperties * pFormatProperties, Dispatch const & d )
209 const VULKAN_HPP_NOEXCEPT
210 {
211 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
212 d.vkGetPhysicalDeviceFormatProperties(
213 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties *>( pFormatProperties ) );
214 }
215
216 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
217 // wrapper function for command vkGetPhysicalDeviceFormatProperties, see
218 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties.html
219 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties ), bool>::type>
220 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE FormatProperties PhysicalDevice::getFormatProperties( Format format, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
221 {
222 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
223 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
224 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFormatProperties && "Function <vkGetPhysicalDeviceFormatProperties> requires <VK_VERSION_1_0>" );
225 # endif
226
227 FormatProperties formatProperties;
228 d.vkGetPhysicalDeviceFormatProperties( m_physicalDevice, static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties *>( &formatProperties ) );
229
230 return formatProperties;
231 }
232 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
233
234 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties, see
235 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties.html
236 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties ), bool>::type>
237 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getImageFormatProperties( Format format,
238 ImageType type,
239 ImageTiling tiling,
240 ImageUsageFlags usage,
241 ImageCreateFlags flags,
242 ImageFormatProperties * pImageFormatProperties,
243 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
244 {
245 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
246 return static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
247 static_cast<VkFormat>( format ),
248 static_cast<VkImageType>( type ),
249 static_cast<VkImageTiling>( tiling ),
250 static_cast<VkImageUsageFlags>( usage ),
251 static_cast<VkImageCreateFlags>( flags ),
252 reinterpret_cast<VkImageFormatProperties *>( pImageFormatProperties ) ) );
253 }
254
255 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
256 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties, see
257 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties.html
258 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties ), bool>::type>
259 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageFormatProperties>::type PhysicalDevice::getImageFormatProperties(
260 Format format, ImageType type, ImageTiling tiling, ImageUsageFlags usage, ImageCreateFlags flags, Dispatch const & d ) const
261 {
262 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
263 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
264 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceImageFormatProperties && "Function <vkGetPhysicalDeviceImageFormatProperties> requires <VK_VERSION_1_0>" );
265 # endif
266
267 ImageFormatProperties imageFormatProperties;
268 Result result = static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties( m_physicalDevice,
269 static_cast<VkFormat>( format ),
270 static_cast<VkImageType>( type ),
271 static_cast<VkImageTiling>( tiling ),
272 static_cast<VkImageUsageFlags>( usage ),
273 static_cast<VkImageCreateFlags>( flags ),
274 reinterpret_cast<VkImageFormatProperties *>( &imageFormatProperties ) ) );
275 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties" );
276
277 return detail::createResultValueType( result, std::move( imageFormatProperties ) );
278 }
279 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
280
281 // wrapper function for command vkGetPhysicalDeviceProperties, see
282 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties.html
283 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties ), bool>::type>
284 VULKAN_HPP_INLINE void PhysicalDevice::getProperties( PhysicalDeviceProperties * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
285 {
286 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
287 d.vkGetPhysicalDeviceProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ), reinterpret_cast<VkPhysicalDeviceProperties *>( pProperties ) );
288 }
289
290 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
291 // wrapper function for command vkGetPhysicalDeviceProperties, see
292 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties.html
293 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties ), bool>::type>
294 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceProperties PhysicalDevice::getProperties( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
295 {
296 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
297 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
298 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceProperties && "Function <vkGetPhysicalDeviceProperties> requires <VK_VERSION_1_0>" );
299 # endif
300
301 PhysicalDeviceProperties properties;
302 d.vkGetPhysicalDeviceProperties( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties *>( &properties ) );
303
304 return properties;
305 }
306 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
307
308 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties, see
309 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties.html
310 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties ), bool>::type>
311 VULKAN_HPP_INLINE void PhysicalDevice::getQueueFamilyProperties(
312 uint32_t * pQueueFamilyPropertyCount, QueueFamilyProperties * pQueueFamilyProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
313 {
314 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
315 d.vkGetPhysicalDeviceQueueFamilyProperties(
316 static_cast<VkPhysicalDevice>( m_physicalDevice ), pQueueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties *>( pQueueFamilyProperties ) );
317 }
318
319 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
320 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties, see
321 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties.html
322 template <typename QueueFamilyPropertiesAllocator,
323 typename Dispatch,
324 typename std::enable_if<std::is_same<typename QueueFamilyPropertiesAllocator::value_type, QueueFamilyProperties>::value, int>::type,
325 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties ), bool>::type>
326 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties, QueueFamilyPropertiesAllocator> PhysicalDevice::getQueueFamilyProperties(
327 Dispatch const & d ) const
328 {
329 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
330 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
331 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties && "Function <vkGetPhysicalDeviceQueueFamilyProperties> requires <VK_VERSION_1_0>" );
332 # endif
333
334 std::vector<QueueFamilyProperties, QueueFamilyPropertiesAllocator> queueFamilyProperties;
335 uint32_t queueFamilyPropertyCount;
336 d.vkGetPhysicalDeviceQueueFamilyProperties( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
337 queueFamilyProperties.resize( queueFamilyPropertyCount );
338 d.vkGetPhysicalDeviceQueueFamilyProperties(
339 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties *>( queueFamilyProperties.data() ) );
340
341 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
342 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
343 {
344 queueFamilyProperties.resize( queueFamilyPropertyCount );
345 }
346 return queueFamilyProperties;
347 }
348
349 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties, see
350 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties.html
351 template <typename QueueFamilyPropertiesAllocator,
352 typename Dispatch,
353 typename std::enable_if<std::is_same<typename QueueFamilyPropertiesAllocator::value_type, QueueFamilyProperties>::value, int>::type,
354 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties ), bool>::type>
355 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties, QueueFamilyPropertiesAllocator> PhysicalDevice::getQueueFamilyProperties(
356 QueueFamilyPropertiesAllocator const & queueFamilyPropertiesAllocator, Dispatch const & d ) const
357 {
358 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
359 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
360 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties && "Function <vkGetPhysicalDeviceQueueFamilyProperties> requires <VK_VERSION_1_0>" );
361 # endif
362
363 std::vector<QueueFamilyProperties, QueueFamilyPropertiesAllocator> queueFamilyProperties( queueFamilyPropertiesAllocator );
364 uint32_t queueFamilyPropertyCount;
365 d.vkGetPhysicalDeviceQueueFamilyProperties( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
366 queueFamilyProperties.resize( queueFamilyPropertyCount );
367 d.vkGetPhysicalDeviceQueueFamilyProperties(
368 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties *>( queueFamilyProperties.data() ) );
369
370 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
371 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
372 {
373 queueFamilyProperties.resize( queueFamilyPropertyCount );
374 }
375 return queueFamilyProperties;
376 }
377 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
378
379 // wrapper function for command vkGetPhysicalDeviceMemoryProperties, see
380 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties.html
381 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties ), bool>::type>
382 VULKAN_HPP_INLINE void PhysicalDevice::getMemoryProperties( PhysicalDeviceMemoryProperties * pMemoryProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
383 {
384 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
385 d.vkGetPhysicalDeviceMemoryProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
386 reinterpret_cast<VkPhysicalDeviceMemoryProperties *>( pMemoryProperties ) );
387 }
388
389 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
390 // wrapper function for command vkGetPhysicalDeviceMemoryProperties, see
391 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties.html
392 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties ), bool>::type>
393 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceMemoryProperties PhysicalDevice::getMemoryProperties( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
394 {
395 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
396 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
397 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceMemoryProperties && "Function <vkGetPhysicalDeviceMemoryProperties> requires <VK_VERSION_1_0>" );
398 # endif
399
400 PhysicalDeviceMemoryProperties memoryProperties;
401 d.vkGetPhysicalDeviceMemoryProperties( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceMemoryProperties *>( &memoryProperties ) );
402
403 return memoryProperties;
404 }
405 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
406
407 // wrapper function for command vkGetInstanceProcAddr, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetInstanceProcAddr.html
408 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetInstanceProcAddr ), bool>::type>
409 VULKAN_HPP_INLINE PFN_vkVoidFunction Instance::getProcAddr( char const * pName, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
410 {
411 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
412 return d.vkGetInstanceProcAddr( static_cast<VkInstance>( m_instance ), pName );
413 }
414
415 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
416 // wrapper function for command vkGetInstanceProcAddr, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetInstanceProcAddr.html
417 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetInstanceProcAddr ), bool>::type>
418 VULKAN_HPP_INLINE PFN_VoidFunction Instance::getProcAddr( std::string const & name, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
419 {
420 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
421 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
422 VULKAN_HPP_ASSERT( d.vkGetInstanceProcAddr && "Function <vkGetInstanceProcAddr> requires <VK_VERSION_1_0>" );
423 # endif
424
425 PFN_vkVoidFunction result = d.vkGetInstanceProcAddr( m_instance, name.c_str() );
426
427 return result;
428 }
429 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
430
431 // wrapper function for command vkGetDeviceProcAddr, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceProcAddr.html
432 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceProcAddr ), bool>::type>
433 VULKAN_HPP_INLINE PFN_vkVoidFunction Device::getProcAddr( char const * pName, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
434 {
435 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
436 return d.vkGetDeviceProcAddr( static_cast<VkDevice>( m_device ), pName );
437 }
438
439 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
440 // wrapper function for command vkGetDeviceProcAddr, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceProcAddr.html
441 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceProcAddr ), bool>::type>
442 VULKAN_HPP_INLINE PFN_VoidFunction Device::getProcAddr( std::string const & name, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
443 {
444 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
445 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
446 VULKAN_HPP_ASSERT( d.vkGetDeviceProcAddr && "Function <vkGetDeviceProcAddr> requires <VK_VERSION_1_0>" );
447 # endif
448
449 PFN_vkVoidFunction result = d.vkGetDeviceProcAddr( m_device, name.c_str() );
450
451 return result;
452 }
453 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
454
455 // wrapper function for command vkCreateDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDevice.html
456 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDevice ), bool>::type>
457 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::createDevice(
458 DeviceCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, Device * pDevice, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
459 {
460 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
461 return static_cast<Result>( d.vkCreateDevice( static_cast<VkPhysicalDevice>( m_physicalDevice ),
462 reinterpret_cast<VkDeviceCreateInfo const *>( pCreateInfo ),
463 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
464 reinterpret_cast<VkDevice *>( pDevice ) ) );
465 }
466
467 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
468 // wrapper function for command vkCreateDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDevice.html
469 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDevice ), bool>::type>
470 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Device>::type PhysicalDevice::createDevice(
471 DeviceCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
472 {
473 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
474 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
475 VULKAN_HPP_ASSERT( d.vkCreateDevice && "Function <vkCreateDevice> requires <VK_VERSION_1_0>" );
476 # endif
477
478 Device device;
479 Result result = static_cast<Result>( d.vkCreateDevice( m_physicalDevice,
480 reinterpret_cast<VkDeviceCreateInfo const *>( &createInfo ),
481 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
482 reinterpret_cast<VkDevice *>( &device ) ) );
483 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::createDevice" );
484
485 return detail::createResultValueType( result, std::move( device ) );
486 }
487
488 # ifndef VULKAN_HPP_NO_SMART_HANDLE
489 // wrapper function for command vkCreateDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDevice.html
490 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDevice ), bool>::type>
491 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Device, Dispatch>>::type PhysicalDevice::createDeviceUnique(
492 DeviceCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
493 {
494 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
495 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
496 VULKAN_HPP_ASSERT( d.vkCreateDevice && "Function <vkCreateDevice> requires <VK_VERSION_1_0>" );
497 # endif
498
499 Device device;
500 Result result = static_cast<Result>( d.vkCreateDevice( m_physicalDevice,
501 reinterpret_cast<VkDeviceCreateInfo const *>( &createInfo ),
502 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
503 reinterpret_cast<VkDevice *>( &device ) ) );
504 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::createDeviceUnique" );
505
506 return detail::createResultValueType( result, UniqueHandle<Device, Dispatch>( device, detail::ObjectDestroy<detail::NoParent, Dispatch>( allocator, d ) ) );
507 }
508 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
509 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
510
511 // wrapper function for command vkDestroyDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDevice.html
512 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDevice ), bool>::type>
513 VULKAN_HPP_INLINE void Device::destroy( AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
514 {
515 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
516 d.vkDestroyDevice( static_cast<VkDevice>( m_device ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
517 }
518
519 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
520 // wrapper function for command vkDestroyDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDevice.html
521 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDevice ), bool>::type>
522 VULKAN_HPP_INLINE void Device::destroy( Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
523 {
524 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
525 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
526 VULKAN_HPP_ASSERT( d.vkDestroyDevice && "Function <vkDestroyDevice> requires <VK_VERSION_1_0>" );
527 # endif
528
529 d.vkDestroyDevice( m_device, reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
530 }
531 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
532
533 // wrapper function for command vkEnumerateInstanceExtensionProperties, see
534 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceExtensionProperties.html
535 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceExtensionProperties ), bool>::type>
536 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result enumerateInstanceExtensionProperties(
537 char const * pLayerName, uint32_t * pPropertyCount, ExtensionProperties * pProperties, Dispatch const & d ) VULKAN_HPP_NOEXCEPT
538 {
539 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
540 return static_cast<Result>(
541 d.vkEnumerateInstanceExtensionProperties( pLayerName, pPropertyCount, reinterpret_cast<VkExtensionProperties *>( pProperties ) ) );
542 }
543
544 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
545 // wrapper function for command vkEnumerateInstanceExtensionProperties, see
546 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceExtensionProperties.html
547 template <typename ExtensionPropertiesAllocator,
548 typename Dispatch,
549 typename std::enable_if<std::is_same<typename ExtensionPropertiesAllocator::value_type, ExtensionProperties>::value, int>::type,
550 typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceExtensionProperties ), bool>::type>
551 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<ExtensionProperties, ExtensionPropertiesAllocator>>::type
552 enumerateInstanceExtensionProperties( Optional<std::string const> layerName, Dispatch const & d )
553 {
554 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
555 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
556 VULKAN_HPP_ASSERT( d.vkEnumerateInstanceExtensionProperties && "Function <vkEnumerateInstanceExtensionProperties> requires <VK_VERSION_1_0>" );
557 # endif
558
559 std::vector<ExtensionProperties, ExtensionPropertiesAllocator> properties;
560 uint32_t propertyCount;
561 Result result;
562 do
563 {
564 result = static_cast<Result>( d.vkEnumerateInstanceExtensionProperties( layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) );
565 if ( ( result == Result::eSuccess ) && propertyCount )
566 {
567 properties.resize( propertyCount );
568 result = static_cast<Result>( d.vkEnumerateInstanceExtensionProperties(
569 layerName ? layerName->c_str() : nullptr, &propertyCount, reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
570 }
571 } while ( result == Result::eIncomplete );
572 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::enumerateInstanceExtensionProperties" );
573 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
574 if ( propertyCount < properties.size() )
575 {
576 properties.resize( propertyCount );
577 }
578 return detail::createResultValueType( result, std::move( properties ) );
579 }
580
581 // wrapper function for command vkEnumerateInstanceExtensionProperties, see
582 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceExtensionProperties.html
583 template <typename ExtensionPropertiesAllocator,
584 typename Dispatch,
585 typename std::enable_if<std::is_same<typename ExtensionPropertiesAllocator::value_type, ExtensionProperties>::value, int>::type,
586 typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceExtensionProperties ), bool>::type>
587 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<ExtensionProperties, ExtensionPropertiesAllocator>>::type
588 enumerateInstanceExtensionProperties(
589 Optional<std::string const> layerName, ExtensionPropertiesAllocator const & extensionPropertiesAllocator, Dispatch const & d )
590 {
591 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
592 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
593 VULKAN_HPP_ASSERT( d.vkEnumerateInstanceExtensionProperties && "Function <vkEnumerateInstanceExtensionProperties> requires <VK_VERSION_1_0>" );
594 # endif
595
596 std::vector<ExtensionProperties, ExtensionPropertiesAllocator> properties( extensionPropertiesAllocator );
597 uint32_t propertyCount;
598 Result result;
599 do
600 {
601 result = static_cast<Result>( d.vkEnumerateInstanceExtensionProperties( layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) );
602 if ( ( result == Result::eSuccess ) && propertyCount )
603 {
604 properties.resize( propertyCount );
605 result = static_cast<Result>( d.vkEnumerateInstanceExtensionProperties(
606 layerName ? layerName->c_str() : nullptr, &propertyCount, reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
607 }
608 } while ( result == Result::eIncomplete );
609 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::enumerateInstanceExtensionProperties" );
610 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
611 if ( propertyCount < properties.size() )
612 {
613 properties.resize( propertyCount );
614 }
615 return detail::createResultValueType( result, std::move( properties ) );
616 }
617 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
618
619 // wrapper function for command vkEnumerateDeviceExtensionProperties, see
620 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceExtensionProperties.html
621 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumerateDeviceExtensionProperties ), bool>::type>
622 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::enumerateDeviceExtensionProperties(
623 char const * pLayerName, uint32_t * pPropertyCount, ExtensionProperties * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
624 {
625 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
626 return static_cast<Result>( d.vkEnumerateDeviceExtensionProperties(
627 static_cast<VkPhysicalDevice>( m_physicalDevice ), pLayerName, pPropertyCount, reinterpret_cast<VkExtensionProperties *>( pProperties ) ) );
628 }
629
630 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
631 // wrapper function for command vkEnumerateDeviceExtensionProperties, see
632 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceExtensionProperties.html
633 template <typename ExtensionPropertiesAllocator,
634 typename Dispatch,
635 typename std::enable_if<std::is_same<typename ExtensionPropertiesAllocator::value_type, ExtensionProperties>::value, int>::type,
636 typename std::enable_if<IS_DISPATCHED( vkEnumerateDeviceExtensionProperties ), bool>::type>
637 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<ExtensionProperties, ExtensionPropertiesAllocator>>::type
638 PhysicalDevice::enumerateDeviceExtensionProperties( Optional<std::string const> layerName, Dispatch const & d ) const
639 {
640 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
641 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
642 VULKAN_HPP_ASSERT( d.vkEnumerateDeviceExtensionProperties && "Function <vkEnumerateDeviceExtensionProperties> requires <VK_VERSION_1_0>" );
643 # endif
644
645 std::vector<ExtensionProperties, ExtensionPropertiesAllocator> properties;
646 uint32_t propertyCount;
647 Result result;
648 do
649 {
650 result =
651 static_cast<Result>( d.vkEnumerateDeviceExtensionProperties( m_physicalDevice, layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) );
652 if ( ( result == Result::eSuccess ) && propertyCount )
653 {
654 properties.resize( propertyCount );
655 result = static_cast<Result>( d.vkEnumerateDeviceExtensionProperties(
656 m_physicalDevice, layerName ? layerName->c_str() : nullptr, &propertyCount, reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
657 }
658 } while ( result == Result::eIncomplete );
659 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceExtensionProperties" );
660 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
661 if ( propertyCount < properties.size() )
662 {
663 properties.resize( propertyCount );
664 }
665 return detail::createResultValueType( result, std::move( properties ) );
666 }
667
668 // wrapper function for command vkEnumerateDeviceExtensionProperties, see
669 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceExtensionProperties.html
670 template <typename ExtensionPropertiesAllocator,
671 typename Dispatch,
672 typename std::enable_if<std::is_same<typename ExtensionPropertiesAllocator::value_type, ExtensionProperties>::value, int>::type,
673 typename std::enable_if<IS_DISPATCHED( vkEnumerateDeviceExtensionProperties ), bool>::type>
674 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<ExtensionProperties, ExtensionPropertiesAllocator>>::type
675 PhysicalDevice::enumerateDeviceExtensionProperties(
676 Optional<std::string const> layerName, ExtensionPropertiesAllocator const & extensionPropertiesAllocator, Dispatch const & d ) const
677 {
678 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
679 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
680 VULKAN_HPP_ASSERT( d.vkEnumerateDeviceExtensionProperties && "Function <vkEnumerateDeviceExtensionProperties> requires <VK_VERSION_1_0>" );
681 # endif
682
683 std::vector<ExtensionProperties, ExtensionPropertiesAllocator> properties( extensionPropertiesAllocator );
684 uint32_t propertyCount;
685 Result result;
686 do
687 {
688 result =
689 static_cast<Result>( d.vkEnumerateDeviceExtensionProperties( m_physicalDevice, layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) );
690 if ( ( result == Result::eSuccess ) && propertyCount )
691 {
692 properties.resize( propertyCount );
693 result = static_cast<Result>( d.vkEnumerateDeviceExtensionProperties(
694 m_physicalDevice, layerName ? layerName->c_str() : nullptr, &propertyCount, reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
695 }
696 } while ( result == Result::eIncomplete );
697 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceExtensionProperties" );
698 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
699 if ( propertyCount < properties.size() )
700 {
701 properties.resize( propertyCount );
702 }
703 return detail::createResultValueType( result, std::move( properties ) );
704 }
705 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
706
707 // wrapper function for command vkEnumerateInstanceLayerProperties, see
708 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceLayerProperties.html
709 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceLayerProperties ), bool>::type>
710 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result enumerateInstanceLayerProperties( uint32_t * pPropertyCount, LayerProperties * pProperties, Dispatch const & d )
711 VULKAN_HPP_NOEXCEPT
712 {
713 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
714 return static_cast<Result>( d.vkEnumerateInstanceLayerProperties( pPropertyCount, reinterpret_cast<VkLayerProperties *>( pProperties ) ) );
715 }
716
717 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
718 // wrapper function for command vkEnumerateInstanceLayerProperties, see
719 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceLayerProperties.html
720 template <typename LayerPropertiesAllocator,
721 typename Dispatch,
722 typename std::enable_if<std::is_same<typename LayerPropertiesAllocator::value_type, LayerProperties>::value, int>::type,
723 typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceLayerProperties ), bool>::type>
724 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<LayerProperties, LayerPropertiesAllocator>>::type
725 enumerateInstanceLayerProperties( Dispatch const & d )
726 {
727 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
728 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
729 VULKAN_HPP_ASSERT( d.vkEnumerateInstanceLayerProperties && "Function <vkEnumerateInstanceLayerProperties> requires <VK_VERSION_1_0>" );
730 # endif
731
732 std::vector<LayerProperties, LayerPropertiesAllocator> properties;
733 uint32_t propertyCount;
734 Result result;
735 do
736 {
737 result = static_cast<Result>( d.vkEnumerateInstanceLayerProperties( &propertyCount, nullptr ) );
738 if ( ( result == Result::eSuccess ) && propertyCount )
739 {
740 properties.resize( propertyCount );
741 result = static_cast<Result>( d.vkEnumerateInstanceLayerProperties( &propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
742 }
743 } while ( result == Result::eIncomplete );
744 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::enumerateInstanceLayerProperties" );
745 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
746 if ( propertyCount < properties.size() )
747 {
748 properties.resize( propertyCount );
749 }
750 return detail::createResultValueType( result, std::move( properties ) );
751 }
752
753 // wrapper function for command vkEnumerateInstanceLayerProperties, see
754 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceLayerProperties.html
755 template <typename LayerPropertiesAllocator,
756 typename Dispatch,
757 typename std::enable_if<std::is_same<typename LayerPropertiesAllocator::value_type, LayerProperties>::value, int>::type,
758 typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceLayerProperties ), bool>::type>
759 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<LayerProperties, LayerPropertiesAllocator>>::type
760 enumerateInstanceLayerProperties( LayerPropertiesAllocator const & layerPropertiesAllocator, Dispatch const & d )
761 {
762 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
763 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
764 VULKAN_HPP_ASSERT( d.vkEnumerateInstanceLayerProperties && "Function <vkEnumerateInstanceLayerProperties> requires <VK_VERSION_1_0>" );
765 # endif
766
767 std::vector<LayerProperties, LayerPropertiesAllocator> properties( layerPropertiesAllocator );
768 uint32_t propertyCount;
769 Result result;
770 do
771 {
772 result = static_cast<Result>( d.vkEnumerateInstanceLayerProperties( &propertyCount, nullptr ) );
773 if ( ( result == Result::eSuccess ) && propertyCount )
774 {
775 properties.resize( propertyCount );
776 result = static_cast<Result>( d.vkEnumerateInstanceLayerProperties( &propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
777 }
778 } while ( result == Result::eIncomplete );
779 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::enumerateInstanceLayerProperties" );
780 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
781 if ( propertyCount < properties.size() )
782 {
783 properties.resize( propertyCount );
784 }
785 return detail::createResultValueType( result, std::move( properties ) );
786 }
787 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
788
789 // wrapper function for command vkEnumerateDeviceLayerProperties, see
790 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceLayerProperties.html
791 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumerateDeviceLayerProperties ), bool>::type>
792 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::enumerateDeviceLayerProperties(
793 uint32_t * pPropertyCount, LayerProperties * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
794 {
795 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
796 return static_cast<Result>( d.vkEnumerateDeviceLayerProperties(
797 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkLayerProperties *>( pProperties ) ) );
798 }
799
800 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
801 // wrapper function for command vkEnumerateDeviceLayerProperties, see
802 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceLayerProperties.html
803 template <typename LayerPropertiesAllocator,
804 typename Dispatch,
805 typename std::enable_if<std::is_same<typename LayerPropertiesAllocator::value_type, LayerProperties>::value, int>::type,
806 typename std::enable_if<IS_DISPATCHED( vkEnumerateDeviceLayerProperties ), bool>::type>
807 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<LayerProperties, LayerPropertiesAllocator>>::type
808 PhysicalDevice::enumerateDeviceLayerProperties( Dispatch const & d ) const
809 {
810 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
811 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
812 VULKAN_HPP_ASSERT( d.vkEnumerateDeviceLayerProperties && "Function <vkEnumerateDeviceLayerProperties> requires <VK_VERSION_1_0>" );
813 # endif
814
815 std::vector<LayerProperties, LayerPropertiesAllocator> properties;
816 uint32_t propertyCount;
817 Result result;
818 do
819 {
820 result = static_cast<Result>( d.vkEnumerateDeviceLayerProperties( m_physicalDevice, &propertyCount, nullptr ) );
821 if ( ( result == Result::eSuccess ) && propertyCount )
822 {
823 properties.resize( propertyCount );
824 result = static_cast<Result>(
825 d.vkEnumerateDeviceLayerProperties( m_physicalDevice, &propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
826 }
827 } while ( result == Result::eIncomplete );
828 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceLayerProperties" );
829 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
830 if ( propertyCount < properties.size() )
831 {
832 properties.resize( propertyCount );
833 }
834 return detail::createResultValueType( result, std::move( properties ) );
835 }
836
837 // wrapper function for command vkEnumerateDeviceLayerProperties, see
838 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceLayerProperties.html
839 template <typename LayerPropertiesAllocator,
840 typename Dispatch,
841 typename std::enable_if<std::is_same<typename LayerPropertiesAllocator::value_type, LayerProperties>::value, int>::type,
842 typename std::enable_if<IS_DISPATCHED( vkEnumerateDeviceLayerProperties ), bool>::type>
843 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<LayerProperties, LayerPropertiesAllocator>>::type
844 PhysicalDevice::enumerateDeviceLayerProperties( LayerPropertiesAllocator const & layerPropertiesAllocator, Dispatch const & d ) const
845 {
846 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
847 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
848 VULKAN_HPP_ASSERT( d.vkEnumerateDeviceLayerProperties && "Function <vkEnumerateDeviceLayerProperties> requires <VK_VERSION_1_0>" );
849 # endif
850
851 std::vector<LayerProperties, LayerPropertiesAllocator> properties( layerPropertiesAllocator );
852 uint32_t propertyCount;
853 Result result;
854 do
855 {
856 result = static_cast<Result>( d.vkEnumerateDeviceLayerProperties( m_physicalDevice, &propertyCount, nullptr ) );
857 if ( ( result == Result::eSuccess ) && propertyCount )
858 {
859 properties.resize( propertyCount );
860 result = static_cast<Result>(
861 d.vkEnumerateDeviceLayerProperties( m_physicalDevice, &propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
862 }
863 } while ( result == Result::eIncomplete );
864 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceLayerProperties" );
865 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
866 if ( propertyCount < properties.size() )
867 {
868 properties.resize( propertyCount );
869 }
870 return detail::createResultValueType( result, std::move( properties ) );
871 }
872 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
873
874 // wrapper function for command vkGetDeviceQueue, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceQueue.html
875 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceQueue ), bool>::type>
876 VULKAN_HPP_INLINE void Device::getQueue( uint32_t queueFamilyIndex, uint32_t queueIndex, Queue * pQueue, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
877 {
878 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
879 d.vkGetDeviceQueue( static_cast<VkDevice>( m_device ), queueFamilyIndex, queueIndex, reinterpret_cast<VkQueue *>( pQueue ) );
880 }
881
882 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
883 // wrapper function for command vkGetDeviceQueue, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceQueue.html
884 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceQueue ), bool>::type>
885 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Queue Device::getQueue( uint32_t queueFamilyIndex, uint32_t queueIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
886 {
887 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
888 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
889 VULKAN_HPP_ASSERT( d.vkGetDeviceQueue && "Function <vkGetDeviceQueue> requires <VK_VERSION_1_0>" );
890 # endif
891
892 Queue queue;
893 d.vkGetDeviceQueue( m_device, queueFamilyIndex, queueIndex, reinterpret_cast<VkQueue *>( &queue ) );
894
895 return queue;
896 }
897 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
898
899 // wrapper function for command vkQueueSubmit, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit.html
900 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSubmit ), bool>::type>
901 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::submit( uint32_t submitCount, SubmitInfo const * pSubmits, Fence fence, Dispatch const & d )
902 const VULKAN_HPP_NOEXCEPT
903 {
904 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
905 return static_cast<Result>(
906 d.vkQueueSubmit( static_cast<VkQueue>( m_queue ), submitCount, reinterpret_cast<VkSubmitInfo const *>( pSubmits ), static_cast<VkFence>( fence ) ) );
907 }
908
909 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
910 // wrapper function for command vkQueueSubmit, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit.html
911 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSubmit ), bool>::type>
912 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Queue::submit(
913 ArrayProxy<SubmitInfo const> const & submits, Fence fence, Dispatch const & d ) const
914 {
915 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
916 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
917 VULKAN_HPP_ASSERT( d.vkQueueSubmit && "Function <vkQueueSubmit> requires <VK_VERSION_1_0>" );
918 # endif
919
920 Result result = static_cast<Result>(
921 d.vkQueueSubmit( m_queue, submits.size(), reinterpret_cast<VkSubmitInfo const *>( submits.data() ), static_cast<VkFence>( fence ) ) );
922 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::submit" );
923
924 return detail::createResultValueType( result );
925 }
926 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
927
928 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
929 // wrapper function for command vkQueueWaitIdle, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueWaitIdle.html
930 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueWaitIdle ), bool>::type>
931 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::waitIdle( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
932 {
933 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
934 return static_cast<Result>( d.vkQueueWaitIdle( static_cast<VkQueue>( m_queue ) ) );
935 }
936 #else
937 // wrapper function for command vkQueueWaitIdle, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueWaitIdle.html
938 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueWaitIdle ), bool>::type>
939 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Queue::waitIdle( Dispatch const & d ) const
940 {
941 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
942 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
943 VULKAN_HPP_ASSERT( d.vkQueueWaitIdle && "Function <vkQueueWaitIdle> requires <VK_VERSION_1_0>" );
944 # endif
945
946 Result result = static_cast<Result>( d.vkQueueWaitIdle( m_queue ) );
947 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::waitIdle" );
948
949 return detail::createResultValueType( result );
950 }
951 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
952
953 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
954 // wrapper function for command vkDeviceWaitIdle, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeviceWaitIdle.html
955 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDeviceWaitIdle ), bool>::type>
956 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitIdle( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
957 {
958 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
959 return static_cast<Result>( d.vkDeviceWaitIdle( static_cast<VkDevice>( m_device ) ) );
960 }
961 #else
962 // wrapper function for command vkDeviceWaitIdle, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeviceWaitIdle.html
963 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDeviceWaitIdle ), bool>::type>
964 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::waitIdle( Dispatch const & d ) const
965 {
966 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
967 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
968 VULKAN_HPP_ASSERT( d.vkDeviceWaitIdle && "Function <vkDeviceWaitIdle> requires <VK_VERSION_1_0>" );
969 # endif
970
971 Result result = static_cast<Result>( d.vkDeviceWaitIdle( m_device ) );
972 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitIdle" );
973
974 return detail::createResultValueType( result );
975 }
976 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
977
978 // wrapper function for command vkAllocateMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateMemory.html
979 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAllocateMemory ), bool>::type>
980 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::allocateMemory(
981 MemoryAllocateInfo const * pAllocateInfo, AllocationCallbacks const * pAllocator, DeviceMemory * pMemory, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
982 {
983 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
984 return static_cast<Result>( d.vkAllocateMemory( static_cast<VkDevice>( m_device ),
985 reinterpret_cast<VkMemoryAllocateInfo const *>( pAllocateInfo ),
986 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
987 reinterpret_cast<VkDeviceMemory *>( pMemory ) ) );
988 }
989
990 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
991 // wrapper function for command vkAllocateMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateMemory.html
992 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAllocateMemory ), bool>::type>
993 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeviceMemory>::type Device::allocateMemory(
994 MemoryAllocateInfo const & allocateInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
995 {
996 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
997 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
998 VULKAN_HPP_ASSERT( d.vkAllocateMemory && "Function <vkAllocateMemory> requires <VK_VERSION_1_0>" );
999 # endif
1000
1001 DeviceMemory memory;
1002 Result result = static_cast<Result>( d.vkAllocateMemory( m_device,
1003 reinterpret_cast<VkMemoryAllocateInfo const *>( &allocateInfo ),
1004 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
1005 reinterpret_cast<VkDeviceMemory *>( &memory ) ) );
1006 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateMemory" );
1007
1008 return detail::createResultValueType( result, std::move( memory ) );
1009 }
1010
1011 # ifndef VULKAN_HPP_NO_SMART_HANDLE
1012 // wrapper function for command vkAllocateMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateMemory.html
1013 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAllocateMemory ), bool>::type>
1014 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DeviceMemory, Dispatch>>::type Device::allocateMemoryUnique(
1015 MemoryAllocateInfo const & allocateInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
1016 {
1017 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1018 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1019 VULKAN_HPP_ASSERT( d.vkAllocateMemory && "Function <vkAllocateMemory> requires <VK_VERSION_1_0>" );
1020 # endif
1021
1022 DeviceMemory memory;
1023 Result result = static_cast<Result>( d.vkAllocateMemory( m_device,
1024 reinterpret_cast<VkMemoryAllocateInfo const *>( &allocateInfo ),
1025 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
1026 reinterpret_cast<VkDeviceMemory *>( &memory ) ) );
1027 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateMemoryUnique" );
1028
1029 return detail::createResultValueType( result, UniqueHandle<DeviceMemory, Dispatch>( memory, detail::ObjectFree<Device, Dispatch>( *this, allocator, d ) ) );
1030 }
1031 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
1032 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1033
1034 // wrapper function for command vkFreeMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeMemory.html
1035 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeMemory ), bool>::type>
1036 VULKAN_HPP_INLINE void Device::freeMemory( DeviceMemory memory, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1037 {
1038 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1039 d.vkFreeMemory( static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( memory ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
1040 }
1041
1042 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1043 // wrapper function for command vkFreeMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeMemory.html
1044 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeMemory ), bool>::type>
1045 VULKAN_HPP_INLINE void Device::freeMemory( DeviceMemory memory, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1046 {
1047 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1048 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1049 VULKAN_HPP_ASSERT( d.vkFreeMemory && "Function <vkFreeMemory> requires <VK_VERSION_1_0>" );
1050 # endif
1051
1052 d.vkFreeMemory( m_device, static_cast<VkDeviceMemory>( memory ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
1053 }
1054 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1055
1056 // wrapper function for command vkFreeMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeMemory.html
1057 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeMemory ), bool>::type>
1058 VULKAN_HPP_INLINE void( Device::free )( DeviceMemory memory, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1059 {
1060 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1061 d.vkFreeMemory( static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( memory ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
1062 }
1063
1064 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1065 // wrapper function for command vkFreeMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeMemory.html
1066 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeMemory ), bool>::type>
1067 VULKAN_HPP_INLINE void( Device::free )( DeviceMemory memory, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1068 {
1069 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1070 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1071 VULKAN_HPP_ASSERT( d.vkFreeMemory && "Function <vkFreeMemory> requires <VK_VERSION_1_0>" );
1072 # endif
1073
1074 d.vkFreeMemory( m_device, static_cast<VkDeviceMemory>( memory ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
1075 }
1076 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1077
1078 // wrapper function for command vkMapMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory.html
1079 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMapMemory ), bool>::type>
1080 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::mapMemory(
1081 DeviceMemory memory, DeviceSize offset, DeviceSize size, MemoryMapFlags flags, void ** ppData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1082 {
1083 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1084 return static_cast<Result>( d.vkMapMemory( static_cast<VkDevice>( m_device ),
1085 static_cast<VkDeviceMemory>( memory ),
1086 static_cast<VkDeviceSize>( offset ),
1087 static_cast<VkDeviceSize>( size ),
1088 static_cast<VkMemoryMapFlags>( flags ),
1089 ppData ) );
1090 }
1091
1092 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1093 // wrapper function for command vkMapMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory.html
1094 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMapMemory ), bool>::type>
1095 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<void *>::type Device::mapMemory(
1096 DeviceMemory memory, DeviceSize offset, DeviceSize size, MemoryMapFlags flags, Dispatch const & d ) const
1097 {
1098 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1099 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1100 VULKAN_HPP_ASSERT( d.vkMapMemory && "Function <vkMapMemory> requires <VK_VERSION_1_0>" );
1101 # endif
1102
1103 void * pData;
1104 Result result = static_cast<Result>( d.vkMapMemory( m_device,
1105 static_cast<VkDeviceMemory>( memory ),
1106 static_cast<VkDeviceSize>( offset ),
1107 static_cast<VkDeviceSize>( size ),
1108 static_cast<VkMemoryMapFlags>( flags ),
1109 &pData ) );
1110 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mapMemory" );
1111
1112 return detail::createResultValueType( result, std::move( pData ) );
1113 }
1114 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1115
1116 // wrapper function for command vkUnmapMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory.html
1117 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUnmapMemory ), bool>::type>
1118 VULKAN_HPP_INLINE void Device::unmapMemory( DeviceMemory memory, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1119 {
1120 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1121 d.vkUnmapMemory( static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( memory ) );
1122 }
1123
1124 // wrapper function for command vkFlushMappedMemoryRanges, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFlushMappedMemoryRanges.html
1125 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFlushMappedMemoryRanges ), bool>::type>
1126 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::flushMappedMemoryRanges(
1127 uint32_t memoryRangeCount, MappedMemoryRange const * pMemoryRanges, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1128 {
1129 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1130 return static_cast<Result>(
1131 d.vkFlushMappedMemoryRanges( static_cast<VkDevice>( m_device ), memoryRangeCount, reinterpret_cast<VkMappedMemoryRange const *>( pMemoryRanges ) ) );
1132 }
1133
1134 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1135 // wrapper function for command vkFlushMappedMemoryRanges, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFlushMappedMemoryRanges.html
1136 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFlushMappedMemoryRanges ), bool>::type>
1137 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::flushMappedMemoryRanges(
1138 ArrayProxy<MappedMemoryRange const> const & memoryRanges, Dispatch const & d ) const
1139 {
1140 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1141 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1142 VULKAN_HPP_ASSERT( d.vkFlushMappedMemoryRanges && "Function <vkFlushMappedMemoryRanges> requires <VK_VERSION_1_0>" );
1143 # endif
1144
1145 Result result =
1146 static_cast<Result>( d.vkFlushMappedMemoryRanges( m_device, memoryRanges.size(), reinterpret_cast<VkMappedMemoryRange const *>( memoryRanges.data() ) ) );
1147 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::flushMappedMemoryRanges" );
1148
1149 return detail::createResultValueType( result );
1150 }
1151 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1152
1153 // wrapper function for command vkInvalidateMappedMemoryRanges, see
1154 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkInvalidateMappedMemoryRanges.html
1155 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkInvalidateMappedMemoryRanges ), bool>::type>
1156 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::invalidateMappedMemoryRanges(
1157 uint32_t memoryRangeCount, MappedMemoryRange const * pMemoryRanges, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1158 {
1159 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1160 return static_cast<Result>(
1161 d.vkInvalidateMappedMemoryRanges( static_cast<VkDevice>( m_device ), memoryRangeCount, reinterpret_cast<VkMappedMemoryRange const *>( pMemoryRanges ) ) );
1162 }
1163
1164 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1165 // wrapper function for command vkInvalidateMappedMemoryRanges, see
1166 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkInvalidateMappedMemoryRanges.html
1167 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkInvalidateMappedMemoryRanges ), bool>::type>
1168 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::invalidateMappedMemoryRanges(
1169 ArrayProxy<MappedMemoryRange const> const & memoryRanges, Dispatch const & d ) const
1170 {
1171 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1172 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1173 VULKAN_HPP_ASSERT( d.vkInvalidateMappedMemoryRanges && "Function <vkInvalidateMappedMemoryRanges> requires <VK_VERSION_1_0>" );
1174 # endif
1175
1176 Result result = static_cast<Result>(
1177 d.vkInvalidateMappedMemoryRanges( m_device, memoryRanges.size(), reinterpret_cast<VkMappedMemoryRange const *>( memoryRanges.data() ) ) );
1178 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::invalidateMappedMemoryRanges" );
1179
1180 return detail::createResultValueType( result );
1181 }
1182 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1183
1184 // wrapper function for command vkGetDeviceMemoryCommitment, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryCommitment.html
1185 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMemoryCommitment ), bool>::type>
1186 VULKAN_HPP_INLINE void Device::getMemoryCommitment( DeviceMemory memory, DeviceSize * pCommittedMemoryInBytes, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1187 {
1188 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1189 d.vkGetDeviceMemoryCommitment(
1190 static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( memory ), reinterpret_cast<VkDeviceSize *>( pCommittedMemoryInBytes ) );
1191 }
1192
1193 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1194 // wrapper function for command vkGetDeviceMemoryCommitment, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryCommitment.html
1195 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMemoryCommitment ), bool>::type>
1196 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceSize Device::getMemoryCommitment( DeviceMemory memory, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1197 {
1198 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1199 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1200 VULKAN_HPP_ASSERT( d.vkGetDeviceMemoryCommitment && "Function <vkGetDeviceMemoryCommitment> requires <VK_VERSION_1_0>" );
1201 # endif
1202
1203 DeviceSize committedMemoryInBytes;
1204 d.vkGetDeviceMemoryCommitment( m_device, static_cast<VkDeviceMemory>( memory ), reinterpret_cast<VkDeviceSize *>( &committedMemoryInBytes ) );
1205
1206 return committedMemoryInBytes;
1207 }
1208 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1209
1210 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
1211 // wrapper function for command vkBindBufferMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory.html
1212 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindBufferMemory ), bool>::type>
1213 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindBufferMemory( Buffer buffer, DeviceMemory memory, DeviceSize memoryOffset, Dispatch const & d )
1214 const VULKAN_HPP_NOEXCEPT
1215 {
1216 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1217 return static_cast<Result>( d.vkBindBufferMemory(
1218 static_cast<VkDevice>( m_device ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceMemory>( memory ), static_cast<VkDeviceSize>( memoryOffset ) ) );
1219 }
1220 #else
1221 // wrapper function for command vkBindBufferMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory.html
1222 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindBufferMemory ), bool>::type>
1223 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindBufferMemory(
1224 Buffer buffer, DeviceMemory memory, DeviceSize memoryOffset, Dispatch const & d ) const
1225 {
1226 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1227 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1228 VULKAN_HPP_ASSERT( d.vkBindBufferMemory && "Function <vkBindBufferMemory> requires <VK_VERSION_1_0>" );
1229 # endif
1230
1231 Result result = static_cast<Result>(
1232 d.vkBindBufferMemory( m_device, static_cast<VkBuffer>( buffer ), static_cast<VkDeviceMemory>( memory ), static_cast<VkDeviceSize>( memoryOffset ) ) );
1233 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindBufferMemory" );
1234
1235 return detail::createResultValueType( result );
1236 }
1237 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
1238
1239 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
1240 // wrapper function for command vkBindImageMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory.html
1241 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindImageMemory ), bool>::type>
1242 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindImageMemory( Image image, DeviceMemory memory, DeviceSize memoryOffset, Dispatch const & d )
1243 const VULKAN_HPP_NOEXCEPT
1244 {
1245 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1246 return static_cast<Result>( d.vkBindImageMemory(
1247 static_cast<VkDevice>( m_device ), static_cast<VkImage>( image ), static_cast<VkDeviceMemory>( memory ), static_cast<VkDeviceSize>( memoryOffset ) ) );
1248 }
1249 #else
1250 // wrapper function for command vkBindImageMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory.html
1251 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindImageMemory ), bool>::type>
1252 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindImageMemory(
1253 Image image, DeviceMemory memory, DeviceSize memoryOffset, Dispatch const & d ) const
1254 {
1255 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1256 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1257 VULKAN_HPP_ASSERT( d.vkBindImageMemory && "Function <vkBindImageMemory> requires <VK_VERSION_1_0>" );
1258 # endif
1259
1260 Result result = static_cast<Result>(
1261 d.vkBindImageMemory( m_device, static_cast<VkImage>( image ), static_cast<VkDeviceMemory>( memory ), static_cast<VkDeviceSize>( memoryOffset ) ) );
1262 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindImageMemory" );
1263
1264 return detail::createResultValueType( result );
1265 }
1266 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
1267
1268 // wrapper function for command vkGetBufferMemoryRequirements, see
1269 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements.html
1270 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements ), bool>::type>
1271 VULKAN_HPP_INLINE void Device::getBufferMemoryRequirements( Buffer buffer, MemoryRequirements * pMemoryRequirements, Dispatch const & d )
1272 const VULKAN_HPP_NOEXCEPT
1273 {
1274 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1275 d.vkGetBufferMemoryRequirements(
1276 static_cast<VkDevice>( m_device ), static_cast<VkBuffer>( buffer ), reinterpret_cast<VkMemoryRequirements *>( pMemoryRequirements ) );
1277 }
1278
1279 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1280 // wrapper function for command vkGetBufferMemoryRequirements, see
1281 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements.html
1282 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements ), bool>::type>
1283 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements Device::getBufferMemoryRequirements( Buffer buffer, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1284 {
1285 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1286 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1287 VULKAN_HPP_ASSERT( d.vkGetBufferMemoryRequirements && "Function <vkGetBufferMemoryRequirements> requires <VK_VERSION_1_0>" );
1288 # endif
1289
1290 MemoryRequirements memoryRequirements;
1291 d.vkGetBufferMemoryRequirements( m_device, static_cast<VkBuffer>( buffer ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) );
1292
1293 return memoryRequirements;
1294 }
1295 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1296
1297 // wrapper function for command vkGetImageMemoryRequirements, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements.html
1298 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements ), bool>::type>
1299 VULKAN_HPP_INLINE void Device::getImageMemoryRequirements( Image image, MemoryRequirements * pMemoryRequirements, Dispatch const & d )
1300 const VULKAN_HPP_NOEXCEPT
1301 {
1302 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1303 d.vkGetImageMemoryRequirements(
1304 static_cast<VkDevice>( m_device ), static_cast<VkImage>( image ), reinterpret_cast<VkMemoryRequirements *>( pMemoryRequirements ) );
1305 }
1306
1307 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1308 // wrapper function for command vkGetImageMemoryRequirements, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements.html
1309 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements ), bool>::type>
1310 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements Device::getImageMemoryRequirements( Image image, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1311 {
1312 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1313 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1314 VULKAN_HPP_ASSERT( d.vkGetImageMemoryRequirements && "Function <vkGetImageMemoryRequirements> requires <VK_VERSION_1_0>" );
1315 # endif
1316
1317 MemoryRequirements memoryRequirements;
1318 d.vkGetImageMemoryRequirements( m_device, static_cast<VkImage>( image ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) );
1319
1320 return memoryRequirements;
1321 }
1322 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1323
1324 // wrapper function for command vkGetImageSparseMemoryRequirements, see
1325 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements.html
1326 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements ), bool>::type>
1327 VULKAN_HPP_INLINE void Device::getImageSparseMemoryRequirements(
1328 Image image, uint32_t * pSparseMemoryRequirementCount, SparseImageMemoryRequirements * pSparseMemoryRequirements, Dispatch const & d )
1329 const VULKAN_HPP_NOEXCEPT
1330 {
1331 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1332 d.vkGetImageSparseMemoryRequirements( static_cast<VkDevice>( m_device ),
1333 static_cast<VkImage>( image ),
1334 pSparseMemoryRequirementCount,
1335 reinterpret_cast<VkSparseImageMemoryRequirements *>( pSparseMemoryRequirements ) );
1336 }
1337
1338 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1339 // wrapper function for command vkGetImageSparseMemoryRequirements, see
1340 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements.html
1341 template <typename SparseImageMemoryRequirementsAllocator,
1342 typename Dispatch,
1343 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirementsAllocator::value_type, SparseImageMemoryRequirements>::value, int>::type,
1344 typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements ), bool>::type>
1345 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements, SparseImageMemoryRequirementsAllocator>
1346 Device::getImageSparseMemoryRequirements( Image image, Dispatch const & d ) const
1347 {
1348 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1349 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1350 VULKAN_HPP_ASSERT( d.vkGetImageSparseMemoryRequirements && "Function <vkGetImageSparseMemoryRequirements> requires <VK_VERSION_1_0>" );
1351 # endif
1352
1353 std::vector<SparseImageMemoryRequirements, SparseImageMemoryRequirementsAllocator> sparseMemoryRequirements;
1354 uint32_t sparseMemoryRequirementCount;
1355 d.vkGetImageSparseMemoryRequirements( m_device, static_cast<VkImage>( image ), &sparseMemoryRequirementCount, nullptr );
1356 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
1357 d.vkGetImageSparseMemoryRequirements( m_device,
1358 static_cast<VkImage>( image ),
1359 &sparseMemoryRequirementCount,
1360 reinterpret_cast<VkSparseImageMemoryRequirements *>( sparseMemoryRequirements.data() ) );
1361
1362 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
1363 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
1364 {
1365 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
1366 }
1367 return sparseMemoryRequirements;
1368 }
1369
1370 // wrapper function for command vkGetImageSparseMemoryRequirements, see
1371 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements.html
1372 template <typename SparseImageMemoryRequirementsAllocator,
1373 typename Dispatch,
1374 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirementsAllocator::value_type, SparseImageMemoryRequirements>::value, int>::type,
1375 typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements ), bool>::type>
1376 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements, SparseImageMemoryRequirementsAllocator>
1377 Device::getImageSparseMemoryRequirements(
1378 Image image, SparseImageMemoryRequirementsAllocator const & sparseImageMemoryRequirementsAllocator, Dispatch const & d ) const
1379 {
1380 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1381 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1382 VULKAN_HPP_ASSERT( d.vkGetImageSparseMemoryRequirements && "Function <vkGetImageSparseMemoryRequirements> requires <VK_VERSION_1_0>" );
1383 # endif
1384
1385 std::vector<SparseImageMemoryRequirements, SparseImageMemoryRequirementsAllocator> sparseMemoryRequirements( sparseImageMemoryRequirementsAllocator );
1386 uint32_t sparseMemoryRequirementCount;
1387 d.vkGetImageSparseMemoryRequirements( m_device, static_cast<VkImage>( image ), &sparseMemoryRequirementCount, nullptr );
1388 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
1389 d.vkGetImageSparseMemoryRequirements( m_device,
1390 static_cast<VkImage>( image ),
1391 &sparseMemoryRequirementCount,
1392 reinterpret_cast<VkSparseImageMemoryRequirements *>( sparseMemoryRequirements.data() ) );
1393
1394 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
1395 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
1396 {
1397 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
1398 }
1399 return sparseMemoryRequirements;
1400 }
1401 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1402
1403 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties, see
1404 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties.html
1405 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties ), bool>::type>
1406 VULKAN_HPP_INLINE void PhysicalDevice::getSparseImageFormatProperties( Format format,
1407 ImageType type,
1408 SampleCountFlagBits samples,
1409 ImageUsageFlags usage,
1410 ImageTiling tiling,
1411 uint32_t * pPropertyCount,
1412 SparseImageFormatProperties * pProperties,
1413 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1414 {
1415 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1416 d.vkGetPhysicalDeviceSparseImageFormatProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
1417 static_cast<VkFormat>( format ),
1418 static_cast<VkImageType>( type ),
1419 static_cast<VkSampleCountFlagBits>( samples ),
1420 static_cast<VkImageUsageFlags>( usage ),
1421 static_cast<VkImageTiling>( tiling ),
1422 pPropertyCount,
1423 reinterpret_cast<VkSparseImageFormatProperties *>( pProperties ) );
1424 }
1425
1426 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1427 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties, see
1428 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties.html
1429 template <typename SparseImageFormatPropertiesAllocator,
1430 typename Dispatch,
1431 typename std::enable_if<std::is_same<typename SparseImageFormatPropertiesAllocator::value_type, SparseImageFormatProperties>::value, int>::type,
1432 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties ), bool>::type>
1433 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties, SparseImageFormatPropertiesAllocator>
1434 PhysicalDevice::getSparseImageFormatProperties(
1435 Format format, ImageType type, SampleCountFlagBits samples, ImageUsageFlags usage, ImageTiling tiling, Dispatch const & d ) const
1436 {
1437 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1438 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1439 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSparseImageFormatProperties &&
1440 "Function <vkGetPhysicalDeviceSparseImageFormatProperties> requires <VK_VERSION_1_0>" );
1441 # endif
1442
1443 std::vector<SparseImageFormatProperties, SparseImageFormatPropertiesAllocator> properties;
1444 uint32_t propertyCount;
1445 d.vkGetPhysicalDeviceSparseImageFormatProperties( m_physicalDevice,
1446 static_cast<VkFormat>( format ),
1447 static_cast<VkImageType>( type ),
1448 static_cast<VkSampleCountFlagBits>( samples ),
1449 static_cast<VkImageUsageFlags>( usage ),
1450 static_cast<VkImageTiling>( tiling ),
1451 &propertyCount,
1452 nullptr );
1453 properties.resize( propertyCount );
1454 d.vkGetPhysicalDeviceSparseImageFormatProperties( m_physicalDevice,
1455 static_cast<VkFormat>( format ),
1456 static_cast<VkImageType>( type ),
1457 static_cast<VkSampleCountFlagBits>( samples ),
1458 static_cast<VkImageUsageFlags>( usage ),
1459 static_cast<VkImageTiling>( tiling ),
1460 &propertyCount,
1461 reinterpret_cast<VkSparseImageFormatProperties *>( properties.data() ) );
1462
1463 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
1464 if ( propertyCount < properties.size() )
1465 {
1466 properties.resize( propertyCount );
1467 }
1468 return properties;
1469 }
1470
1471 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties, see
1472 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties.html
1473 template <typename SparseImageFormatPropertiesAllocator,
1474 typename Dispatch,
1475 typename std::enable_if<std::is_same<typename SparseImageFormatPropertiesAllocator::value_type, SparseImageFormatProperties>::value, int>::type,
1476 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties ), bool>::type>
1477 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties, SparseImageFormatPropertiesAllocator>
1478 PhysicalDevice::getSparseImageFormatProperties( Format format,
1479 ImageType type,
1480 SampleCountFlagBits samples,
1481 ImageUsageFlags usage,
1482 ImageTiling tiling,
1483 SparseImageFormatPropertiesAllocator const & sparseImageFormatPropertiesAllocator,
1484 Dispatch const & d ) const
1485 {
1486 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1487 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1488 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSparseImageFormatProperties &&
1489 "Function <vkGetPhysicalDeviceSparseImageFormatProperties> requires <VK_VERSION_1_0>" );
1490 # endif
1491
1492 std::vector<SparseImageFormatProperties, SparseImageFormatPropertiesAllocator> properties( sparseImageFormatPropertiesAllocator );
1493 uint32_t propertyCount;
1494 d.vkGetPhysicalDeviceSparseImageFormatProperties( m_physicalDevice,
1495 static_cast<VkFormat>( format ),
1496 static_cast<VkImageType>( type ),
1497 static_cast<VkSampleCountFlagBits>( samples ),
1498 static_cast<VkImageUsageFlags>( usage ),
1499 static_cast<VkImageTiling>( tiling ),
1500 &propertyCount,
1501 nullptr );
1502 properties.resize( propertyCount );
1503 d.vkGetPhysicalDeviceSparseImageFormatProperties( m_physicalDevice,
1504 static_cast<VkFormat>( format ),
1505 static_cast<VkImageType>( type ),
1506 static_cast<VkSampleCountFlagBits>( samples ),
1507 static_cast<VkImageUsageFlags>( usage ),
1508 static_cast<VkImageTiling>( tiling ),
1509 &propertyCount,
1510 reinterpret_cast<VkSparseImageFormatProperties *>( properties.data() ) );
1511
1512 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
1513 if ( propertyCount < properties.size() )
1514 {
1515 properties.resize( propertyCount );
1516 }
1517 return properties;
1518 }
1519 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1520
1521 // wrapper function for command vkQueueBindSparse, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueBindSparse.html
1522 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueBindSparse ), bool>::type>
1523 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::bindSparse( uint32_t bindInfoCount, BindSparseInfo const * pBindInfo, Fence fence, Dispatch const & d )
1524 const VULKAN_HPP_NOEXCEPT
1525 {
1526 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1527 return static_cast<Result>( d.vkQueueBindSparse(
1528 static_cast<VkQueue>( m_queue ), bindInfoCount, reinterpret_cast<VkBindSparseInfo const *>( pBindInfo ), static_cast<VkFence>( fence ) ) );
1529 }
1530
1531 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1532 // wrapper function for command vkQueueBindSparse, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueBindSparse.html
1533 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueBindSparse ), bool>::type>
1534 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Queue::bindSparse(
1535 ArrayProxy<BindSparseInfo const> const & bindInfo, Fence fence, Dispatch const & d ) const
1536 {
1537 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1538 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1539 VULKAN_HPP_ASSERT( d.vkQueueBindSparse && "Function <vkQueueBindSparse> requires <VK_VERSION_1_0>" );
1540 # endif
1541
1542 Result result = static_cast<Result>(
1543 d.vkQueueBindSparse( m_queue, bindInfo.size(), reinterpret_cast<VkBindSparseInfo const *>( bindInfo.data() ), static_cast<VkFence>( fence ) ) );
1544 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::bindSparse" );
1545
1546 return detail::createResultValueType( result );
1547 }
1548 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1549
1550 // wrapper function for command vkCreateFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFence.html
1551 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateFence ), bool>::type>
1552 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createFence(
1553 FenceCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, Fence * pFence, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1554 {
1555 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1556 return static_cast<Result>( d.vkCreateFence( static_cast<VkDevice>( m_device ),
1557 reinterpret_cast<VkFenceCreateInfo const *>( pCreateInfo ),
1558 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
1559 reinterpret_cast<VkFence *>( pFence ) ) );
1560 }
1561
1562 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1563 // wrapper function for command vkCreateFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFence.html
1564 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateFence ), bool>::type>
1565 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Fence>::type Device::createFence(
1566 FenceCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
1567 {
1568 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1569 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1570 VULKAN_HPP_ASSERT( d.vkCreateFence && "Function <vkCreateFence> requires <VK_VERSION_1_0>" );
1571 # endif
1572
1573 Fence fence;
1574 Result result = static_cast<Result>( d.vkCreateFence( m_device,
1575 reinterpret_cast<VkFenceCreateInfo const *>( &createInfo ),
1576 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
1577 reinterpret_cast<VkFence *>( &fence ) ) );
1578 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createFence" );
1579
1580 return detail::createResultValueType( result, std::move( fence ) );
1581 }
1582
1583 # ifndef VULKAN_HPP_NO_SMART_HANDLE
1584 // wrapper function for command vkCreateFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFence.html
1585 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateFence ), bool>::type>
1586 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Fence, Dispatch>>::type Device::createFenceUnique(
1587 FenceCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
1588 {
1589 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1590 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1591 VULKAN_HPP_ASSERT( d.vkCreateFence && "Function <vkCreateFence> requires <VK_VERSION_1_0>" );
1592 # endif
1593
1594 Fence fence;
1595 Result result = static_cast<Result>( d.vkCreateFence( m_device,
1596 reinterpret_cast<VkFenceCreateInfo const *>( &createInfo ),
1597 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
1598 reinterpret_cast<VkFence *>( &fence ) ) );
1599 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createFenceUnique" );
1600
1601 return detail::createResultValueType( result, UniqueHandle<Fence, Dispatch>( fence, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
1602 }
1603 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
1604 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1605
1606 // wrapper function for command vkDestroyFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFence.html
1607 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFence ), bool>::type>
1608 VULKAN_HPP_INLINE void Device::destroyFence( Fence fence, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1609 {
1610 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1611 d.vkDestroyFence( static_cast<VkDevice>( m_device ), static_cast<VkFence>( fence ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
1612 }
1613
1614 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1615 // wrapper function for command vkDestroyFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFence.html
1616 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFence ), bool>::type>
1617 VULKAN_HPP_INLINE void Device::destroyFence( Fence fence, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1618 {
1619 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1620 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1621 VULKAN_HPP_ASSERT( d.vkDestroyFence && "Function <vkDestroyFence> requires <VK_VERSION_1_0>" );
1622 # endif
1623
1624 d.vkDestroyFence( m_device, static_cast<VkFence>( fence ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
1625 }
1626 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1627
1628 // wrapper function for command vkDestroyFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFence.html
1629 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFence ), bool>::type>
1630 VULKAN_HPP_INLINE void Device::destroy( Fence fence, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1631 {
1632 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1633 d.vkDestroyFence( static_cast<VkDevice>( m_device ), static_cast<VkFence>( fence ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
1634 }
1635
1636 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1637 // wrapper function for command vkDestroyFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFence.html
1638 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFence ), bool>::type>
1639 VULKAN_HPP_INLINE void Device::destroy( Fence fence, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1640 {
1641 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1642 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1643 VULKAN_HPP_ASSERT( d.vkDestroyFence && "Function <vkDestroyFence> requires <VK_VERSION_1_0>" );
1644 # endif
1645
1646 d.vkDestroyFence( m_device, static_cast<VkFence>( fence ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
1647 }
1648 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1649
1650 // wrapper function for command vkResetFences, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetFences.html
1651 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetFences ), bool>::type>
1652 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::resetFences( uint32_t fenceCount, Fence const * pFences, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1653 {
1654 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1655 return static_cast<Result>( d.vkResetFences( static_cast<VkDevice>( m_device ), fenceCount, reinterpret_cast<VkFence const *>( pFences ) ) );
1656 }
1657
1658 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1659 // wrapper function for command vkResetFences, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetFences.html
1660 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetFences ), bool>::type>
1661 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::resetFences( ArrayProxy<Fence const> const & fences,
1662 Dispatch const & d ) const
1663 {
1664 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1665 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1666 VULKAN_HPP_ASSERT( d.vkResetFences && "Function <vkResetFences> requires <VK_VERSION_1_0>" );
1667 # endif
1668
1669 Result result = static_cast<Result>( d.vkResetFences( m_device, fences.size(), reinterpret_cast<VkFence const *>( fences.data() ) ) );
1670 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetFences" );
1671
1672 return detail::createResultValueType( result );
1673 }
1674 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1675
1676 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
1677 // wrapper function for command vkGetFenceStatus, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceStatus.html
1678 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFenceStatus ), bool>::type>
1679 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFenceStatus( Fence fence, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1680 {
1681 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1682 return static_cast<Result>( d.vkGetFenceStatus( static_cast<VkDevice>( m_device ), static_cast<VkFence>( fence ) ) );
1683 }
1684 #else
1685 // wrapper function for command vkGetFenceStatus, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceStatus.html
1686 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFenceStatus ), bool>::type>
1687 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFenceStatus( Fence fence, Dispatch const & d ) const
1688 {
1689 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1690 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1691 VULKAN_HPP_ASSERT( d.vkGetFenceStatus && "Function <vkGetFenceStatus> requires <VK_VERSION_1_0>" );
1692 # endif
1693
1694 Result result = static_cast<Result>( d.vkGetFenceStatus( m_device, static_cast<VkFence>( fence ) ) );
1695 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceStatus", { Result::eSuccess, Result::eNotReady } );
1696
1697 return static_cast<Result>( result );
1698 }
1699 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
1700
1701 // wrapper function for command vkWaitForFences, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForFences.html
1702 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitForFences ), bool>::type>
1703 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForFences(
1704 uint32_t fenceCount, Fence const * pFences, Bool32 waitAll, uint64_t timeout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1705 {
1706 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1707 return static_cast<Result>( d.vkWaitForFences(
1708 static_cast<VkDevice>( m_device ), fenceCount, reinterpret_cast<VkFence const *>( pFences ), static_cast<VkBool32>( waitAll ), timeout ) );
1709 }
1710
1711 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1712 // wrapper function for command vkWaitForFences, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForFences.html
1713 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitForFences ), bool>::type>
1714 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForFences(
1715 ArrayProxy<Fence const> const & fences, Bool32 waitAll, uint64_t timeout, Dispatch const & d ) const
1716 {
1717 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1718 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1719 VULKAN_HPP_ASSERT( d.vkWaitForFences && "Function <vkWaitForFences> requires <VK_VERSION_1_0>" );
1720 # endif
1721
1722 Result result = static_cast<Result>(
1723 d.vkWaitForFences( m_device, fences.size(), reinterpret_cast<VkFence const *>( fences.data() ), static_cast<VkBool32>( waitAll ), timeout ) );
1724 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitForFences", { Result::eSuccess, Result::eTimeout } );
1725
1726 return static_cast<Result>( result );
1727 }
1728 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1729
1730 // wrapper function for command vkCreateSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSemaphore.html
1731 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSemaphore ), bool>::type>
1732 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createSemaphore(
1733 SemaphoreCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, Semaphore * pSemaphore, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1734 {
1735 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1736 return static_cast<Result>( d.vkCreateSemaphore( static_cast<VkDevice>( m_device ),
1737 reinterpret_cast<VkSemaphoreCreateInfo const *>( pCreateInfo ),
1738 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
1739 reinterpret_cast<VkSemaphore *>( pSemaphore ) ) );
1740 }
1741
1742 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1743 // wrapper function for command vkCreateSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSemaphore.html
1744 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSemaphore ), bool>::type>
1745 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Semaphore>::type Device::createSemaphore(
1746 SemaphoreCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
1747 {
1748 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1749 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1750 VULKAN_HPP_ASSERT( d.vkCreateSemaphore && "Function <vkCreateSemaphore> requires <VK_VERSION_1_0>" );
1751 # endif
1752
1753 Semaphore semaphore;
1754 Result result = static_cast<Result>( d.vkCreateSemaphore( m_device,
1755 reinterpret_cast<VkSemaphoreCreateInfo const *>( &createInfo ),
1756 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
1757 reinterpret_cast<VkSemaphore *>( &semaphore ) ) );
1758 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSemaphore" );
1759
1760 return detail::createResultValueType( result, std::move( semaphore ) );
1761 }
1762
1763 # ifndef VULKAN_HPP_NO_SMART_HANDLE
1764 // wrapper function for command vkCreateSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSemaphore.html
1765 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSemaphore ), bool>::type>
1766 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Semaphore, Dispatch>>::type Device::createSemaphoreUnique(
1767 SemaphoreCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
1768 {
1769 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1770 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1771 VULKAN_HPP_ASSERT( d.vkCreateSemaphore && "Function <vkCreateSemaphore> requires <VK_VERSION_1_0>" );
1772 # endif
1773
1774 Semaphore semaphore;
1775 Result result = static_cast<Result>( d.vkCreateSemaphore( m_device,
1776 reinterpret_cast<VkSemaphoreCreateInfo const *>( &createInfo ),
1777 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
1778 reinterpret_cast<VkSemaphore *>( &semaphore ) ) );
1779 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSemaphoreUnique" );
1780
1781 return detail::createResultValueType( result,
1782 UniqueHandle<Semaphore, Dispatch>( semaphore, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
1783 }
1784 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
1785 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1786
1787 // wrapper function for command vkDestroySemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySemaphore.html
1788 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySemaphore ), bool>::type>
1789 VULKAN_HPP_INLINE void Device::destroySemaphore( Semaphore semaphore, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1790 {
1791 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1792 d.vkDestroySemaphore(
1793 static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( semaphore ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
1794 }
1795
1796 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1797 // wrapper function for command vkDestroySemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySemaphore.html
1798 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySemaphore ), bool>::type>
1799 VULKAN_HPP_INLINE void Device::destroySemaphore( Semaphore semaphore, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
1800 const VULKAN_HPP_NOEXCEPT
1801 {
1802 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1803 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1804 VULKAN_HPP_ASSERT( d.vkDestroySemaphore && "Function <vkDestroySemaphore> requires <VK_VERSION_1_0>" );
1805 # endif
1806
1807 d.vkDestroySemaphore( m_device, static_cast<VkSemaphore>( semaphore ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
1808 }
1809 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1810
1811 // wrapper function for command vkDestroySemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySemaphore.html
1812 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySemaphore ), bool>::type>
1813 VULKAN_HPP_INLINE void Device::destroy( Semaphore semaphore, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1814 {
1815 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1816 d.vkDestroySemaphore(
1817 static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( semaphore ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
1818 }
1819
1820 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1821 // wrapper function for command vkDestroySemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySemaphore.html
1822 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySemaphore ), bool>::type>
1823 VULKAN_HPP_INLINE void Device::destroy( Semaphore semaphore, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1824 {
1825 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1826 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1827 VULKAN_HPP_ASSERT( d.vkDestroySemaphore && "Function <vkDestroySemaphore> requires <VK_VERSION_1_0>" );
1828 # endif
1829
1830 d.vkDestroySemaphore( m_device, static_cast<VkSemaphore>( semaphore ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
1831 }
1832 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1833
1834 // wrapper function for command vkCreateQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateQueryPool.html
1835 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateQueryPool ), bool>::type>
1836 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createQueryPool(
1837 QueryPoolCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, QueryPool * pQueryPool, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1838 {
1839 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1840 return static_cast<Result>( d.vkCreateQueryPool( static_cast<VkDevice>( m_device ),
1841 reinterpret_cast<VkQueryPoolCreateInfo const *>( pCreateInfo ),
1842 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
1843 reinterpret_cast<VkQueryPool *>( pQueryPool ) ) );
1844 }
1845
1846 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1847 // wrapper function for command vkCreateQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateQueryPool.html
1848 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateQueryPool ), bool>::type>
1849 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<QueryPool>::type Device::createQueryPool(
1850 QueryPoolCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
1851 {
1852 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1853 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1854 VULKAN_HPP_ASSERT( d.vkCreateQueryPool && "Function <vkCreateQueryPool> requires <VK_VERSION_1_0>" );
1855 # endif
1856
1857 QueryPool queryPool;
1858 Result result = static_cast<Result>( d.vkCreateQueryPool( m_device,
1859 reinterpret_cast<VkQueryPoolCreateInfo const *>( &createInfo ),
1860 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
1861 reinterpret_cast<VkQueryPool *>( &queryPool ) ) );
1862 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createQueryPool" );
1863
1864 return detail::createResultValueType( result, std::move( queryPool ) );
1865 }
1866
1867 # ifndef VULKAN_HPP_NO_SMART_HANDLE
1868 // wrapper function for command vkCreateQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateQueryPool.html
1869 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateQueryPool ), bool>::type>
1870 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<QueryPool, Dispatch>>::type Device::createQueryPoolUnique(
1871 QueryPoolCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
1872 {
1873 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1874 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1875 VULKAN_HPP_ASSERT( d.vkCreateQueryPool && "Function <vkCreateQueryPool> requires <VK_VERSION_1_0>" );
1876 # endif
1877
1878 QueryPool queryPool;
1879 Result result = static_cast<Result>( d.vkCreateQueryPool( m_device,
1880 reinterpret_cast<VkQueryPoolCreateInfo const *>( &createInfo ),
1881 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
1882 reinterpret_cast<VkQueryPool *>( &queryPool ) ) );
1883 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createQueryPoolUnique" );
1884
1885 return detail::createResultValueType( result,
1886 UniqueHandle<QueryPool, Dispatch>( queryPool, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
1887 }
1888 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
1889 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1890
1891 // wrapper function for command vkDestroyQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyQueryPool.html
1892 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyQueryPool ), bool>::type>
1893 VULKAN_HPP_INLINE void Device::destroyQueryPool( QueryPool queryPool, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1894 {
1895 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1896 d.vkDestroyQueryPool(
1897 static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( queryPool ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
1898 }
1899
1900 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1901 // wrapper function for command vkDestroyQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyQueryPool.html
1902 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyQueryPool ), bool>::type>
1903 VULKAN_HPP_INLINE void Device::destroyQueryPool( QueryPool queryPool, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
1904 const VULKAN_HPP_NOEXCEPT
1905 {
1906 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1907 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1908 VULKAN_HPP_ASSERT( d.vkDestroyQueryPool && "Function <vkDestroyQueryPool> requires <VK_VERSION_1_0>" );
1909 # endif
1910
1911 d.vkDestroyQueryPool( m_device, static_cast<VkQueryPool>( queryPool ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
1912 }
1913 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1914
1915 // wrapper function for command vkDestroyQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyQueryPool.html
1916 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyQueryPool ), bool>::type>
1917 VULKAN_HPP_INLINE void Device::destroy( QueryPool queryPool, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1918 {
1919 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1920 d.vkDestroyQueryPool(
1921 static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( queryPool ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
1922 }
1923
1924 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1925 // wrapper function for command vkDestroyQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyQueryPool.html
1926 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyQueryPool ), bool>::type>
1927 VULKAN_HPP_INLINE void Device::destroy( QueryPool queryPool, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1928 {
1929 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1930 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1931 VULKAN_HPP_ASSERT( d.vkDestroyQueryPool && "Function <vkDestroyQueryPool> requires <VK_VERSION_1_0>" );
1932 # endif
1933
1934 d.vkDestroyQueryPool( m_device, static_cast<VkQueryPool>( queryPool ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
1935 }
1936 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1937
1938 // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html
1939 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetQueryPoolResults ), bool>::type>
1940 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getQueryPoolResults( QueryPool queryPool,
1941 uint32_t firstQuery,
1942 uint32_t queryCount,
1943 size_t dataSize,
1944 void * pData,
1945 DeviceSize stride,
1946 QueryResultFlags flags,
1947 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1948 {
1949 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1950 return static_cast<Result>( d.vkGetQueryPoolResults( static_cast<VkDevice>( m_device ),
1951 static_cast<VkQueryPool>( queryPool ),
1952 firstQuery,
1953 queryCount,
1954 dataSize,
1955 pData,
1956 static_cast<VkDeviceSize>( stride ),
1957 static_cast<VkQueryResultFlags>( flags ) ) );
1958 }
1959
1960 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1961 // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html
1962 template <typename DataType,
1963 typename DataTypeAllocator,
1964 typename Dispatch,
1965 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
1966 typename std::enable_if<IS_DISPATCHED( vkGetQueryPoolResults ), bool>::type>
1967 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<DataType, DataTypeAllocator>> Device::getQueryPoolResults(
1968 QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, DeviceSize stride, QueryResultFlags flags, Dispatch const & d ) const
1969 {
1970 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1971 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1972 VULKAN_HPP_ASSERT( d.vkGetQueryPoolResults && "Function <vkGetQueryPoolResults> requires <VK_VERSION_1_0>" );
1973 # endif
1974
1975 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
1976 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
1977 Result result = static_cast<Result>( d.vkGetQueryPoolResults( m_device,
1978 static_cast<VkQueryPool>( queryPool ),
1979 firstQuery,
1980 queryCount,
1981 data.size() * sizeof( DataType ),
1982 reinterpret_cast<void *>( data.data() ),
1983 static_cast<VkDeviceSize>( stride ),
1984 static_cast<VkQueryResultFlags>( flags ) ) );
1985 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getQueryPoolResults", { Result::eSuccess, Result::eNotReady } );
1986
1987 return { result, data };
1988 }
1989
1990 // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html
1991 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetQueryPoolResults ), bool>::type>
1992 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<DataType> Device::getQueryPoolResult(
1993 QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, DeviceSize stride, QueryResultFlags flags, Dispatch const & d ) const
1994 {
1995 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1996 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1997 VULKAN_HPP_ASSERT( d.vkGetQueryPoolResults && "Function <vkGetQueryPoolResults> requires <VK_VERSION_1_0>" );
1998 # endif
1999
2000 DataType data;
2001 Result result = static_cast<Result>( d.vkGetQueryPoolResults( m_device,
2002 static_cast<VkQueryPool>( queryPool ),
2003 firstQuery,
2004 queryCount,
2005 sizeof( DataType ),
2006 reinterpret_cast<void *>( &data ),
2007 static_cast<VkDeviceSize>( stride ),
2008 static_cast<VkQueryResultFlags>( flags ) ) );
2009 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getQueryPoolResult", { Result::eSuccess, Result::eNotReady } );
2010
2011 return { result, data };
2012 }
2013 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2014
2015 // wrapper function for command vkCreateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBuffer.html
2016 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBuffer ), bool>::type>
2017 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createBuffer(
2018 BufferCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, Buffer * pBuffer, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2019 {
2020 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2021 return static_cast<Result>( d.vkCreateBuffer( static_cast<VkDevice>( m_device ),
2022 reinterpret_cast<VkBufferCreateInfo const *>( pCreateInfo ),
2023 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
2024 reinterpret_cast<VkBuffer *>( pBuffer ) ) );
2025 }
2026
2027 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2028 // wrapper function for command vkCreateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBuffer.html
2029 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBuffer ), bool>::type>
2030 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Buffer>::type Device::createBuffer(
2031 BufferCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
2032 {
2033 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2034 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2035 VULKAN_HPP_ASSERT( d.vkCreateBuffer && "Function <vkCreateBuffer> requires <VK_VERSION_1_0>" );
2036 # endif
2037
2038 Buffer buffer;
2039 Result result = static_cast<Result>( d.vkCreateBuffer( m_device,
2040 reinterpret_cast<VkBufferCreateInfo const *>( &createInfo ),
2041 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
2042 reinterpret_cast<VkBuffer *>( &buffer ) ) );
2043 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBuffer" );
2044
2045 return detail::createResultValueType( result, std::move( buffer ) );
2046 }
2047
2048 # ifndef VULKAN_HPP_NO_SMART_HANDLE
2049 // wrapper function for command vkCreateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBuffer.html
2050 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBuffer ), bool>::type>
2051 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Buffer, Dispatch>>::type Device::createBufferUnique(
2052 BufferCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
2053 {
2054 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2055 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2056 VULKAN_HPP_ASSERT( d.vkCreateBuffer && "Function <vkCreateBuffer> requires <VK_VERSION_1_0>" );
2057 # endif
2058
2059 Buffer buffer;
2060 Result result = static_cast<Result>( d.vkCreateBuffer( m_device,
2061 reinterpret_cast<VkBufferCreateInfo const *>( &createInfo ),
2062 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
2063 reinterpret_cast<VkBuffer *>( &buffer ) ) );
2064 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferUnique" );
2065
2066 return detail::createResultValueType( result, UniqueHandle<Buffer, Dispatch>( buffer, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
2067 }
2068 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
2069 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2070
2071 // wrapper function for command vkDestroyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBuffer.html
2072 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBuffer ), bool>::type>
2073 VULKAN_HPP_INLINE void Device::destroyBuffer( Buffer buffer, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2074 {
2075 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2076 d.vkDestroyBuffer( static_cast<VkDevice>( m_device ), static_cast<VkBuffer>( buffer ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
2077 }
2078
2079 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2080 // wrapper function for command vkDestroyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBuffer.html
2081 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBuffer ), bool>::type>
2082 VULKAN_HPP_INLINE void Device::destroyBuffer( Buffer buffer, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2083 {
2084 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2085 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2086 VULKAN_HPP_ASSERT( d.vkDestroyBuffer && "Function <vkDestroyBuffer> requires <VK_VERSION_1_0>" );
2087 # endif
2088
2089 d.vkDestroyBuffer( m_device, static_cast<VkBuffer>( buffer ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
2090 }
2091 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2092
2093 // wrapper function for command vkDestroyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBuffer.html
2094 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBuffer ), bool>::type>
2095 VULKAN_HPP_INLINE void Device::destroy( Buffer buffer, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2096 {
2097 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2098 d.vkDestroyBuffer( static_cast<VkDevice>( m_device ), static_cast<VkBuffer>( buffer ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
2099 }
2100
2101 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2102 // wrapper function for command vkDestroyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBuffer.html
2103 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBuffer ), bool>::type>
2104 VULKAN_HPP_INLINE void Device::destroy( Buffer buffer, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2105 {
2106 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2107 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2108 VULKAN_HPP_ASSERT( d.vkDestroyBuffer && "Function <vkDestroyBuffer> requires <VK_VERSION_1_0>" );
2109 # endif
2110
2111 d.vkDestroyBuffer( m_device, static_cast<VkBuffer>( buffer ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
2112 }
2113 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2114
2115 // wrapper function for command vkCreateImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImage.html
2116 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImage ), bool>::type>
2117 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createImage(
2118 ImageCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, Image * pImage, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2119 {
2120 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2121 return static_cast<Result>( d.vkCreateImage( static_cast<VkDevice>( m_device ),
2122 reinterpret_cast<VkImageCreateInfo const *>( pCreateInfo ),
2123 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
2124 reinterpret_cast<VkImage *>( pImage ) ) );
2125 }
2126
2127 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2128 // wrapper function for command vkCreateImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImage.html
2129 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImage ), bool>::type>
2130 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Image>::type Device::createImage(
2131 ImageCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
2132 {
2133 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2134 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2135 VULKAN_HPP_ASSERT( d.vkCreateImage && "Function <vkCreateImage> requires <VK_VERSION_1_0>" );
2136 # endif
2137
2138 Image image;
2139 Result result = static_cast<Result>( d.vkCreateImage( m_device,
2140 reinterpret_cast<VkImageCreateInfo const *>( &createInfo ),
2141 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
2142 reinterpret_cast<VkImage *>( &image ) ) );
2143 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createImage" );
2144
2145 return detail::createResultValueType( result, std::move( image ) );
2146 }
2147
2148 # ifndef VULKAN_HPP_NO_SMART_HANDLE
2149 // wrapper function for command vkCreateImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImage.html
2150 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImage ), bool>::type>
2151 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Image, Dispatch>>::type Device::createImageUnique(
2152 ImageCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
2153 {
2154 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2155 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2156 VULKAN_HPP_ASSERT( d.vkCreateImage && "Function <vkCreateImage> requires <VK_VERSION_1_0>" );
2157 # endif
2158
2159 Image image;
2160 Result result = static_cast<Result>( d.vkCreateImage( m_device,
2161 reinterpret_cast<VkImageCreateInfo const *>( &createInfo ),
2162 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
2163 reinterpret_cast<VkImage *>( &image ) ) );
2164 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createImageUnique" );
2165
2166 return detail::createResultValueType( result, UniqueHandle<Image, Dispatch>( image, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
2167 }
2168 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
2169 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2170
2171 // wrapper function for command vkDestroyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImage.html
2172 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImage ), bool>::type>
2173 VULKAN_HPP_INLINE void Device::destroyImage( Image image, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2174 {
2175 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2176 d.vkDestroyImage( static_cast<VkDevice>( m_device ), static_cast<VkImage>( image ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
2177 }
2178
2179 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2180 // wrapper function for command vkDestroyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImage.html
2181 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImage ), bool>::type>
2182 VULKAN_HPP_INLINE void Device::destroyImage( Image image, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2183 {
2184 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2185 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2186 VULKAN_HPP_ASSERT( d.vkDestroyImage && "Function <vkDestroyImage> requires <VK_VERSION_1_0>" );
2187 # endif
2188
2189 d.vkDestroyImage( m_device, static_cast<VkImage>( image ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
2190 }
2191 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2192
2193 // wrapper function for command vkDestroyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImage.html
2194 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImage ), bool>::type>
2195 VULKAN_HPP_INLINE void Device::destroy( Image image, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2196 {
2197 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2198 d.vkDestroyImage( static_cast<VkDevice>( m_device ), static_cast<VkImage>( image ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
2199 }
2200
2201 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
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::destroy( Image image, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2205 {
2206 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2207 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2208 VULKAN_HPP_ASSERT( d.vkDestroyImage && "Function <vkDestroyImage> requires <VK_VERSION_1_0>" );
2209 # endif
2210
2211 d.vkDestroyImage( m_device, static_cast<VkImage>( image ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
2212 }
2213 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2214
2215 // wrapper function for command vkGetImageSubresourceLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout.html
2216 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout ), bool>::type>
2217 VULKAN_HPP_INLINE void Device::getImageSubresourceLayout(
2218 Image image, ImageSubresource const * pSubresource, SubresourceLayout * pLayout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2219 {
2220 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2221 d.vkGetImageSubresourceLayout( static_cast<VkDevice>( m_device ),
2222 static_cast<VkImage>( image ),
2223 reinterpret_cast<VkImageSubresource const *>( pSubresource ),
2224 reinterpret_cast<VkSubresourceLayout *>( pLayout ) );
2225 }
2226
2227 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2228 // wrapper function for command vkGetImageSubresourceLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout.html
2229 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout ), bool>::type>
2230 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout Device::getImageSubresourceLayout(
2231 Image image, ImageSubresource const & subresource, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2232 {
2233 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2234 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2235 VULKAN_HPP_ASSERT( d.vkGetImageSubresourceLayout && "Function <vkGetImageSubresourceLayout> requires <VK_VERSION_1_0>" );
2236 # endif
2237
2238 SubresourceLayout layout;
2239 d.vkGetImageSubresourceLayout( m_device,
2240 static_cast<VkImage>( image ),
2241 reinterpret_cast<VkImageSubresource const *>( &subresource ),
2242 reinterpret_cast<VkSubresourceLayout *>( &layout ) );
2243
2244 return layout;
2245 }
2246 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2247
2248 // wrapper function for command vkCreateImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImageView.html
2249 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImageView ), bool>::type>
2250 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createImageView(
2251 ImageViewCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, ImageView * pView, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2252 {
2253 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2254 return static_cast<Result>( d.vkCreateImageView( static_cast<VkDevice>( m_device ),
2255 reinterpret_cast<VkImageViewCreateInfo const *>( pCreateInfo ),
2256 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
2257 reinterpret_cast<VkImageView *>( pView ) ) );
2258 }
2259
2260 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2261 // wrapper function for command vkCreateImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImageView.html
2262 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImageView ), bool>::type>
2263 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageView>::type Device::createImageView(
2264 ImageViewCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
2265 {
2266 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2267 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2268 VULKAN_HPP_ASSERT( d.vkCreateImageView && "Function <vkCreateImageView> requires <VK_VERSION_1_0>" );
2269 # endif
2270
2271 ImageView view;
2272 Result result = static_cast<Result>( d.vkCreateImageView( m_device,
2273 reinterpret_cast<VkImageViewCreateInfo const *>( &createInfo ),
2274 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
2275 reinterpret_cast<VkImageView *>( &view ) ) );
2276 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createImageView" );
2277
2278 return detail::createResultValueType( result, std::move( view ) );
2279 }
2280
2281 # ifndef VULKAN_HPP_NO_SMART_HANDLE
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 typename ResultValueType<UniqueHandle<ImageView, Dispatch>>::type Device::createImageViewUnique(
2285 ImageViewCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
2286 {
2287 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2288 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2289 VULKAN_HPP_ASSERT( d.vkCreateImageView && "Function <vkCreateImageView> requires <VK_VERSION_1_0>" );
2290 # endif
2291
2292 ImageView view;
2293 Result result = static_cast<Result>( d.vkCreateImageView( m_device,
2294 reinterpret_cast<VkImageViewCreateInfo const *>( &createInfo ),
2295 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
2296 reinterpret_cast<VkImageView *>( &view ) ) );
2297 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createImageViewUnique" );
2298
2299 return detail::createResultValueType( result, UniqueHandle<ImageView, Dispatch>( view, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
2300 }
2301 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
2302 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2303
2304 // wrapper function for command vkDestroyImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImageView.html
2305 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImageView ), bool>::type>
2306 VULKAN_HPP_INLINE void Device::destroyImageView( ImageView imageView, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2307 {
2308 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2309 d.vkDestroyImageView(
2310 static_cast<VkDevice>( m_device ), static_cast<VkImageView>( imageView ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
2311 }
2312
2313 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2314 // wrapper function for command vkDestroyImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImageView.html
2315 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImageView ), bool>::type>
2316 VULKAN_HPP_INLINE void Device::destroyImageView( ImageView imageView, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
2317 const VULKAN_HPP_NOEXCEPT
2318 {
2319 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2320 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2321 VULKAN_HPP_ASSERT( d.vkDestroyImageView && "Function <vkDestroyImageView> requires <VK_VERSION_1_0>" );
2322 # endif
2323
2324 d.vkDestroyImageView( m_device, static_cast<VkImageView>( imageView ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
2325 }
2326 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2327
2328 // wrapper function for command vkDestroyImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImageView.html
2329 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImageView ), bool>::type>
2330 VULKAN_HPP_INLINE void Device::destroy( ImageView imageView, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2331 {
2332 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2333 d.vkDestroyImageView(
2334 static_cast<VkDevice>( m_device ), static_cast<VkImageView>( imageView ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
2335 }
2336
2337 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2338 // wrapper function for command vkDestroyImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImageView.html
2339 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImageView ), bool>::type>
2340 VULKAN_HPP_INLINE void Device::destroy( ImageView imageView, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2341 {
2342 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2343 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2344 VULKAN_HPP_ASSERT( d.vkDestroyImageView && "Function <vkDestroyImageView> requires <VK_VERSION_1_0>" );
2345 # endif
2346
2347 d.vkDestroyImageView( m_device, static_cast<VkImageView>( imageView ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
2348 }
2349 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2350
2351 // wrapper function for command vkCreateCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCommandPool.html
2352 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCommandPool ), bool>::type>
2353 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createCommandPool(
2354 CommandPoolCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, CommandPool * pCommandPool, Dispatch const & d )
2355 const VULKAN_HPP_NOEXCEPT
2356 {
2357 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2358 return static_cast<Result>( d.vkCreateCommandPool( static_cast<VkDevice>( m_device ),
2359 reinterpret_cast<VkCommandPoolCreateInfo const *>( pCreateInfo ),
2360 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
2361 reinterpret_cast<VkCommandPool *>( pCommandPool ) ) );
2362 }
2363
2364 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2365 // wrapper function for command vkCreateCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCommandPool.html
2366 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCommandPool ), bool>::type>
2367 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CommandPool>::type Device::createCommandPool(
2368 CommandPoolCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
2369 {
2370 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2371 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2372 VULKAN_HPP_ASSERT( d.vkCreateCommandPool && "Function <vkCreateCommandPool> requires <VK_VERSION_1_0>" );
2373 # endif
2374
2375 CommandPool commandPool;
2376 Result result = static_cast<Result>( d.vkCreateCommandPool( m_device,
2377 reinterpret_cast<VkCommandPoolCreateInfo const *>( &createInfo ),
2378 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
2379 reinterpret_cast<VkCommandPool *>( &commandPool ) ) );
2380 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCommandPool" );
2381
2382 return detail::createResultValueType( result, std::move( commandPool ) );
2383 }
2384
2385 # ifndef VULKAN_HPP_NO_SMART_HANDLE
2386 // wrapper function for command vkCreateCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCommandPool.html
2387 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCommandPool ), bool>::type>
2388 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<CommandPool, Dispatch>>::type Device::createCommandPoolUnique(
2389 CommandPoolCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
2390 {
2391 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2392 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2393 VULKAN_HPP_ASSERT( d.vkCreateCommandPool && "Function <vkCreateCommandPool> requires <VK_VERSION_1_0>" );
2394 # endif
2395
2396 CommandPool commandPool;
2397 Result result = static_cast<Result>( d.vkCreateCommandPool( m_device,
2398 reinterpret_cast<VkCommandPoolCreateInfo const *>( &createInfo ),
2399 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
2400 reinterpret_cast<VkCommandPool *>( &commandPool ) ) );
2401 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCommandPoolUnique" );
2402
2403 return detail::createResultValueType( result,
2404 UniqueHandle<CommandPool, Dispatch>( commandPool, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
2405 }
2406 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
2407 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2408
2409 // wrapper function for command vkDestroyCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCommandPool.html
2410 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCommandPool ), bool>::type>
2411 VULKAN_HPP_INLINE void Device::destroyCommandPool( CommandPool commandPool, AllocationCallbacks const * pAllocator, Dispatch const & d )
2412 const VULKAN_HPP_NOEXCEPT
2413 {
2414 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2415 d.vkDestroyCommandPool(
2416 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( commandPool ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
2417 }
2418
2419 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2420 // wrapper function for command vkDestroyCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCommandPool.html
2421 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCommandPool ), bool>::type>
2422 VULKAN_HPP_INLINE void Device::destroyCommandPool( CommandPool commandPool, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
2423 const VULKAN_HPP_NOEXCEPT
2424 {
2425 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2426 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2427 VULKAN_HPP_ASSERT( d.vkDestroyCommandPool && "Function <vkDestroyCommandPool> requires <VK_VERSION_1_0>" );
2428 # endif
2429
2430 d.vkDestroyCommandPool( m_device, static_cast<VkCommandPool>( commandPool ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
2431 }
2432 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2433
2434 // wrapper function for command vkDestroyCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCommandPool.html
2435 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCommandPool ), bool>::type>
2436 VULKAN_HPP_INLINE void Device::destroy( CommandPool commandPool, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2437 {
2438 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2439 d.vkDestroyCommandPool(
2440 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( commandPool ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
2441 }
2442
2443 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2444 // wrapper function for command vkDestroyCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCommandPool.html
2445 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCommandPool ), bool>::type>
2446 VULKAN_HPP_INLINE void Device::destroy( CommandPool commandPool, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2447 {
2448 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2449 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2450 VULKAN_HPP_ASSERT( d.vkDestroyCommandPool && "Function <vkDestroyCommandPool> requires <VK_VERSION_1_0>" );
2451 # endif
2452
2453 d.vkDestroyCommandPool( m_device, static_cast<VkCommandPool>( commandPool ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
2454 }
2455 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2456
2457 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
2458 // wrapper function for command vkResetCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetCommandPool.html
2459 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetCommandPool ), bool>::type>
2460 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::resetCommandPool( CommandPool commandPool, CommandPoolResetFlags flags, Dispatch const & d )
2461 const VULKAN_HPP_NOEXCEPT
2462 {
2463 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2464 return static_cast<Result>(
2465 d.vkResetCommandPool( static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( commandPool ), static_cast<VkCommandPoolResetFlags>( flags ) ) );
2466 }
2467 #else
2468 // wrapper function for command vkResetCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetCommandPool.html
2469 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetCommandPool ), bool>::type>
2470 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::resetCommandPool(
2471 CommandPool commandPool, CommandPoolResetFlags flags, Dispatch const & d ) const
2472 {
2473 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2474 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2475 VULKAN_HPP_ASSERT( d.vkResetCommandPool && "Function <vkResetCommandPool> requires <VK_VERSION_1_0>" );
2476 # endif
2477
2478 Result result =
2479 static_cast<Result>( d.vkResetCommandPool( m_device, static_cast<VkCommandPool>( commandPool ), static_cast<VkCommandPoolResetFlags>( flags ) ) );
2480 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetCommandPool" );
2481
2482 return detail::createResultValueType( result );
2483 }
2484 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
2485
2486 // wrapper function for command vkAllocateCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateCommandBuffers.html
2487 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAllocateCommandBuffers ), bool>::type>
2488 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::allocateCommandBuffers(
2489 CommandBufferAllocateInfo const * pAllocateInfo, CommandBuffer * pCommandBuffers, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2490 {
2491 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2492 return static_cast<Result>( d.vkAllocateCommandBuffers( static_cast<VkDevice>( m_device ),
2493 reinterpret_cast<VkCommandBufferAllocateInfo const *>( pAllocateInfo ),
2494 reinterpret_cast<VkCommandBuffer *>( pCommandBuffers ) ) );
2495 }
2496
2497 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2498 // wrapper function for command vkAllocateCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateCommandBuffers.html
2499 template <typename CommandBufferAllocator,
2500 typename Dispatch,
2501 typename std::enable_if<std::is_same<typename CommandBufferAllocator::value_type, CommandBuffer>::value, int>::type,
2502 typename std::enable_if<IS_DISPATCHED( vkAllocateCommandBuffers ), bool>::type>
2503 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CommandBuffer, CommandBufferAllocator>>::type Device::allocateCommandBuffers(
2504 CommandBufferAllocateInfo const & allocateInfo, Dispatch const & d ) const
2505 {
2506 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2507 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2508 VULKAN_HPP_ASSERT( d.vkAllocateCommandBuffers && "Function <vkAllocateCommandBuffers> requires <VK_VERSION_1_0>" );
2509 # endif
2510
2511 std::vector<CommandBuffer, CommandBufferAllocator> commandBuffers( allocateInfo.commandBufferCount );
2512 Result result = static_cast<Result>( d.vkAllocateCommandBuffers(
2513 m_device, reinterpret_cast<VkCommandBufferAllocateInfo const *>( &allocateInfo ), reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
2514 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" );
2515
2516 return detail::createResultValueType( result, std::move( commandBuffers ) );
2517 }
2518
2519 // wrapper function for command vkAllocateCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateCommandBuffers.html
2520 template <typename CommandBufferAllocator,
2521 typename Dispatch,
2522 typename std::enable_if<std::is_same<typename CommandBufferAllocator::value_type, CommandBuffer>::value, int>::type,
2523 typename std::enable_if<IS_DISPATCHED( vkAllocateCommandBuffers ), bool>::type>
2524 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CommandBuffer, CommandBufferAllocator>>::type Device::allocateCommandBuffers(
2525 CommandBufferAllocateInfo const & allocateInfo, CommandBufferAllocator const & commandBufferAllocator, Dispatch const & d ) const
2526 {
2527 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2528 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2529 VULKAN_HPP_ASSERT( d.vkAllocateCommandBuffers && "Function <vkAllocateCommandBuffers> requires <VK_VERSION_1_0>" );
2530 # endif
2531
2532 std::vector<CommandBuffer, CommandBufferAllocator> commandBuffers( allocateInfo.commandBufferCount, {}, commandBufferAllocator );
2533 Result result = static_cast<Result>( d.vkAllocateCommandBuffers(
2534 m_device, reinterpret_cast<VkCommandBufferAllocateInfo const *>( &allocateInfo ), reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
2535 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" );
2536
2537 return detail::createResultValueType( result, std::move( commandBuffers ) );
2538 }
2539
2540 # ifndef VULKAN_HPP_NO_SMART_HANDLE
2541 // wrapper function for command vkAllocateCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateCommandBuffers.html
2542 template <typename Dispatch,
2543 typename CommandBufferAllocator,
2544 typename std::enable_if<std::is_same<typename CommandBufferAllocator::value_type, UniqueHandle<CommandBuffer, Dispatch>>::value, int>::type,
2545 typename std::enable_if<IS_DISPATCHED( vkAllocateCommandBuffers ), bool>::type>
2546 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator>>::type
2547 Device::allocateCommandBuffersUnique( CommandBufferAllocateInfo const & allocateInfo, Dispatch const & d ) const
2548 {
2549 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2550 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2551 VULKAN_HPP_ASSERT( d.vkAllocateCommandBuffers && "Function <vkAllocateCommandBuffers> requires <VK_VERSION_1_0>" );
2552 # endif
2553
2554 std::vector<CommandBuffer> commandBuffers( allocateInfo.commandBufferCount );
2555 Result result = static_cast<Result>( d.vkAllocateCommandBuffers(
2556 m_device, reinterpret_cast<VkCommandBufferAllocateInfo const *>( &allocateInfo ), reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
2557 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffersUnique" );
2558 std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator> uniqueCommandBuffers;
2559 uniqueCommandBuffers.reserve( allocateInfo.commandBufferCount );
2560 detail::PoolFree<Device, CommandPool, Dispatch> deleter( *this, allocateInfo.commandPool, d );
2561 for ( auto const & commandBuffer : commandBuffers )
2562 {
2563 uniqueCommandBuffers.push_back( UniqueHandle<CommandBuffer, Dispatch>( commandBuffer, deleter ) );
2564 }
2565 return detail::createResultValueType( result, std::move( uniqueCommandBuffers ) );
2566 }
2567
2568 // wrapper function for command vkAllocateCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateCommandBuffers.html
2569 template <typename Dispatch,
2570 typename CommandBufferAllocator,
2571 typename std::enable_if<std::is_same<typename CommandBufferAllocator::value_type, UniqueHandle<CommandBuffer, Dispatch>>::value, int>::type,
2572 typename std::enable_if<IS_DISPATCHED( vkAllocateCommandBuffers ), bool>::type>
2573 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator>>::type
2574 Device::allocateCommandBuffersUnique(
2575 CommandBufferAllocateInfo const & allocateInfo, CommandBufferAllocator const & commandBufferAllocator, Dispatch const & d ) const
2576 {
2577 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2578 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2579 VULKAN_HPP_ASSERT( d.vkAllocateCommandBuffers && "Function <vkAllocateCommandBuffers> requires <VK_VERSION_1_0>" );
2580 # endif
2581
2582 std::vector<CommandBuffer> commandBuffers( allocateInfo.commandBufferCount );
2583 Result result = static_cast<Result>( d.vkAllocateCommandBuffers(
2584 m_device, reinterpret_cast<VkCommandBufferAllocateInfo const *>( &allocateInfo ), reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
2585 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffersUnique" );
2586 std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator> uniqueCommandBuffers( commandBufferAllocator );
2587 uniqueCommandBuffers.reserve( allocateInfo.commandBufferCount );
2588 detail::PoolFree<Device, CommandPool, Dispatch> deleter( *this, allocateInfo.commandPool, d );
2589 for ( auto const & commandBuffer : commandBuffers )
2590 {
2591 uniqueCommandBuffers.push_back( UniqueHandle<CommandBuffer, Dispatch>( commandBuffer, deleter ) );
2592 }
2593 return detail::createResultValueType( result, std::move( uniqueCommandBuffers ) );
2594 }
2595 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
2596 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2597
2598 // wrapper function for command vkFreeCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeCommandBuffers.html
2599 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeCommandBuffers ), bool>::type>
2600 VULKAN_HPP_INLINE void Device::freeCommandBuffers(
2601 CommandPool commandPool, uint32_t commandBufferCount, CommandBuffer const * pCommandBuffers, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2602 {
2603 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2604 d.vkFreeCommandBuffers( static_cast<VkDevice>( m_device ),
2605 static_cast<VkCommandPool>( commandPool ),
2606 commandBufferCount,
2607 reinterpret_cast<VkCommandBuffer const *>( pCommandBuffers ) );
2608 }
2609
2610 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2611 // wrapper function for command vkFreeCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeCommandBuffers.html
2612 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeCommandBuffers ), bool>::type>
2613 VULKAN_HPP_INLINE void Device::freeCommandBuffers( CommandPool commandPool, ArrayProxy<CommandBuffer const> const & commandBuffers, Dispatch const & d )
2614 const VULKAN_HPP_NOEXCEPT
2615 {
2616 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2617 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2618 VULKAN_HPP_ASSERT( d.vkFreeCommandBuffers && "Function <vkFreeCommandBuffers> requires <VK_VERSION_1_0>" );
2619 # endif
2620
2621 d.vkFreeCommandBuffers(
2622 m_device, static_cast<VkCommandPool>( commandPool ), commandBuffers.size(), reinterpret_cast<VkCommandBuffer const *>( commandBuffers.data() ) );
2623 }
2624 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2625
2626 // wrapper function for command vkFreeCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeCommandBuffers.html
2627 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeCommandBuffers ), bool>::type>
2628 VULKAN_HPP_INLINE void( Device::free )( CommandPool commandPool, uint32_t commandBufferCount, CommandBuffer const * pCommandBuffers, Dispatch const & d )
2629 const VULKAN_HPP_NOEXCEPT
2630 {
2631 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2632 d.vkFreeCommandBuffers( static_cast<VkDevice>( m_device ),
2633 static_cast<VkCommandPool>( commandPool ),
2634 commandBufferCount,
2635 reinterpret_cast<VkCommandBuffer const *>( pCommandBuffers ) );
2636 }
2637
2638 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2639 // wrapper function for command vkFreeCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeCommandBuffers.html
2640 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeCommandBuffers ), bool>::type>
2641 VULKAN_HPP_INLINE void( Device::free )( CommandPool commandPool, ArrayProxy<CommandBuffer const> const & commandBuffers, Dispatch const & d )
2642 const VULKAN_HPP_NOEXCEPT
2643 {
2644 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2645 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2646 VULKAN_HPP_ASSERT( d.vkFreeCommandBuffers && "Function <vkFreeCommandBuffers> requires <VK_VERSION_1_0>" );
2647 # endif
2648
2649 d.vkFreeCommandBuffers(
2650 m_device, static_cast<VkCommandPool>( commandPool ), commandBuffers.size(), reinterpret_cast<VkCommandBuffer const *>( commandBuffers.data() ) );
2651 }
2652 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2653
2654 // wrapper function for command vkBeginCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBeginCommandBuffer.html
2655 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBeginCommandBuffer ), bool>::type>
2656 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result CommandBuffer::begin( CommandBufferBeginInfo const * pBeginInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2657 {
2658 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2659 return static_cast<Result>(
2660 d.vkBeginCommandBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCommandBufferBeginInfo const *>( pBeginInfo ) ) );
2661 }
2662
2663 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2664 // wrapper function for command vkBeginCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBeginCommandBuffer.html
2665 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBeginCommandBuffer ), bool>::type>
2666 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::begin( CommandBufferBeginInfo const & beginInfo,
2667 Dispatch const & d ) const
2668 {
2669 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2670 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2671 VULKAN_HPP_ASSERT( d.vkBeginCommandBuffer && "Function <vkBeginCommandBuffer> requires <VK_VERSION_1_0>" );
2672 # endif
2673
2674 Result result = static_cast<Result>( d.vkBeginCommandBuffer( m_commandBuffer, reinterpret_cast<VkCommandBufferBeginInfo const *>( &beginInfo ) ) );
2675 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::begin" );
2676
2677 return detail::createResultValueType( result );
2678 }
2679 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2680
2681 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
2682 // wrapper function for command vkEndCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEndCommandBuffer.html
2683 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEndCommandBuffer ), bool>::type>
2684 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result CommandBuffer::end( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2685 {
2686 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2687 return static_cast<Result>( d.vkEndCommandBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ) ) );
2688 }
2689 #else
2690 // wrapper function for command vkEndCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEndCommandBuffer.html
2691 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEndCommandBuffer ), bool>::type>
2692 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::end( Dispatch const & d ) const
2693 {
2694 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2695 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2696 VULKAN_HPP_ASSERT( d.vkEndCommandBuffer && "Function <vkEndCommandBuffer> requires <VK_VERSION_1_0>" );
2697 # endif
2698
2699 Result result = static_cast<Result>( d.vkEndCommandBuffer( m_commandBuffer ) );
2700 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::end" );
2701
2702 return detail::createResultValueType( result );
2703 }
2704 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
2705
2706 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
2707 // wrapper function for command vkResetCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetCommandBuffer.html
2708 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetCommandBuffer ), bool>::type>
2709 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result CommandBuffer::reset( CommandBufferResetFlags flags, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2710 {
2711 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2712 return static_cast<Result>( d.vkResetCommandBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCommandBufferResetFlags>( flags ) ) );
2713 }
2714 #else
2715 // wrapper function for command vkResetCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetCommandBuffer.html
2716 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetCommandBuffer ), bool>::type>
2717 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::reset( CommandBufferResetFlags flags,
2718 Dispatch const & d ) const
2719 {
2720 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2721 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2722 VULKAN_HPP_ASSERT( d.vkResetCommandBuffer && "Function <vkResetCommandBuffer> requires <VK_VERSION_1_0>" );
2723 # endif
2724
2725 Result result = static_cast<Result>( d.vkResetCommandBuffer( m_commandBuffer, static_cast<VkCommandBufferResetFlags>( flags ) ) );
2726 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::reset" );
2727
2728 return detail::createResultValueType( result );
2729 }
2730 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
2731
2732 // wrapper function for command vkCmdCopyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer.html
2733 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBuffer ), bool>::type>
2734 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer( Buffer srcBuffer, Buffer dstBuffer, uint32_t regionCount, BufferCopy const * pRegions, Dispatch const & d )
2735 const VULKAN_HPP_NOEXCEPT
2736 {
2737 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2738 d.vkCmdCopyBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
2739 static_cast<VkBuffer>( srcBuffer ),
2740 static_cast<VkBuffer>( dstBuffer ),
2741 regionCount,
2742 reinterpret_cast<VkBufferCopy const *>( pRegions ) );
2743 }
2744
2745 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2746 // wrapper function for command vkCmdCopyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer.html
2747 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBuffer ), bool>::type>
2748 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer( Buffer srcBuffer, Buffer dstBuffer, ArrayProxy<BufferCopy const> const & regions, Dispatch const & d )
2749 const VULKAN_HPP_NOEXCEPT
2750 {
2751 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2752 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2753 VULKAN_HPP_ASSERT( d.vkCmdCopyBuffer && "Function <vkCmdCopyBuffer> requires <VK_VERSION_1_0>" );
2754 # endif
2755
2756 d.vkCmdCopyBuffer( m_commandBuffer,
2757 static_cast<VkBuffer>( srcBuffer ),
2758 static_cast<VkBuffer>( dstBuffer ),
2759 regions.size(),
2760 reinterpret_cast<VkBufferCopy const *>( regions.data() ) );
2761 }
2762 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2763
2764 // wrapper function for command vkCmdCopyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage.html
2765 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImage ), bool>::type>
2766 VULKAN_HPP_INLINE void CommandBuffer::copyImage( Image srcImage,
2767 ImageLayout srcImageLayout,
2768 Image dstImage,
2769 ImageLayout dstImageLayout,
2770 uint32_t regionCount,
2771 ImageCopy const * pRegions,
2772 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2773 {
2774 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2775 d.vkCmdCopyImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
2776 static_cast<VkImage>( srcImage ),
2777 static_cast<VkImageLayout>( srcImageLayout ),
2778 static_cast<VkImage>( dstImage ),
2779 static_cast<VkImageLayout>( dstImageLayout ),
2780 regionCount,
2781 reinterpret_cast<VkImageCopy const *>( pRegions ) );
2782 }
2783
2784 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2785 // wrapper function for command vkCmdCopyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage.html
2786 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImage ), bool>::type>
2787 VULKAN_HPP_INLINE void CommandBuffer::copyImage(
2788 Image srcImage, ImageLayout srcImageLayout, Image dstImage, ImageLayout dstImageLayout, ArrayProxy<ImageCopy const> const & regions, Dispatch const & d )
2789 const VULKAN_HPP_NOEXCEPT
2790 {
2791 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2792 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2793 VULKAN_HPP_ASSERT( d.vkCmdCopyImage && "Function <vkCmdCopyImage> requires <VK_VERSION_1_0>" );
2794 # endif
2795
2796 d.vkCmdCopyImage( m_commandBuffer,
2797 static_cast<VkImage>( srcImage ),
2798 static_cast<VkImageLayout>( srcImageLayout ),
2799 static_cast<VkImage>( dstImage ),
2800 static_cast<VkImageLayout>( dstImageLayout ),
2801 regions.size(),
2802 reinterpret_cast<VkImageCopy const *>( regions.data() ) );
2803 }
2804 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2805
2806 // wrapper function for command vkCmdCopyBufferToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage.html
2807 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBufferToImage ), bool>::type>
2808 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage(
2809 Buffer srcBuffer, Image dstImage, ImageLayout dstImageLayout, uint32_t regionCount, BufferImageCopy const * pRegions, Dispatch const & d )
2810 const VULKAN_HPP_NOEXCEPT
2811 {
2812 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2813 d.vkCmdCopyBufferToImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
2814 static_cast<VkBuffer>( srcBuffer ),
2815 static_cast<VkImage>( dstImage ),
2816 static_cast<VkImageLayout>( dstImageLayout ),
2817 regionCount,
2818 reinterpret_cast<VkBufferImageCopy const *>( pRegions ) );
2819 }
2820
2821 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2822 // wrapper function for command vkCmdCopyBufferToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage.html
2823 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBufferToImage ), bool>::type>
2824 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage(
2825 Buffer srcBuffer, Image dstImage, ImageLayout dstImageLayout, ArrayProxy<BufferImageCopy const> const & regions, Dispatch const & d )
2826 const VULKAN_HPP_NOEXCEPT
2827 {
2828 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2829 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2830 VULKAN_HPP_ASSERT( d.vkCmdCopyBufferToImage && "Function <vkCmdCopyBufferToImage> requires <VK_VERSION_1_0>" );
2831 # endif
2832
2833 d.vkCmdCopyBufferToImage( m_commandBuffer,
2834 static_cast<VkBuffer>( srcBuffer ),
2835 static_cast<VkImage>( dstImage ),
2836 static_cast<VkImageLayout>( dstImageLayout ),
2837 regions.size(),
2838 reinterpret_cast<VkBufferImageCopy const *>( regions.data() ) );
2839 }
2840 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2841
2842 // wrapper function for command vkCmdCopyImageToBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer.html
2843 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToBuffer ), bool>::type>
2844 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer(
2845 Image srcImage, ImageLayout srcImageLayout, Buffer dstBuffer, uint32_t regionCount, BufferImageCopy const * pRegions, Dispatch const & d )
2846 const VULKAN_HPP_NOEXCEPT
2847 {
2848 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2849 d.vkCmdCopyImageToBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
2850 static_cast<VkImage>( srcImage ),
2851 static_cast<VkImageLayout>( srcImageLayout ),
2852 static_cast<VkBuffer>( dstBuffer ),
2853 regionCount,
2854 reinterpret_cast<VkBufferImageCopy const *>( pRegions ) );
2855 }
2856
2857 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2858 // wrapper function for command vkCmdCopyImageToBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer.html
2859 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToBuffer ), bool>::type>
2860 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer(
2861 Image srcImage, ImageLayout srcImageLayout, Buffer dstBuffer, ArrayProxy<BufferImageCopy const> const & regions, Dispatch const & d )
2862 const VULKAN_HPP_NOEXCEPT
2863 {
2864 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2865 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2866 VULKAN_HPP_ASSERT( d.vkCmdCopyImageToBuffer && "Function <vkCmdCopyImageToBuffer> requires <VK_VERSION_1_0>" );
2867 # endif
2868
2869 d.vkCmdCopyImageToBuffer( m_commandBuffer,
2870 static_cast<VkImage>( srcImage ),
2871 static_cast<VkImageLayout>( srcImageLayout ),
2872 static_cast<VkBuffer>( dstBuffer ),
2873 regions.size(),
2874 reinterpret_cast<VkBufferImageCopy const *>( regions.data() ) );
2875 }
2876 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2877
2878 // wrapper function for command vkCmdUpdateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateBuffer.html
2879 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdUpdateBuffer ), bool>::type>
2880 VULKAN_HPP_INLINE void CommandBuffer::updateBuffer( Buffer dstBuffer, DeviceSize dstOffset, DeviceSize dataSize, void const * pData, Dispatch const & d )
2881 const VULKAN_HPP_NOEXCEPT
2882 {
2883 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2884 d.vkCmdUpdateBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
2885 static_cast<VkBuffer>( dstBuffer ),
2886 static_cast<VkDeviceSize>( dstOffset ),
2887 static_cast<VkDeviceSize>( dataSize ),
2888 pData );
2889 }
2890
2891 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2892 // wrapper function for command vkCmdUpdateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateBuffer.html
2893 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdUpdateBuffer ), bool>::type>
2894 VULKAN_HPP_INLINE void CommandBuffer::updateBuffer( Buffer dstBuffer, DeviceSize dstOffset, ArrayProxy<DataType const> const & data, Dispatch const & d )
2895 const VULKAN_HPP_NOEXCEPT
2896 {
2897 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2898 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2899 VULKAN_HPP_ASSERT( d.vkCmdUpdateBuffer && "Function <vkCmdUpdateBuffer> requires <VK_VERSION_1_0>" );
2900 # endif
2901
2902 d.vkCmdUpdateBuffer( m_commandBuffer,
2903 static_cast<VkBuffer>( dstBuffer ),
2904 static_cast<VkDeviceSize>( dstOffset ),
2905 data.size() * sizeof( DataType ),
2906 reinterpret_cast<void const *>( data.data() ) );
2907 }
2908 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2909
2910 // wrapper function for command vkCmdFillBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdFillBuffer.html
2911 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdFillBuffer ), bool>::type>
2912 VULKAN_HPP_INLINE void CommandBuffer::fillBuffer( Buffer dstBuffer, DeviceSize dstOffset, DeviceSize size, uint32_t data, Dispatch const & d )
2913 const VULKAN_HPP_NOEXCEPT
2914 {
2915 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2916 d.vkCmdFillBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
2917 static_cast<VkBuffer>( dstBuffer ),
2918 static_cast<VkDeviceSize>( dstOffset ),
2919 static_cast<VkDeviceSize>( size ),
2920 data );
2921 }
2922
2923 // wrapper function for command vkCmdPipelineBarrier, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier.html
2924 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPipelineBarrier ), bool>::type>
2925 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier( PipelineStageFlags srcStageMask,
2926 PipelineStageFlags dstStageMask,
2927 DependencyFlags dependencyFlags,
2928 uint32_t memoryBarrierCount,
2929 MemoryBarrier const * pMemoryBarriers,
2930 uint32_t bufferMemoryBarrierCount,
2931 BufferMemoryBarrier const * pBufferMemoryBarriers,
2932 uint32_t imageMemoryBarrierCount,
2933 ImageMemoryBarrier const * pImageMemoryBarriers,
2934 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2935 {
2936 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2937 d.vkCmdPipelineBarrier( static_cast<VkCommandBuffer>( m_commandBuffer ),
2938 static_cast<VkPipelineStageFlags>( srcStageMask ),
2939 static_cast<VkPipelineStageFlags>( dstStageMask ),
2940 static_cast<VkDependencyFlags>( dependencyFlags ),
2941 memoryBarrierCount,
2942 reinterpret_cast<VkMemoryBarrier const *>( pMemoryBarriers ),
2943 bufferMemoryBarrierCount,
2944 reinterpret_cast<VkBufferMemoryBarrier const *>( pBufferMemoryBarriers ),
2945 imageMemoryBarrierCount,
2946 reinterpret_cast<VkImageMemoryBarrier const *>( pImageMemoryBarriers ) );
2947 }
2948
2949 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2950 // wrapper function for command vkCmdPipelineBarrier, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier.html
2951 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPipelineBarrier ), bool>::type>
2952 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier( PipelineStageFlags srcStageMask,
2953 PipelineStageFlags dstStageMask,
2954 DependencyFlags dependencyFlags,
2955 ArrayProxy<MemoryBarrier const> const & memoryBarriers,
2956 ArrayProxy<BufferMemoryBarrier const> const & bufferMemoryBarriers,
2957 ArrayProxy<ImageMemoryBarrier const> const & imageMemoryBarriers,
2958 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2959 {
2960 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2961 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2962 VULKAN_HPP_ASSERT( d.vkCmdPipelineBarrier && "Function <vkCmdPipelineBarrier> requires <VK_VERSION_1_0>" );
2963 # endif
2964
2965 d.vkCmdPipelineBarrier( m_commandBuffer,
2966 static_cast<VkPipelineStageFlags>( srcStageMask ),
2967 static_cast<VkPipelineStageFlags>( dstStageMask ),
2968 static_cast<VkDependencyFlags>( dependencyFlags ),
2969 memoryBarriers.size(),
2970 reinterpret_cast<VkMemoryBarrier const *>( memoryBarriers.data() ),
2971 bufferMemoryBarriers.size(),
2972 reinterpret_cast<VkBufferMemoryBarrier const *>( bufferMemoryBarriers.data() ),
2973 imageMemoryBarriers.size(),
2974 reinterpret_cast<VkImageMemoryBarrier const *>( imageMemoryBarriers.data() ) );
2975 }
2976 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2977
2978 // wrapper function for command vkCmdBeginQuery, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginQuery.html
2979 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginQuery ), bool>::type>
2980 VULKAN_HPP_INLINE void CommandBuffer::beginQuery( QueryPool queryPool, uint32_t query, QueryControlFlags flags, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2981 {
2982 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2983 d.vkCmdBeginQuery(
2984 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), query, static_cast<VkQueryControlFlags>( flags ) );
2985 }
2986
2987 // wrapper function for command vkCmdEndQuery, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndQuery.html
2988 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndQuery ), bool>::type>
2989 VULKAN_HPP_INLINE void CommandBuffer::endQuery( QueryPool queryPool, uint32_t query, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2990 {
2991 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2992 d.vkCmdEndQuery( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), query );
2993 }
2994
2995 // wrapper function for command vkCmdResetQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetQueryPool.html
2996 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResetQueryPool ), bool>::type>
2997 VULKAN_HPP_INLINE void CommandBuffer::resetQueryPool( QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, Dispatch const & d )
2998 const VULKAN_HPP_NOEXCEPT
2999 {
3000 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3001 d.vkCmdResetQueryPool( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), firstQuery, queryCount );
3002 }
3003
3004 // wrapper function for command vkCmdWriteTimestamp, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteTimestamp.html
3005 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteTimestamp ), bool>::type>
3006 VULKAN_HPP_INLINE void CommandBuffer::writeTimestamp( PipelineStageFlagBits pipelineStage, QueryPool queryPool, uint32_t query, Dispatch const & d )
3007 const VULKAN_HPP_NOEXCEPT
3008 {
3009 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3010 d.vkCmdWriteTimestamp(
3011 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineStageFlagBits>( pipelineStage ), static_cast<VkQueryPool>( queryPool ), query );
3012 }
3013
3014 // wrapper function for command vkCmdCopyQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyQueryPoolResults.html
3015 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyQueryPoolResults ), bool>::type>
3016 VULKAN_HPP_INLINE void CommandBuffer::copyQueryPoolResults( QueryPool queryPool,
3017 uint32_t firstQuery,
3018 uint32_t queryCount,
3019 Buffer dstBuffer,
3020 DeviceSize dstOffset,
3021 DeviceSize stride,
3022 QueryResultFlags flags,
3023 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3024 {
3025 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3026 d.vkCmdCopyQueryPoolResults( static_cast<VkCommandBuffer>( m_commandBuffer ),
3027 static_cast<VkQueryPool>( queryPool ),
3028 firstQuery,
3029 queryCount,
3030 static_cast<VkBuffer>( dstBuffer ),
3031 static_cast<VkDeviceSize>( dstOffset ),
3032 static_cast<VkDeviceSize>( stride ),
3033 static_cast<VkQueryResultFlags>( flags ) );
3034 }
3035
3036 // wrapper function for command vkCmdExecuteCommands, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteCommands.html
3037 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdExecuteCommands ), bool>::type>
3038 VULKAN_HPP_INLINE void CommandBuffer::executeCommands( uint32_t commandBufferCount, CommandBuffer const * pCommandBuffers, Dispatch const & d )
3039 const VULKAN_HPP_NOEXCEPT
3040 {
3041 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3042 d.vkCmdExecuteCommands( static_cast<VkCommandBuffer>( m_commandBuffer ), commandBufferCount, reinterpret_cast<VkCommandBuffer const *>( pCommandBuffers ) );
3043 }
3044
3045 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3046 // wrapper function for command vkCmdExecuteCommands, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteCommands.html
3047 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdExecuteCommands ), bool>::type>
3048 VULKAN_HPP_INLINE void CommandBuffer::executeCommands( ArrayProxy<CommandBuffer const> const & commandBuffers, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3049 {
3050 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3051 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3052 VULKAN_HPP_ASSERT( d.vkCmdExecuteCommands && "Function <vkCmdExecuteCommands> requires <VK_VERSION_1_0>" );
3053 # endif
3054
3055 d.vkCmdExecuteCommands( m_commandBuffer, commandBuffers.size(), reinterpret_cast<VkCommandBuffer const *>( commandBuffers.data() ) );
3056 }
3057 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3058
3059 // wrapper function for command vkCreateEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateEvent.html
3060 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateEvent ), bool>::type>
3061 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createEvent(
3062 EventCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, Event * pEvent, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3063 {
3064 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3065 return static_cast<Result>( d.vkCreateEvent( static_cast<VkDevice>( m_device ),
3066 reinterpret_cast<VkEventCreateInfo const *>( pCreateInfo ),
3067 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
3068 reinterpret_cast<VkEvent *>( pEvent ) ) );
3069 }
3070
3071 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3072 // wrapper function for command vkCreateEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateEvent.html
3073 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateEvent ), bool>::type>
3074 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Event>::type Device::createEvent(
3075 EventCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
3076 {
3077 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3078 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3079 VULKAN_HPP_ASSERT( d.vkCreateEvent && "Function <vkCreateEvent> requires <VK_VERSION_1_0>" );
3080 # endif
3081
3082 Event event;
3083 Result result = static_cast<Result>( d.vkCreateEvent( m_device,
3084 reinterpret_cast<VkEventCreateInfo const *>( &createInfo ),
3085 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3086 reinterpret_cast<VkEvent *>( &event ) ) );
3087 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createEvent" );
3088
3089 return detail::createResultValueType( result, std::move( event ) );
3090 }
3091
3092 # ifndef VULKAN_HPP_NO_SMART_HANDLE
3093 // wrapper function for command vkCreateEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateEvent.html
3094 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateEvent ), bool>::type>
3095 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Event, Dispatch>>::type Device::createEventUnique(
3096 EventCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
3097 {
3098 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3099 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3100 VULKAN_HPP_ASSERT( d.vkCreateEvent && "Function <vkCreateEvent> requires <VK_VERSION_1_0>" );
3101 # endif
3102
3103 Event event;
3104 Result result = static_cast<Result>( d.vkCreateEvent( m_device,
3105 reinterpret_cast<VkEventCreateInfo const *>( &createInfo ),
3106 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3107 reinterpret_cast<VkEvent *>( &event ) ) );
3108 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createEventUnique" );
3109
3110 return detail::createResultValueType( result, UniqueHandle<Event, Dispatch>( event, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
3111 }
3112 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
3113 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3114
3115 // wrapper function for command vkDestroyEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyEvent.html
3116 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyEvent ), bool>::type>
3117 VULKAN_HPP_INLINE void Device::destroyEvent( Event event, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3118 {
3119 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3120 d.vkDestroyEvent( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( event ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
3121 }
3122
3123 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3124 // wrapper function for command vkDestroyEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyEvent.html
3125 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyEvent ), bool>::type>
3126 VULKAN_HPP_INLINE void Device::destroyEvent( Event event, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3127 {
3128 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3129 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3130 VULKAN_HPP_ASSERT( d.vkDestroyEvent && "Function <vkDestroyEvent> requires <VK_VERSION_1_0>" );
3131 # endif
3132
3133 d.vkDestroyEvent( m_device, static_cast<VkEvent>( event ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
3134 }
3135 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3136
3137 // wrapper function for command vkDestroyEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyEvent.html
3138 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyEvent ), bool>::type>
3139 VULKAN_HPP_INLINE void Device::destroy( Event event, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3140 {
3141 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3142 d.vkDestroyEvent( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( event ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
3143 }
3144
3145 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3146 // wrapper function for command vkDestroyEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyEvent.html
3147 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyEvent ), bool>::type>
3148 VULKAN_HPP_INLINE void Device::destroy( Event event, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3149 {
3150 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3151 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3152 VULKAN_HPP_ASSERT( d.vkDestroyEvent && "Function <vkDestroyEvent> requires <VK_VERSION_1_0>" );
3153 # endif
3154
3155 d.vkDestroyEvent( m_device, static_cast<VkEvent>( event ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
3156 }
3157 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3158
3159 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
3160 // wrapper function for command vkGetEventStatus, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEventStatus.html
3161 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetEventStatus ), bool>::type>
3162 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getEventStatus( Event event, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3163 {
3164 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3165 return static_cast<Result>( d.vkGetEventStatus( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( event ) ) );
3166 }
3167 #else
3168 // wrapper function for command vkGetEventStatus, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEventStatus.html
3169 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetEventStatus ), bool>::type>
3170 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getEventStatus( Event event, Dispatch const & d ) const
3171 {
3172 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3173 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3174 VULKAN_HPP_ASSERT( d.vkGetEventStatus && "Function <vkGetEventStatus> requires <VK_VERSION_1_0>" );
3175 # endif
3176
3177 Result result = static_cast<Result>( d.vkGetEventStatus( m_device, static_cast<VkEvent>( event ) ) );
3178 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEventStatus", { Result::eEventSet, Result::eEventReset } );
3179
3180 return static_cast<Result>( result );
3181 }
3182 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
3183
3184 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
3185 // wrapper function for command vkSetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetEvent.html
3186 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetEvent ), bool>::type>
3187 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setEvent( Event event, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3188 {
3189 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3190 return static_cast<Result>( d.vkSetEvent( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( event ) ) );
3191 }
3192 #else
3193 // wrapper function for command vkSetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetEvent.html
3194 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetEvent ), bool>::type>
3195 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setEvent( Event event, Dispatch const & d ) const
3196 {
3197 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3198 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3199 VULKAN_HPP_ASSERT( d.vkSetEvent && "Function <vkSetEvent> requires <VK_VERSION_1_0>" );
3200 # endif
3201
3202 Result result = static_cast<Result>( d.vkSetEvent( m_device, static_cast<VkEvent>( event ) ) );
3203 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setEvent" );
3204
3205 return detail::createResultValueType( result );
3206 }
3207 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
3208
3209 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
3210 // wrapper function for command vkResetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetEvent.html
3211 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetEvent ), bool>::type>
3212 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::resetEvent( Event event, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3213 {
3214 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3215 return static_cast<Result>( d.vkResetEvent( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( event ) ) );
3216 }
3217 #else
3218 // wrapper function for command vkResetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetEvent.html
3219 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetEvent ), bool>::type>
3220 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::resetEvent( Event event, Dispatch const & d ) const
3221 {
3222 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3223 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3224 VULKAN_HPP_ASSERT( d.vkResetEvent && "Function <vkResetEvent> requires <VK_VERSION_1_0>" );
3225 # endif
3226
3227 Result result = static_cast<Result>( d.vkResetEvent( m_device, static_cast<VkEvent>( event ) ) );
3228 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetEvent" );
3229
3230 return detail::createResultValueType( result );
3231 }
3232 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
3233
3234 // wrapper function for command vkCreateBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferView.html
3235 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBufferView ), bool>::type>
3236 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createBufferView(
3237 BufferViewCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, BufferView * pView, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3238 {
3239 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3240 return static_cast<Result>( d.vkCreateBufferView( static_cast<VkDevice>( m_device ),
3241 reinterpret_cast<VkBufferViewCreateInfo const *>( pCreateInfo ),
3242 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
3243 reinterpret_cast<VkBufferView *>( pView ) ) );
3244 }
3245
3246 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3247 // wrapper function for command vkCreateBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferView.html
3248 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBufferView ), bool>::type>
3249 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<BufferView>::type Device::createBufferView(
3250 BufferViewCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
3251 {
3252 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3253 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3254 VULKAN_HPP_ASSERT( d.vkCreateBufferView && "Function <vkCreateBufferView> requires <VK_VERSION_1_0>" );
3255 # endif
3256
3257 BufferView view;
3258 Result result = static_cast<Result>( d.vkCreateBufferView( m_device,
3259 reinterpret_cast<VkBufferViewCreateInfo const *>( &createInfo ),
3260 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3261 reinterpret_cast<VkBufferView *>( &view ) ) );
3262 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferView" );
3263
3264 return detail::createResultValueType( result, std::move( view ) );
3265 }
3266
3267 # ifndef VULKAN_HPP_NO_SMART_HANDLE
3268 // wrapper function for command vkCreateBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferView.html
3269 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBufferView ), bool>::type>
3270 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<BufferView, Dispatch>>::type Device::createBufferViewUnique(
3271 BufferViewCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
3272 {
3273 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3274 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3275 VULKAN_HPP_ASSERT( d.vkCreateBufferView && "Function <vkCreateBufferView> requires <VK_VERSION_1_0>" );
3276 # endif
3277
3278 BufferView view;
3279 Result result = static_cast<Result>( d.vkCreateBufferView( m_device,
3280 reinterpret_cast<VkBufferViewCreateInfo const *>( &createInfo ),
3281 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3282 reinterpret_cast<VkBufferView *>( &view ) ) );
3283 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferViewUnique" );
3284
3285 return detail::createResultValueType( result, UniqueHandle<BufferView, Dispatch>( view, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
3286 }
3287 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
3288 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3289
3290 // wrapper function for command vkDestroyBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferView.html
3291 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferView ), bool>::type>
3292 VULKAN_HPP_INLINE void Device::destroyBufferView( BufferView bufferView, AllocationCallbacks const * pAllocator, Dispatch const & d )
3293 const VULKAN_HPP_NOEXCEPT
3294 {
3295 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3296 d.vkDestroyBufferView(
3297 static_cast<VkDevice>( m_device ), static_cast<VkBufferView>( bufferView ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
3298 }
3299
3300 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3301 // wrapper function for command vkDestroyBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferView.html
3302 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferView ), bool>::type>
3303 VULKAN_HPP_INLINE void Device::destroyBufferView( BufferView bufferView, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
3304 const VULKAN_HPP_NOEXCEPT
3305 {
3306 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3307 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3308 VULKAN_HPP_ASSERT( d.vkDestroyBufferView && "Function <vkDestroyBufferView> requires <VK_VERSION_1_0>" );
3309 # endif
3310
3311 d.vkDestroyBufferView( m_device, static_cast<VkBufferView>( bufferView ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
3312 }
3313 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3314
3315 // wrapper function for command vkDestroyBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferView.html
3316 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferView ), bool>::type>
3317 VULKAN_HPP_INLINE void Device::destroy( BufferView bufferView, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3318 {
3319 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3320 d.vkDestroyBufferView(
3321 static_cast<VkDevice>( m_device ), static_cast<VkBufferView>( bufferView ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
3322 }
3323
3324 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3325 // wrapper function for command vkDestroyBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferView.html
3326 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferView ), bool>::type>
3327 VULKAN_HPP_INLINE void Device::destroy( BufferView bufferView, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3328 {
3329 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3330 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3331 VULKAN_HPP_ASSERT( d.vkDestroyBufferView && "Function <vkDestroyBufferView> requires <VK_VERSION_1_0>" );
3332 # endif
3333
3334 d.vkDestroyBufferView( m_device, static_cast<VkBufferView>( bufferView ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
3335 }
3336 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3337
3338 // wrapper function for command vkCreateShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderModule.html
3339 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShaderModule ), bool>::type>
3340 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createShaderModule(
3341 ShaderModuleCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, ShaderModule * pShaderModule, Dispatch const & d )
3342 const VULKAN_HPP_NOEXCEPT
3343 {
3344 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3345 return static_cast<Result>( d.vkCreateShaderModule( static_cast<VkDevice>( m_device ),
3346 reinterpret_cast<VkShaderModuleCreateInfo const *>( pCreateInfo ),
3347 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
3348 reinterpret_cast<VkShaderModule *>( pShaderModule ) ) );
3349 }
3350
3351 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3352 // wrapper function for command vkCreateShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderModule.html
3353 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShaderModule ), bool>::type>
3354 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ShaderModule>::type Device::createShaderModule(
3355 ShaderModuleCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
3356 {
3357 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3358 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3359 VULKAN_HPP_ASSERT( d.vkCreateShaderModule && "Function <vkCreateShaderModule> requires <VK_VERSION_1_0>" );
3360 # endif
3361
3362 ShaderModule shaderModule;
3363 Result result = static_cast<Result>( d.vkCreateShaderModule( m_device,
3364 reinterpret_cast<VkShaderModuleCreateInfo const *>( &createInfo ),
3365 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3366 reinterpret_cast<VkShaderModule *>( &shaderModule ) ) );
3367 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderModule" );
3368
3369 return detail::createResultValueType( result, std::move( shaderModule ) );
3370 }
3371
3372 # ifndef VULKAN_HPP_NO_SMART_HANDLE
3373 // wrapper function for command vkCreateShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderModule.html
3374 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShaderModule ), bool>::type>
3375 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<ShaderModule, Dispatch>>::type Device::createShaderModuleUnique(
3376 ShaderModuleCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
3377 {
3378 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3379 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3380 VULKAN_HPP_ASSERT( d.vkCreateShaderModule && "Function <vkCreateShaderModule> requires <VK_VERSION_1_0>" );
3381 # endif
3382
3383 ShaderModule shaderModule;
3384 Result result = static_cast<Result>( d.vkCreateShaderModule( m_device,
3385 reinterpret_cast<VkShaderModuleCreateInfo const *>( &createInfo ),
3386 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3387 reinterpret_cast<VkShaderModule *>( &shaderModule ) ) );
3388 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderModuleUnique" );
3389
3390 return detail::createResultValueType(
3391 result, UniqueHandle<ShaderModule, Dispatch>( shaderModule, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
3392 }
3393 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
3394 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3395
3396 // wrapper function for command vkDestroyShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderModule.html
3397 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderModule ), bool>::type>
3398 VULKAN_HPP_INLINE void Device::destroyShaderModule( ShaderModule shaderModule, AllocationCallbacks const * pAllocator, Dispatch const & d )
3399 const VULKAN_HPP_NOEXCEPT
3400 {
3401 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3402 d.vkDestroyShaderModule(
3403 static_cast<VkDevice>( m_device ), static_cast<VkShaderModule>( shaderModule ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
3404 }
3405
3406 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3407 // wrapper function for command vkDestroyShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderModule.html
3408 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderModule ), bool>::type>
3409 VULKAN_HPP_INLINE void Device::destroyShaderModule( ShaderModule shaderModule, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
3410 const VULKAN_HPP_NOEXCEPT
3411 {
3412 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3413 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3414 VULKAN_HPP_ASSERT( d.vkDestroyShaderModule && "Function <vkDestroyShaderModule> requires <VK_VERSION_1_0>" );
3415 # endif
3416
3417 d.vkDestroyShaderModule( m_device, static_cast<VkShaderModule>( shaderModule ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
3418 }
3419 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3420
3421 // wrapper function for command vkDestroyShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderModule.html
3422 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderModule ), bool>::type>
3423 VULKAN_HPP_INLINE void Device::destroy( ShaderModule shaderModule, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3424 {
3425 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3426 d.vkDestroyShaderModule(
3427 static_cast<VkDevice>( m_device ), static_cast<VkShaderModule>( shaderModule ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
3428 }
3429
3430 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3431 // wrapper function for command vkDestroyShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderModule.html
3432 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderModule ), bool>::type>
3433 VULKAN_HPP_INLINE void Device::destroy( ShaderModule shaderModule, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
3434 const VULKAN_HPP_NOEXCEPT
3435 {
3436 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3437 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3438 VULKAN_HPP_ASSERT( d.vkDestroyShaderModule && "Function <vkDestroyShaderModule> requires <VK_VERSION_1_0>" );
3439 # endif
3440
3441 d.vkDestroyShaderModule( m_device, static_cast<VkShaderModule>( shaderModule ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
3442 }
3443 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3444
3445 // wrapper function for command vkCreatePipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineCache.html
3446 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineCache ), bool>::type>
3447 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createPipelineCache(
3448 PipelineCacheCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, PipelineCache * pPipelineCache, Dispatch const & d )
3449 const VULKAN_HPP_NOEXCEPT
3450 {
3451 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3452 return static_cast<Result>( d.vkCreatePipelineCache( static_cast<VkDevice>( m_device ),
3453 reinterpret_cast<VkPipelineCacheCreateInfo const *>( pCreateInfo ),
3454 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
3455 reinterpret_cast<VkPipelineCache *>( pPipelineCache ) ) );
3456 }
3457
3458 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3459 // wrapper function for command vkCreatePipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineCache.html
3460 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineCache ), bool>::type>
3461 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PipelineCache>::type Device::createPipelineCache(
3462 PipelineCacheCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
3463 {
3464 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3465 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3466 VULKAN_HPP_ASSERT( d.vkCreatePipelineCache && "Function <vkCreatePipelineCache> requires <VK_VERSION_1_0>" );
3467 # endif
3468
3469 PipelineCache pipelineCache;
3470 Result result = static_cast<Result>( d.vkCreatePipelineCache( m_device,
3471 reinterpret_cast<VkPipelineCacheCreateInfo const *>( &createInfo ),
3472 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3473 reinterpret_cast<VkPipelineCache *>( &pipelineCache ) ) );
3474 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineCache" );
3475
3476 return detail::createResultValueType( result, std::move( pipelineCache ) );
3477 }
3478
3479 # ifndef VULKAN_HPP_NO_SMART_HANDLE
3480 // wrapper function for command vkCreatePipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineCache.html
3481 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineCache ), bool>::type>
3482 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<PipelineCache, Dispatch>>::type Device::createPipelineCacheUnique(
3483 PipelineCacheCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
3484 {
3485 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3486 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3487 VULKAN_HPP_ASSERT( d.vkCreatePipelineCache && "Function <vkCreatePipelineCache> requires <VK_VERSION_1_0>" );
3488 # endif
3489
3490 PipelineCache pipelineCache;
3491 Result result = static_cast<Result>( d.vkCreatePipelineCache( m_device,
3492 reinterpret_cast<VkPipelineCacheCreateInfo const *>( &createInfo ),
3493 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3494 reinterpret_cast<VkPipelineCache *>( &pipelineCache ) ) );
3495 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineCacheUnique" );
3496
3497 return detail::createResultValueType(
3498 result, UniqueHandle<PipelineCache, Dispatch>( pipelineCache, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
3499 }
3500 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
3501 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3502
3503 // wrapper function for command vkDestroyPipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineCache.html
3504 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineCache ), bool>::type>
3505 VULKAN_HPP_INLINE void Device::destroyPipelineCache( PipelineCache pipelineCache, AllocationCallbacks const * pAllocator, Dispatch const & d )
3506 const VULKAN_HPP_NOEXCEPT
3507 {
3508 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3509 d.vkDestroyPipelineCache(
3510 static_cast<VkDevice>( m_device ), static_cast<VkPipelineCache>( pipelineCache ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
3511 }
3512
3513 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3514 // wrapper function for command vkDestroyPipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineCache.html
3515 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineCache ), bool>::type>
3516 VULKAN_HPP_INLINE void Device::destroyPipelineCache( PipelineCache pipelineCache, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
3517 const VULKAN_HPP_NOEXCEPT
3518 {
3519 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3520 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3521 VULKAN_HPP_ASSERT( d.vkDestroyPipelineCache && "Function <vkDestroyPipelineCache> requires <VK_VERSION_1_0>" );
3522 # endif
3523
3524 d.vkDestroyPipelineCache( m_device, static_cast<VkPipelineCache>( pipelineCache ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
3525 }
3526 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3527
3528 // wrapper function for command vkDestroyPipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineCache.html
3529 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineCache ), bool>::type>
3530 VULKAN_HPP_INLINE void Device::destroy( PipelineCache pipelineCache, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3531 {
3532 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3533 d.vkDestroyPipelineCache(
3534 static_cast<VkDevice>( m_device ), static_cast<VkPipelineCache>( pipelineCache ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
3535 }
3536
3537 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3538 // wrapper function for command vkDestroyPipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineCache.html
3539 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineCache ), bool>::type>
3540 VULKAN_HPP_INLINE void Device::destroy( PipelineCache pipelineCache, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
3541 const VULKAN_HPP_NOEXCEPT
3542 {
3543 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3544 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3545 VULKAN_HPP_ASSERT( d.vkDestroyPipelineCache && "Function <vkDestroyPipelineCache> requires <VK_VERSION_1_0>" );
3546 # endif
3547
3548 d.vkDestroyPipelineCache( m_device, static_cast<VkPipelineCache>( pipelineCache ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
3549 }
3550 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3551
3552 // wrapper function for command vkGetPipelineCacheData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineCacheData.html
3553 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineCacheData ), bool>::type>
3554 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelineCacheData(
3555 PipelineCache pipelineCache, size_t * pDataSize, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3556 {
3557 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3558 return static_cast<Result>(
3559 d.vkGetPipelineCacheData( static_cast<VkDevice>( m_device ), static_cast<VkPipelineCache>( pipelineCache ), pDataSize, pData ) );
3560 }
3561
3562 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3563 // wrapper function for command vkGetPipelineCacheData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineCacheData.html
3564 template <typename Uint8_tAllocator,
3565 typename Dispatch,
3566 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
3567 typename std::enable_if<IS_DISPATCHED( vkGetPipelineCacheData ), bool>::type>
3568 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type Device::getPipelineCacheData(
3569 PipelineCache pipelineCache, Dispatch const & d ) const
3570 {
3571 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3572 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3573 VULKAN_HPP_ASSERT( d.vkGetPipelineCacheData && "Function <vkGetPipelineCacheData> requires <VK_VERSION_1_0>" );
3574 # endif
3575
3576 std::vector<uint8_t, Uint8_tAllocator> data;
3577 size_t dataSize;
3578 Result result;
3579 do
3580 {
3581 result = static_cast<Result>( d.vkGetPipelineCacheData( m_device, static_cast<VkPipelineCache>( pipelineCache ), &dataSize, nullptr ) );
3582 if ( ( result == Result::eSuccess ) && dataSize )
3583 {
3584 data.resize( dataSize );
3585 result = static_cast<Result>(
3586 d.vkGetPipelineCacheData( m_device, static_cast<VkPipelineCache>( pipelineCache ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
3587 }
3588 } while ( result == Result::eIncomplete );
3589 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineCacheData" );
3590 VULKAN_HPP_ASSERT( dataSize <= data.size() );
3591 if ( dataSize < data.size() )
3592 {
3593 data.resize( dataSize );
3594 }
3595 return detail::createResultValueType( result, std::move( data ) );
3596 }
3597
3598 // wrapper function for command vkGetPipelineCacheData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineCacheData.html
3599 template <typename Uint8_tAllocator,
3600 typename Dispatch,
3601 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
3602 typename std::enable_if<IS_DISPATCHED( vkGetPipelineCacheData ), bool>::type>
3603 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type Device::getPipelineCacheData(
3604 PipelineCache pipelineCache, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
3605 {
3606 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3607 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3608 VULKAN_HPP_ASSERT( d.vkGetPipelineCacheData && "Function <vkGetPipelineCacheData> requires <VK_VERSION_1_0>" );
3609 # endif
3610
3611 std::vector<uint8_t, Uint8_tAllocator> data( uint8_tAllocator );
3612 size_t dataSize;
3613 Result result;
3614 do
3615 {
3616 result = static_cast<Result>( d.vkGetPipelineCacheData( m_device, static_cast<VkPipelineCache>( pipelineCache ), &dataSize, nullptr ) );
3617 if ( ( result == Result::eSuccess ) && dataSize )
3618 {
3619 data.resize( dataSize );
3620 result = static_cast<Result>(
3621 d.vkGetPipelineCacheData( m_device, static_cast<VkPipelineCache>( pipelineCache ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
3622 }
3623 } while ( result == Result::eIncomplete );
3624 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineCacheData" );
3625 VULKAN_HPP_ASSERT( dataSize <= data.size() );
3626 if ( dataSize < data.size() )
3627 {
3628 data.resize( dataSize );
3629 }
3630 return detail::createResultValueType( result, std::move( data ) );
3631 }
3632 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3633
3634 // wrapper function for command vkMergePipelineCaches, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMergePipelineCaches.html
3635 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMergePipelineCaches ), bool>::type>
3636 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::mergePipelineCaches(
3637 PipelineCache dstCache, uint32_t srcCacheCount, PipelineCache const * pSrcCaches, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3638 {
3639 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3640 return static_cast<Result>( d.vkMergePipelineCaches(
3641 static_cast<VkDevice>( m_device ), static_cast<VkPipelineCache>( dstCache ), srcCacheCount, reinterpret_cast<VkPipelineCache const *>( pSrcCaches ) ) );
3642 }
3643
3644 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3645 // wrapper function for command vkMergePipelineCaches, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMergePipelineCaches.html
3646 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMergePipelineCaches ), bool>::type>
3647 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::mergePipelineCaches(
3648 PipelineCache dstCache, ArrayProxy<PipelineCache const> const & srcCaches, Dispatch const & d ) const
3649 {
3650 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3651 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3652 VULKAN_HPP_ASSERT( d.vkMergePipelineCaches && "Function <vkMergePipelineCaches> requires <VK_VERSION_1_0>" );
3653 # endif
3654
3655 Result result = static_cast<Result>( d.vkMergePipelineCaches(
3656 m_device, static_cast<VkPipelineCache>( dstCache ), srcCaches.size(), reinterpret_cast<VkPipelineCache const *>( srcCaches.data() ) ) );
3657 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mergePipelineCaches" );
3658
3659 return detail::createResultValueType( result );
3660 }
3661 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3662
3663 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3664 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3665 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createComputePipelines( PipelineCache pipelineCache,
3666 uint32_t createInfoCount,
3667 ComputePipelineCreateInfo const * pCreateInfos,
3668 AllocationCallbacks const * pAllocator,
3669 Pipeline * pPipelines,
3670 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3671 {
3672 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3673 return static_cast<Result>( d.vkCreateComputePipelines( static_cast<VkDevice>( m_device ),
3674 static_cast<VkPipelineCache>( pipelineCache ),
3675 createInfoCount,
3676 reinterpret_cast<VkComputePipelineCreateInfo const *>( pCreateInfos ),
3677 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
3678 reinterpret_cast<VkPipeline *>( pPipelines ) ) );
3679 }
3680
3681 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3682 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3683 template <typename PipelineAllocator,
3684 typename Dispatch,
3685 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
3686 typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3687 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>> Device::createComputePipelines(
3688 PipelineCache pipelineCache,
3689 ArrayProxy<ComputePipelineCreateInfo const> const & createInfos,
3690 Optional<AllocationCallbacks const> allocator,
3691 Dispatch const & d ) const
3692 {
3693 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3694 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3695 VULKAN_HPP_ASSERT( d.vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
3696 # endif
3697
3698 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size() );
3699 Result result = static_cast<Result>( d.vkCreateComputePipelines( m_device,
3700 static_cast<VkPipelineCache>( pipelineCache ),
3701 createInfos.size(),
3702 reinterpret_cast<VkComputePipelineCreateInfo const *>( createInfos.data() ),
3703 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3704 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
3705 detail::resultCheck( result,
3706 VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipelines",
3707 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
3708 m_device,
3709 pipelines,
3710 allocator.get(),
3711 d );
3712
3713 return { result, pipelines };
3714 }
3715
3716 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3717 template <typename PipelineAllocator,
3718 typename Dispatch,
3719 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
3720 typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3721 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>> Device::createComputePipelines(
3722 PipelineCache pipelineCache,
3723 ArrayProxy<ComputePipelineCreateInfo const> const & createInfos,
3724 Optional<AllocationCallbacks const> allocator,
3725 PipelineAllocator const & pipelineAllocator,
3726 Dispatch const & d ) const
3727 {
3728 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3729 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3730 VULKAN_HPP_ASSERT( d.vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
3731 # endif
3732
3733 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size(), {}, pipelineAllocator );
3734 Result result = static_cast<Result>( d.vkCreateComputePipelines( m_device,
3735 static_cast<VkPipelineCache>( pipelineCache ),
3736 createInfos.size(),
3737 reinterpret_cast<VkComputePipelineCreateInfo const *>( createInfos.data() ),
3738 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3739 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
3740 detail::resultCheck( result,
3741 VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipelines",
3742 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
3743 m_device,
3744 pipelines,
3745 allocator.get(),
3746 d );
3747
3748 return { result, pipelines };
3749 }
3750
3751 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3752 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3753 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<Pipeline> Device::createComputePipeline(
3754 PipelineCache pipelineCache, ComputePipelineCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
3755 {
3756 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3757 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3758 VULKAN_HPP_ASSERT( d.vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
3759 # endif
3760
3761 Pipeline pipeline;
3762 Result result = static_cast<Result>( d.vkCreateComputePipelines( m_device,
3763 static_cast<VkPipelineCache>( pipelineCache ),
3764 1,
3765 reinterpret_cast<VkComputePipelineCreateInfo const *>( &createInfo ),
3766 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3767 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
3768 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipeline", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
3769
3770 return { result, pipeline };
3771 }
3772
3773 # ifndef VULKAN_HPP_NO_SMART_HANDLE
3774 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3775 template <typename Dispatch,
3776 typename PipelineAllocator,
3777 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
3778 typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3779 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>> Device::createComputePipelinesUnique(
3780 PipelineCache pipelineCache,
3781 ArrayProxy<ComputePipelineCreateInfo const> const & createInfos,
3782 Optional<AllocationCallbacks const> allocator,
3783 Dispatch const & d ) const
3784 {
3785 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3786 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3787 VULKAN_HPP_ASSERT( d.vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
3788 # endif
3789
3790 std::vector<Pipeline> pipelines( createInfos.size() );
3791 Result result = static_cast<Result>( d.vkCreateComputePipelines( m_device,
3792 static_cast<VkPipelineCache>( pipelineCache ),
3793 createInfos.size(),
3794 reinterpret_cast<VkComputePipelineCreateInfo const *>( createInfos.data() ),
3795 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3796 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
3797 detail::resultCheck( result,
3798 VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipelinesUnique",
3799 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
3800 m_device,
3801 pipelines,
3802 allocator.get(),
3803 d );
3804 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines;
3805 uniquePipelines.reserve( createInfos.size() );
3806 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
3807 for ( auto const & pipeline : pipelines )
3808 {
3809 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
3810 }
3811 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
3812 }
3813
3814 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3815 template <typename Dispatch,
3816 typename PipelineAllocator,
3817 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
3818 typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3819 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>> Device::createComputePipelinesUnique(
3820 PipelineCache pipelineCache,
3821 ArrayProxy<ComputePipelineCreateInfo const> const & createInfos,
3822 Optional<AllocationCallbacks const> allocator,
3823 PipelineAllocator const & pipelineAllocator,
3824 Dispatch const & d ) const
3825 {
3826 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3827 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3828 VULKAN_HPP_ASSERT( d.vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
3829 # endif
3830
3831 std::vector<Pipeline> pipelines( createInfos.size() );
3832 Result result = static_cast<Result>( d.vkCreateComputePipelines( m_device,
3833 static_cast<VkPipelineCache>( pipelineCache ),
3834 createInfos.size(),
3835 reinterpret_cast<VkComputePipelineCreateInfo const *>( createInfos.data() ),
3836 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3837 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
3838 detail::resultCheck( result,
3839 VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipelinesUnique",
3840 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
3841 m_device,
3842 pipelines,
3843 allocator.get(),
3844 d );
3845 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines( pipelineAllocator );
3846 uniquePipelines.reserve( createInfos.size() );
3847 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
3848 for ( auto const & pipeline : pipelines )
3849 {
3850 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
3851 }
3852 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
3853 }
3854
3855 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3856 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3857 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<Pipeline, Dispatch>> Device::createComputePipelineUnique(
3858 PipelineCache pipelineCache, ComputePipelineCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
3859 {
3860 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3861 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3862 VULKAN_HPP_ASSERT( d.vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
3863 # endif
3864
3865 Pipeline pipeline;
3866 Result result = static_cast<Result>( d.vkCreateComputePipelines( m_device,
3867 static_cast<VkPipelineCache>( pipelineCache ),
3868 1,
3869 reinterpret_cast<VkComputePipelineCreateInfo const *>( &createInfo ),
3870 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3871 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
3872 detail::resultCheck(
3873 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipelineUnique", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
3874
3875 return ResultValue<UniqueHandle<Pipeline, Dispatch>>(
3876 result, UniqueHandle<Pipeline, Dispatch>( pipeline, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
3877 }
3878 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
3879 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3880
3881 // wrapper function for command vkDestroyPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipeline.html
3882 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipeline ), bool>::type>
3883 VULKAN_HPP_INLINE void Device::destroyPipeline( Pipeline pipeline, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3884 {
3885 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3886 d.vkDestroyPipeline(
3887 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
3888 }
3889
3890 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3891 // wrapper function for command vkDestroyPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipeline.html
3892 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipeline ), bool>::type>
3893 VULKAN_HPP_INLINE void Device::destroyPipeline( Pipeline pipeline, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
3894 const VULKAN_HPP_NOEXCEPT
3895 {
3896 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3897 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3898 VULKAN_HPP_ASSERT( d.vkDestroyPipeline && "Function <vkDestroyPipeline> requires <VK_VERSION_1_0>" );
3899 # endif
3900
3901 d.vkDestroyPipeline( m_device, static_cast<VkPipeline>( pipeline ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
3902 }
3903 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3904
3905 // wrapper function for command vkDestroyPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipeline.html
3906 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipeline ), bool>::type>
3907 VULKAN_HPP_INLINE void Device::destroy( Pipeline pipeline, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3908 {
3909 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3910 d.vkDestroyPipeline(
3911 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
3912 }
3913
3914 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3915 // wrapper function for command vkDestroyPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipeline.html
3916 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipeline ), bool>::type>
3917 VULKAN_HPP_INLINE void Device::destroy( Pipeline pipeline, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3918 {
3919 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3920 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3921 VULKAN_HPP_ASSERT( d.vkDestroyPipeline && "Function <vkDestroyPipeline> requires <VK_VERSION_1_0>" );
3922 # endif
3923
3924 d.vkDestroyPipeline( m_device, static_cast<VkPipeline>( pipeline ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
3925 }
3926 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3927
3928 // wrapper function for command vkCreatePipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineLayout.html
3929 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineLayout ), bool>::type>
3930 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createPipelineLayout(
3931 PipelineLayoutCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, PipelineLayout * pPipelineLayout, Dispatch const & d )
3932 const VULKAN_HPP_NOEXCEPT
3933 {
3934 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3935 return static_cast<Result>( d.vkCreatePipelineLayout( static_cast<VkDevice>( m_device ),
3936 reinterpret_cast<VkPipelineLayoutCreateInfo const *>( pCreateInfo ),
3937 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
3938 reinterpret_cast<VkPipelineLayout *>( pPipelineLayout ) ) );
3939 }
3940
3941 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3942 // wrapper function for command vkCreatePipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineLayout.html
3943 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineLayout ), bool>::type>
3944 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PipelineLayout>::type Device::createPipelineLayout(
3945 PipelineLayoutCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
3946 {
3947 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3948 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3949 VULKAN_HPP_ASSERT( d.vkCreatePipelineLayout && "Function <vkCreatePipelineLayout> requires <VK_VERSION_1_0>" );
3950 # endif
3951
3952 PipelineLayout pipelineLayout;
3953 Result result = static_cast<Result>( d.vkCreatePipelineLayout( m_device,
3954 reinterpret_cast<VkPipelineLayoutCreateInfo const *>( &createInfo ),
3955 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3956 reinterpret_cast<VkPipelineLayout *>( &pipelineLayout ) ) );
3957 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineLayout" );
3958
3959 return detail::createResultValueType( result, std::move( pipelineLayout ) );
3960 }
3961
3962 # ifndef VULKAN_HPP_NO_SMART_HANDLE
3963 // wrapper function for command vkCreatePipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineLayout.html
3964 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineLayout ), bool>::type>
3965 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<PipelineLayout, Dispatch>>::type Device::createPipelineLayoutUnique(
3966 PipelineLayoutCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
3967 {
3968 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3969 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3970 VULKAN_HPP_ASSERT( d.vkCreatePipelineLayout && "Function <vkCreatePipelineLayout> requires <VK_VERSION_1_0>" );
3971 # endif
3972
3973 PipelineLayout pipelineLayout;
3974 Result result = static_cast<Result>( d.vkCreatePipelineLayout( m_device,
3975 reinterpret_cast<VkPipelineLayoutCreateInfo const *>( &createInfo ),
3976 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
3977 reinterpret_cast<VkPipelineLayout *>( &pipelineLayout ) ) );
3978 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineLayoutUnique" );
3979
3980 return detail::createResultValueType(
3981 result, UniqueHandle<PipelineLayout, Dispatch>( pipelineLayout, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
3982 }
3983 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
3984 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3985
3986 // wrapper function for command vkDestroyPipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineLayout.html
3987 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineLayout ), bool>::type>
3988 VULKAN_HPP_INLINE void Device::destroyPipelineLayout( PipelineLayout pipelineLayout, AllocationCallbacks const * pAllocator, Dispatch const & d )
3989 const VULKAN_HPP_NOEXCEPT
3990 {
3991 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3992 d.vkDestroyPipelineLayout(
3993 static_cast<VkDevice>( m_device ), static_cast<VkPipelineLayout>( pipelineLayout ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
3994 }
3995
3996 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3997 // wrapper function for command vkDestroyPipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineLayout.html
3998 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineLayout ), bool>::type>
3999 VULKAN_HPP_INLINE void Device::destroyPipelineLayout( PipelineLayout pipelineLayout, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
4000 const VULKAN_HPP_NOEXCEPT
4001 {
4002 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4003 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4004 VULKAN_HPP_ASSERT( d.vkDestroyPipelineLayout && "Function <vkDestroyPipelineLayout> requires <VK_VERSION_1_0>" );
4005 # endif
4006
4007 d.vkDestroyPipelineLayout( m_device, static_cast<VkPipelineLayout>( pipelineLayout ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
4008 }
4009 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4010
4011 // wrapper function for command vkDestroyPipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineLayout.html
4012 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineLayout ), bool>::type>
4013 VULKAN_HPP_INLINE void Device::destroy( PipelineLayout pipelineLayout, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4014 {
4015 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4016 d.vkDestroyPipelineLayout(
4017 static_cast<VkDevice>( m_device ), static_cast<VkPipelineLayout>( pipelineLayout ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
4018 }
4019
4020 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4021 // wrapper function for command vkDestroyPipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineLayout.html
4022 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineLayout ), bool>::type>
4023 VULKAN_HPP_INLINE void Device::destroy( PipelineLayout pipelineLayout, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
4024 const VULKAN_HPP_NOEXCEPT
4025 {
4026 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4027 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4028 VULKAN_HPP_ASSERT( d.vkDestroyPipelineLayout && "Function <vkDestroyPipelineLayout> requires <VK_VERSION_1_0>" );
4029 # endif
4030
4031 d.vkDestroyPipelineLayout( m_device, static_cast<VkPipelineLayout>( pipelineLayout ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
4032 }
4033 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4034
4035 // wrapper function for command vkCreateSampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSampler.html
4036 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSampler ), bool>::type>
4037 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createSampler(
4038 SamplerCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, Sampler * pSampler, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4039 {
4040 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4041 return static_cast<Result>( d.vkCreateSampler( static_cast<VkDevice>( m_device ),
4042 reinterpret_cast<VkSamplerCreateInfo const *>( pCreateInfo ),
4043 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
4044 reinterpret_cast<VkSampler *>( pSampler ) ) );
4045 }
4046
4047 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4048 // wrapper function for command vkCreateSampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSampler.html
4049 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSampler ), bool>::type>
4050 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Sampler>::type Device::createSampler(
4051 SamplerCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
4052 {
4053 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4054 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4055 VULKAN_HPP_ASSERT( d.vkCreateSampler && "Function <vkCreateSampler> requires <VK_VERSION_1_0>" );
4056 # endif
4057
4058 Sampler sampler;
4059 Result result = static_cast<Result>( d.vkCreateSampler( m_device,
4060 reinterpret_cast<VkSamplerCreateInfo const *>( &createInfo ),
4061 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
4062 reinterpret_cast<VkSampler *>( &sampler ) ) );
4063 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSampler" );
4064
4065 return detail::createResultValueType( result, std::move( sampler ) );
4066 }
4067
4068 # ifndef VULKAN_HPP_NO_SMART_HANDLE
4069 // wrapper function for command vkCreateSampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSampler.html
4070 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSampler ), bool>::type>
4071 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Sampler, Dispatch>>::type Device::createSamplerUnique(
4072 SamplerCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
4073 {
4074 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4075 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4076 VULKAN_HPP_ASSERT( d.vkCreateSampler && "Function <vkCreateSampler> requires <VK_VERSION_1_0>" );
4077 # endif
4078
4079 Sampler sampler;
4080 Result result = static_cast<Result>( d.vkCreateSampler( m_device,
4081 reinterpret_cast<VkSamplerCreateInfo const *>( &createInfo ),
4082 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
4083 reinterpret_cast<VkSampler *>( &sampler ) ) );
4084 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerUnique" );
4085
4086 return detail::createResultValueType( result, UniqueHandle<Sampler, Dispatch>( sampler, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
4087 }
4088 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
4089 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4090
4091 // wrapper function for command vkDestroySampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySampler.html
4092 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySampler ), bool>::type>
4093 VULKAN_HPP_INLINE void Device::destroySampler( Sampler sampler, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4094 {
4095 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4096 d.vkDestroySampler( static_cast<VkDevice>( m_device ), static_cast<VkSampler>( sampler ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
4097 }
4098
4099 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4100 // wrapper function for command vkDestroySampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySampler.html
4101 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySampler ), bool>::type>
4102 VULKAN_HPP_INLINE void Device::destroySampler( Sampler sampler, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4103 {
4104 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4105 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4106 VULKAN_HPP_ASSERT( d.vkDestroySampler && "Function <vkDestroySampler> requires <VK_VERSION_1_0>" );
4107 # endif
4108
4109 d.vkDestroySampler( m_device, static_cast<VkSampler>( sampler ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
4110 }
4111 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4112
4113 // wrapper function for command vkDestroySampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySampler.html
4114 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySampler ), bool>::type>
4115 VULKAN_HPP_INLINE void Device::destroy( Sampler sampler, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4116 {
4117 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4118 d.vkDestroySampler( static_cast<VkDevice>( m_device ), static_cast<VkSampler>( sampler ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
4119 }
4120
4121 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4122 // wrapper function for command vkDestroySampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySampler.html
4123 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySampler ), bool>::type>
4124 VULKAN_HPP_INLINE void Device::destroy( Sampler sampler, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4125 {
4126 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4127 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4128 VULKAN_HPP_ASSERT( d.vkDestroySampler && "Function <vkDestroySampler> requires <VK_VERSION_1_0>" );
4129 # endif
4130
4131 d.vkDestroySampler( m_device, static_cast<VkSampler>( sampler ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
4132 }
4133 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4134
4135 // wrapper function for command vkCreateDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorSetLayout.html
4136 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorSetLayout ), bool>::type>
4137 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDescriptorSetLayout(
4138 DescriptorSetLayoutCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, DescriptorSetLayout * pSetLayout, Dispatch const & d )
4139 const VULKAN_HPP_NOEXCEPT
4140 {
4141 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4142 return static_cast<Result>( d.vkCreateDescriptorSetLayout( static_cast<VkDevice>( m_device ),
4143 reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( pCreateInfo ),
4144 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
4145 reinterpret_cast<VkDescriptorSetLayout *>( pSetLayout ) ) );
4146 }
4147
4148 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4149 // wrapper function for command vkCreateDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorSetLayout.html
4150 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorSetLayout ), bool>::type>
4151 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DescriptorSetLayout>::type Device::createDescriptorSetLayout(
4152 DescriptorSetLayoutCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
4153 {
4154 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4155 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4156 VULKAN_HPP_ASSERT( d.vkCreateDescriptorSetLayout && "Function <vkCreateDescriptorSetLayout> requires <VK_VERSION_1_0>" );
4157 # endif
4158
4159 DescriptorSetLayout setLayout;
4160 Result result = static_cast<Result>( d.vkCreateDescriptorSetLayout( m_device,
4161 reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( &createInfo ),
4162 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
4163 reinterpret_cast<VkDescriptorSetLayout *>( &setLayout ) ) );
4164 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorSetLayout" );
4165
4166 return detail::createResultValueType( result, std::move( setLayout ) );
4167 }
4168
4169 # ifndef VULKAN_HPP_NO_SMART_HANDLE
4170 // wrapper function for command vkCreateDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorSetLayout.html
4171 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorSetLayout ), bool>::type>
4172 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DescriptorSetLayout, Dispatch>>::type Device::createDescriptorSetLayoutUnique(
4173 DescriptorSetLayoutCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
4174 {
4175 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4176 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4177 VULKAN_HPP_ASSERT( d.vkCreateDescriptorSetLayout && "Function <vkCreateDescriptorSetLayout> requires <VK_VERSION_1_0>" );
4178 # endif
4179
4180 DescriptorSetLayout setLayout;
4181 Result result = static_cast<Result>( d.vkCreateDescriptorSetLayout( m_device,
4182 reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( &createInfo ),
4183 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
4184 reinterpret_cast<VkDescriptorSetLayout *>( &setLayout ) ) );
4185 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorSetLayoutUnique" );
4186
4187 return detail::createResultValueType(
4188 result, UniqueHandle<DescriptorSetLayout, Dispatch>( setLayout, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
4189 }
4190 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
4191 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4192
4193 // wrapper function for command vkDestroyDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorSetLayout.html
4194 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorSetLayout ), bool>::type>
4195 VULKAN_HPP_INLINE void Device::destroyDescriptorSetLayout(
4196 DescriptorSetLayout descriptorSetLayout, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4197 {
4198 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4199 d.vkDestroyDescriptorSetLayout( static_cast<VkDevice>( m_device ),
4200 static_cast<VkDescriptorSetLayout>( descriptorSetLayout ),
4201 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
4202 }
4203
4204 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4205 // wrapper function for command vkDestroyDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorSetLayout.html
4206 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorSetLayout ), bool>::type>
4207 VULKAN_HPP_INLINE void Device::destroyDescriptorSetLayout(
4208 DescriptorSetLayout descriptorSetLayout, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4209 {
4210 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4211 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4212 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorSetLayout && "Function <vkDestroyDescriptorSetLayout> requires <VK_VERSION_1_0>" );
4213 # endif
4214
4215 d.vkDestroyDescriptorSetLayout(
4216 m_device, static_cast<VkDescriptorSetLayout>( descriptorSetLayout ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
4217 }
4218 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4219
4220 // wrapper function for command vkDestroyDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorSetLayout.html
4221 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorSetLayout ), bool>::type>
4222 VULKAN_HPP_INLINE void Device::destroy( DescriptorSetLayout descriptorSetLayout, AllocationCallbacks const * pAllocator, Dispatch const & d )
4223 const VULKAN_HPP_NOEXCEPT
4224 {
4225 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4226 d.vkDestroyDescriptorSetLayout( static_cast<VkDevice>( m_device ),
4227 static_cast<VkDescriptorSetLayout>( descriptorSetLayout ),
4228 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
4229 }
4230
4231 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4232 // wrapper function for command vkDestroyDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorSetLayout.html
4233 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorSetLayout ), bool>::type>
4234 VULKAN_HPP_INLINE void Device::destroy( DescriptorSetLayout descriptorSetLayout, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
4235 const VULKAN_HPP_NOEXCEPT
4236 {
4237 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4238 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4239 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorSetLayout && "Function <vkDestroyDescriptorSetLayout> requires <VK_VERSION_1_0>" );
4240 # endif
4241
4242 d.vkDestroyDescriptorSetLayout(
4243 m_device, static_cast<VkDescriptorSetLayout>( descriptorSetLayout ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
4244 }
4245 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4246
4247 // wrapper function for command vkCreateDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorPool.html
4248 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorPool ), bool>::type>
4249 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDescriptorPool(
4250 DescriptorPoolCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, DescriptorPool * pDescriptorPool, Dispatch const & d )
4251 const VULKAN_HPP_NOEXCEPT
4252 {
4253 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4254 return static_cast<Result>( d.vkCreateDescriptorPool( static_cast<VkDevice>( m_device ),
4255 reinterpret_cast<VkDescriptorPoolCreateInfo const *>( pCreateInfo ),
4256 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
4257 reinterpret_cast<VkDescriptorPool *>( pDescriptorPool ) ) );
4258 }
4259
4260 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4261 // wrapper function for command vkCreateDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorPool.html
4262 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorPool ), bool>::type>
4263 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DescriptorPool>::type Device::createDescriptorPool(
4264 DescriptorPoolCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
4265 {
4266 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4267 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4268 VULKAN_HPP_ASSERT( d.vkCreateDescriptorPool && "Function <vkCreateDescriptorPool> requires <VK_VERSION_1_0>" );
4269 # endif
4270
4271 DescriptorPool descriptorPool;
4272 Result result = static_cast<Result>( d.vkCreateDescriptorPool( m_device,
4273 reinterpret_cast<VkDescriptorPoolCreateInfo const *>( &createInfo ),
4274 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
4275 reinterpret_cast<VkDescriptorPool *>( &descriptorPool ) ) );
4276 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorPool" );
4277
4278 return detail::createResultValueType( result, std::move( descriptorPool ) );
4279 }
4280
4281 # ifndef VULKAN_HPP_NO_SMART_HANDLE
4282 // wrapper function for command vkCreateDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorPool.html
4283 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorPool ), bool>::type>
4284 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DescriptorPool, Dispatch>>::type Device::createDescriptorPoolUnique(
4285 DescriptorPoolCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
4286 {
4287 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4288 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4289 VULKAN_HPP_ASSERT( d.vkCreateDescriptorPool && "Function <vkCreateDescriptorPool> requires <VK_VERSION_1_0>" );
4290 # endif
4291
4292 DescriptorPool descriptorPool;
4293 Result result = static_cast<Result>( d.vkCreateDescriptorPool( m_device,
4294 reinterpret_cast<VkDescriptorPoolCreateInfo const *>( &createInfo ),
4295 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
4296 reinterpret_cast<VkDescriptorPool *>( &descriptorPool ) ) );
4297 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorPoolUnique" );
4298
4299 return detail::createResultValueType(
4300 result, UniqueHandle<DescriptorPool, Dispatch>( descriptorPool, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
4301 }
4302 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
4303 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4304
4305 // wrapper function for command vkDestroyDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorPool.html
4306 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorPool ), bool>::type>
4307 VULKAN_HPP_INLINE void Device::destroyDescriptorPool( DescriptorPool descriptorPool, AllocationCallbacks const * pAllocator, Dispatch const & d )
4308 const VULKAN_HPP_NOEXCEPT
4309 {
4310 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4311 d.vkDestroyDescriptorPool(
4312 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorPool>( descriptorPool ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
4313 }
4314
4315 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4316 // wrapper function for command vkDestroyDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorPool.html
4317 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorPool ), bool>::type>
4318 VULKAN_HPP_INLINE void Device::destroyDescriptorPool( DescriptorPool descriptorPool, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
4319 const VULKAN_HPP_NOEXCEPT
4320 {
4321 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4322 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4323 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorPool && "Function <vkDestroyDescriptorPool> requires <VK_VERSION_1_0>" );
4324 # endif
4325
4326 d.vkDestroyDescriptorPool( m_device, static_cast<VkDescriptorPool>( descriptorPool ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
4327 }
4328 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4329
4330 // wrapper function for command vkDestroyDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorPool.html
4331 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorPool ), bool>::type>
4332 VULKAN_HPP_INLINE void Device::destroy( DescriptorPool descriptorPool, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4333 {
4334 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4335 d.vkDestroyDescriptorPool(
4336 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorPool>( descriptorPool ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
4337 }
4338
4339 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4340 // wrapper function for command vkDestroyDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorPool.html
4341 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorPool ), bool>::type>
4342 VULKAN_HPP_INLINE void Device::destroy( DescriptorPool descriptorPool, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
4343 const VULKAN_HPP_NOEXCEPT
4344 {
4345 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4346 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4347 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorPool && "Function <vkDestroyDescriptorPool> requires <VK_VERSION_1_0>" );
4348 # endif
4349
4350 d.vkDestroyDescriptorPool( m_device, static_cast<VkDescriptorPool>( descriptorPool ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
4351 }
4352 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4353
4354 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
4355 // wrapper function for command vkResetDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetDescriptorPool.html
4356 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetDescriptorPool ), bool>::type>
4357 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::resetDescriptorPool( DescriptorPool descriptorPool, DescriptorPoolResetFlags flags, Dispatch const & d )
4358 const VULKAN_HPP_NOEXCEPT
4359 {
4360 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4361 return static_cast<Result>( d.vkResetDescriptorPool(
4362 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorPool>( descriptorPool ), static_cast<VkDescriptorPoolResetFlags>( flags ) ) );
4363 }
4364 #else
4365 // wrapper function for command vkResetDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetDescriptorPool.html
4366 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetDescriptorPool ), bool>::type>
4367 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::resetDescriptorPool(
4368 DescriptorPool descriptorPool, DescriptorPoolResetFlags flags, Dispatch const & d ) const
4369 {
4370 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4371 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4372 VULKAN_HPP_ASSERT( d.vkResetDescriptorPool && "Function <vkResetDescriptorPool> requires <VK_VERSION_1_0>" );
4373 # endif
4374
4375 Result result = static_cast<Result>(
4376 d.vkResetDescriptorPool( m_device, static_cast<VkDescriptorPool>( descriptorPool ), static_cast<VkDescriptorPoolResetFlags>( flags ) ) );
4377 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetDescriptorPool" );
4378
4379 return detail::createResultValueType( result );
4380 }
4381 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
4382
4383 // wrapper function for command vkAllocateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateDescriptorSets.html
4384 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAllocateDescriptorSets ), bool>::type>
4385 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::allocateDescriptorSets(
4386 DescriptorSetAllocateInfo const * pAllocateInfo, DescriptorSet * pDescriptorSets, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4387 {
4388 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4389 return static_cast<Result>( d.vkAllocateDescriptorSets( static_cast<VkDevice>( m_device ),
4390 reinterpret_cast<VkDescriptorSetAllocateInfo const *>( pAllocateInfo ),
4391 reinterpret_cast<VkDescriptorSet *>( pDescriptorSets ) ) );
4392 }
4393
4394 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4395 // wrapper function for command vkAllocateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateDescriptorSets.html
4396 template <typename DescriptorSetAllocator,
4397 typename Dispatch,
4398 typename std::enable_if<std::is_same<typename DescriptorSetAllocator::value_type, DescriptorSet>::value, int>::type,
4399 typename std::enable_if<IS_DISPATCHED( vkAllocateDescriptorSets ), bool>::type>
4400 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DescriptorSet, DescriptorSetAllocator>>::type Device::allocateDescriptorSets(
4401 DescriptorSetAllocateInfo const & allocateInfo, Dispatch const & d ) const
4402 {
4403 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4404 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4405 VULKAN_HPP_ASSERT( d.vkAllocateDescriptorSets && "Function <vkAllocateDescriptorSets> requires <VK_VERSION_1_0>" );
4406 # endif
4407
4408 std::vector<DescriptorSet, DescriptorSetAllocator> descriptorSets( allocateInfo.descriptorSetCount );
4409 Result result = static_cast<Result>( d.vkAllocateDescriptorSets(
4410 m_device, reinterpret_cast<VkDescriptorSetAllocateInfo const *>( &allocateInfo ), reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
4411 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" );
4412
4413 return detail::createResultValueType( result, std::move( descriptorSets ) );
4414 }
4415
4416 // wrapper function for command vkAllocateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateDescriptorSets.html
4417 template <typename DescriptorSetAllocator,
4418 typename Dispatch,
4419 typename std::enable_if<std::is_same<typename DescriptorSetAllocator::value_type, DescriptorSet>::value, int>::type,
4420 typename std::enable_if<IS_DISPATCHED( vkAllocateDescriptorSets ), bool>::type>
4421 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DescriptorSet, DescriptorSetAllocator>>::type Device::allocateDescriptorSets(
4422 DescriptorSetAllocateInfo const & allocateInfo, DescriptorSetAllocator const & descriptorSetAllocator, Dispatch const & d ) const
4423 {
4424 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4425 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4426 VULKAN_HPP_ASSERT( d.vkAllocateDescriptorSets && "Function <vkAllocateDescriptorSets> requires <VK_VERSION_1_0>" );
4427 # endif
4428
4429 std::vector<DescriptorSet, DescriptorSetAllocator> descriptorSets( allocateInfo.descriptorSetCount, {}, descriptorSetAllocator );
4430 Result result = static_cast<Result>( d.vkAllocateDescriptorSets(
4431 m_device, reinterpret_cast<VkDescriptorSetAllocateInfo const *>( &allocateInfo ), reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
4432 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" );
4433
4434 return detail::createResultValueType( result, std::move( descriptorSets ) );
4435 }
4436
4437 # ifndef VULKAN_HPP_NO_SMART_HANDLE
4438 // wrapper function for command vkAllocateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateDescriptorSets.html
4439 template <typename Dispatch,
4440 typename DescriptorSetAllocator,
4441 typename std::enable_if<std::is_same<typename DescriptorSetAllocator::value_type, UniqueHandle<DescriptorSet, Dispatch>>::value, int>::type,
4442 typename std::enable_if<IS_DISPATCHED( vkAllocateDescriptorSets ), bool>::type>
4443 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator>>::type
4444 Device::allocateDescriptorSetsUnique( DescriptorSetAllocateInfo const & allocateInfo, 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.vkAllocateDescriptorSets && "Function <vkAllocateDescriptorSets> requires <VK_VERSION_1_0>" );
4449 # endif
4450
4451 std::vector<DescriptorSet> descriptorSets( allocateInfo.descriptorSetCount );
4452 Result result = static_cast<Result>( d.vkAllocateDescriptorSets(
4453 m_device, reinterpret_cast<VkDescriptorSetAllocateInfo const *>( &allocateInfo ), reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
4454 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSetsUnique" );
4455 std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator> uniqueDescriptorSets;
4456 uniqueDescriptorSets.reserve( allocateInfo.descriptorSetCount );
4457 detail::PoolFree<Device, DescriptorPool, Dispatch> deleter( *this, allocateInfo.descriptorPool, d );
4458 for ( auto const & descriptorSet : descriptorSets )
4459 {
4460 uniqueDescriptorSets.push_back( UniqueHandle<DescriptorSet, Dispatch>( descriptorSet, deleter ) );
4461 }
4462 return detail::createResultValueType( result, std::move( uniqueDescriptorSets ) );
4463 }
4464
4465 // wrapper function for command vkAllocateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateDescriptorSets.html
4466 template <typename Dispatch,
4467 typename DescriptorSetAllocator,
4468 typename std::enable_if<std::is_same<typename DescriptorSetAllocator::value_type, UniqueHandle<DescriptorSet, Dispatch>>::value, int>::type,
4469 typename std::enable_if<IS_DISPATCHED( vkAllocateDescriptorSets ), bool>::type>
4470 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator>>::type
4471 Device::allocateDescriptorSetsUnique(
4472 DescriptorSetAllocateInfo const & allocateInfo, DescriptorSetAllocator const & descriptorSetAllocator, Dispatch const & d ) const
4473 {
4474 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4475 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4476 VULKAN_HPP_ASSERT( d.vkAllocateDescriptorSets && "Function <vkAllocateDescriptorSets> requires <VK_VERSION_1_0>" );
4477 # endif
4478
4479 std::vector<DescriptorSet> descriptorSets( allocateInfo.descriptorSetCount );
4480 Result result = static_cast<Result>( d.vkAllocateDescriptorSets(
4481 m_device, reinterpret_cast<VkDescriptorSetAllocateInfo const *>( &allocateInfo ), reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
4482 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSetsUnique" );
4483 std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator> uniqueDescriptorSets( descriptorSetAllocator );
4484 uniqueDescriptorSets.reserve( allocateInfo.descriptorSetCount );
4485 detail::PoolFree<Device, DescriptorPool, Dispatch> deleter( *this, allocateInfo.descriptorPool, d );
4486 for ( auto const & descriptorSet : descriptorSets )
4487 {
4488 uniqueDescriptorSets.push_back( UniqueHandle<DescriptorSet, Dispatch>( descriptorSet, deleter ) );
4489 }
4490 return detail::createResultValueType( result, std::move( uniqueDescriptorSets ) );
4491 }
4492 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
4493 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4494
4495 // wrapper function for command vkFreeDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeDescriptorSets.html
4496 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeDescriptorSets ), bool>::type>
4497 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::freeDescriptorSets(
4498 DescriptorPool descriptorPool, uint32_t descriptorSetCount, DescriptorSet const * pDescriptorSets, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4499 {
4500 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4501 return static_cast<Result>( d.vkFreeDescriptorSets( static_cast<VkDevice>( m_device ),
4502 static_cast<VkDescriptorPool>( descriptorPool ),
4503 descriptorSetCount,
4504 reinterpret_cast<VkDescriptorSet const *>( pDescriptorSets ) ) );
4505 }
4506
4507 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4508 // wrapper function for command vkFreeDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeDescriptorSets.html
4509 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeDescriptorSets ), bool>::type>
4510 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::freeDescriptorSets(
4511 DescriptorPool descriptorPool, ArrayProxy<DescriptorSet const> const & descriptorSets, Dispatch const & d ) const
4512 {
4513 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4514 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4515 VULKAN_HPP_ASSERT( d.vkFreeDescriptorSets && "Function <vkFreeDescriptorSets> requires <VK_VERSION_1_0>" );
4516 # endif
4517
4518 Result result = static_cast<Result>( d.vkFreeDescriptorSets(
4519 m_device, static_cast<VkDescriptorPool>( descriptorPool ), descriptorSets.size(), reinterpret_cast<VkDescriptorSet const *>( descriptorSets.data() ) ) );
4520 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::freeDescriptorSets" );
4521
4522 return detail::createResultValueType( result );
4523 }
4524 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4525
4526 // wrapper function for command vkFreeDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeDescriptorSets.html
4527 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeDescriptorSets ), bool>::type>
4528 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result( Device::free )(
4529 DescriptorPool descriptorPool, uint32_t descriptorSetCount, DescriptorSet const * pDescriptorSets, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4530 {
4531 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4532 return static_cast<Result>( d.vkFreeDescriptorSets( static_cast<VkDevice>( m_device ),
4533 static_cast<VkDescriptorPool>( descriptorPool ),
4534 descriptorSetCount,
4535 reinterpret_cast<VkDescriptorSet const *>( pDescriptorSets ) ) );
4536 }
4537
4538 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4539 // wrapper function for command vkFreeDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeDescriptorSets.html
4540 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeDescriptorSets ), bool>::type>
4541 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type( Device::free )(
4542 DescriptorPool descriptorPool, ArrayProxy<DescriptorSet const> const & descriptorSets, Dispatch const & d ) const
4543 {
4544 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4545 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4546 VULKAN_HPP_ASSERT( d.vkFreeDescriptorSets && "Function <vkFreeDescriptorSets> requires <VK_VERSION_1_0>" );
4547 # endif
4548
4549 Result result = static_cast<Result>( d.vkFreeDescriptorSets(
4550 m_device, static_cast<VkDescriptorPool>( descriptorPool ), descriptorSets.size(), reinterpret_cast<VkDescriptorSet const *>( descriptorSets.data() ) ) );
4551 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::( Device::free )" );
4552
4553 return detail::createResultValueType( result );
4554 }
4555 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4556
4557 // wrapper function for command vkUpdateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSets.html
4558 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateDescriptorSets ), bool>::type>
4559 VULKAN_HPP_INLINE void Device::updateDescriptorSets( uint32_t descriptorWriteCount,
4560 WriteDescriptorSet const * pDescriptorWrites,
4561 uint32_t descriptorCopyCount,
4562 CopyDescriptorSet const * pDescriptorCopies,
4563 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4564 {
4565 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4566 d.vkUpdateDescriptorSets( static_cast<VkDevice>( m_device ),
4567 descriptorWriteCount,
4568 reinterpret_cast<VkWriteDescriptorSet const *>( pDescriptorWrites ),
4569 descriptorCopyCount,
4570 reinterpret_cast<VkCopyDescriptorSet const *>( pDescriptorCopies ) );
4571 }
4572
4573 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4574 // wrapper function for command vkUpdateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSets.html
4575 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateDescriptorSets ), bool>::type>
4576 VULKAN_HPP_INLINE void Device::updateDescriptorSets(
4577 ArrayProxy<WriteDescriptorSet const> const & descriptorWrites, ArrayProxy<CopyDescriptorSet const> const & descriptorCopies, Dispatch const & d )
4578 const VULKAN_HPP_NOEXCEPT
4579 {
4580 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4581 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4582 VULKAN_HPP_ASSERT( d.vkUpdateDescriptorSets && "Function <vkUpdateDescriptorSets> requires <VK_VERSION_1_0>" );
4583 # endif
4584
4585 d.vkUpdateDescriptorSets( m_device,
4586 descriptorWrites.size(),
4587 reinterpret_cast<VkWriteDescriptorSet const *>( descriptorWrites.data() ),
4588 descriptorCopies.size(),
4589 reinterpret_cast<VkCopyDescriptorSet const *>( descriptorCopies.data() ) );
4590 }
4591 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4592
4593 // wrapper function for command vkCmdBindPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindPipeline.html
4594 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindPipeline ), bool>::type>
4595 VULKAN_HPP_INLINE void CommandBuffer::bindPipeline( PipelineBindPoint pipelineBindPoint, Pipeline pipeline, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4596 {
4597 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4598 d.vkCmdBindPipeline(
4599 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipeline>( pipeline ) );
4600 }
4601
4602 // wrapper function for command vkCmdBindDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets.html
4603 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorSets ), bool>::type>
4604 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets( PipelineBindPoint pipelineBindPoint,
4605 PipelineLayout layout,
4606 uint32_t firstSet,
4607 uint32_t descriptorSetCount,
4608 DescriptorSet const * pDescriptorSets,
4609 uint32_t dynamicOffsetCount,
4610 uint32_t const * pDynamicOffsets,
4611 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4612 {
4613 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4614 d.vkCmdBindDescriptorSets( static_cast<VkCommandBuffer>( m_commandBuffer ),
4615 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
4616 static_cast<VkPipelineLayout>( layout ),
4617 firstSet,
4618 descriptorSetCount,
4619 reinterpret_cast<VkDescriptorSet const *>( pDescriptorSets ),
4620 dynamicOffsetCount,
4621 pDynamicOffsets );
4622 }
4623
4624 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4625 // wrapper function for command vkCmdBindDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets.html
4626 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorSets ), bool>::type>
4627 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets( PipelineBindPoint pipelineBindPoint,
4628 PipelineLayout layout,
4629 uint32_t firstSet,
4630 ArrayProxy<DescriptorSet const> const & descriptorSets,
4631 ArrayProxy<uint32_t const> const & dynamicOffsets,
4632 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4633 {
4634 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4635 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4636 VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorSets && "Function <vkCmdBindDescriptorSets> requires <VK_VERSION_1_0>" );
4637 # endif
4638
4639 d.vkCmdBindDescriptorSets( m_commandBuffer,
4640 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
4641 static_cast<VkPipelineLayout>( layout ),
4642 firstSet,
4643 descriptorSets.size(),
4644 reinterpret_cast<VkDescriptorSet const *>( descriptorSets.data() ),
4645 dynamicOffsets.size(),
4646 dynamicOffsets.data() );
4647 }
4648 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4649
4650 // wrapper function for command vkCmdClearColorImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearColorImage.html
4651 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdClearColorImage ), bool>::type>
4652 VULKAN_HPP_INLINE void CommandBuffer::clearColorImage(
4653 Image image, ImageLayout imageLayout, ClearColorValue const * pColor, uint32_t rangeCount, ImageSubresourceRange const * pRanges, Dispatch const & d )
4654 const VULKAN_HPP_NOEXCEPT
4655 {
4656 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4657 d.vkCmdClearColorImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
4658 static_cast<VkImage>( image ),
4659 static_cast<VkImageLayout>( imageLayout ),
4660 reinterpret_cast<VkClearColorValue const *>( pColor ),
4661 rangeCount,
4662 reinterpret_cast<VkImageSubresourceRange const *>( pRanges ) );
4663 }
4664
4665 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4666 // wrapper function for command vkCmdClearColorImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearColorImage.html
4667 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdClearColorImage ), bool>::type>
4668 VULKAN_HPP_INLINE void CommandBuffer::clearColorImage(
4669 Image image, ImageLayout imageLayout, ClearColorValue const & color, ArrayProxy<ImageSubresourceRange const> const & ranges, Dispatch const & d )
4670 const VULKAN_HPP_NOEXCEPT
4671 {
4672 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4673 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4674 VULKAN_HPP_ASSERT( d.vkCmdClearColorImage && "Function <vkCmdClearColorImage> requires <VK_VERSION_1_0>" );
4675 # endif
4676
4677 d.vkCmdClearColorImage( m_commandBuffer,
4678 static_cast<VkImage>( image ),
4679 static_cast<VkImageLayout>( imageLayout ),
4680 reinterpret_cast<VkClearColorValue const *>( &color ),
4681 ranges.size(),
4682 reinterpret_cast<VkImageSubresourceRange const *>( ranges.data() ) );
4683 }
4684 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4685
4686 // wrapper function for command vkCmdDispatch, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatch.html
4687 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatch ), bool>::type>
4688 VULKAN_HPP_INLINE void CommandBuffer::dispatch( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ, Dispatch const & d )
4689 const VULKAN_HPP_NOEXCEPT
4690 {
4691 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4692 d.vkCmdDispatch( static_cast<VkCommandBuffer>( m_commandBuffer ), groupCountX, groupCountY, groupCountZ );
4693 }
4694
4695 // wrapper function for command vkCmdDispatchIndirect, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchIndirect.html
4696 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchIndirect ), bool>::type>
4697 VULKAN_HPP_INLINE void CommandBuffer::dispatchIndirect( Buffer buffer, DeviceSize offset, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4698 {
4699 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4700 d.vkCmdDispatchIndirect( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ) );
4701 }
4702
4703 // wrapper function for command vkCmdSetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent.html
4704 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetEvent ), bool>::type>
4705 VULKAN_HPP_INLINE void CommandBuffer::setEvent( Event event, PipelineStageFlags stageMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4706 {
4707 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4708 d.vkCmdSetEvent( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), static_cast<VkPipelineStageFlags>( stageMask ) );
4709 }
4710
4711 // wrapper function for command vkCmdResetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetEvent.html
4712 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResetEvent ), bool>::type>
4713 VULKAN_HPP_INLINE void CommandBuffer::resetEvent( Event event, PipelineStageFlags stageMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4714 {
4715 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4716 d.vkCmdResetEvent( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), static_cast<VkPipelineStageFlags>( stageMask ) );
4717 }
4718
4719 // wrapper function for command vkCmdWaitEvents, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents.html
4720 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWaitEvents ), bool>::type>
4721 VULKAN_HPP_INLINE void CommandBuffer::waitEvents( uint32_t eventCount,
4722 Event const * pEvents,
4723 PipelineStageFlags srcStageMask,
4724 PipelineStageFlags dstStageMask,
4725 uint32_t memoryBarrierCount,
4726 MemoryBarrier const * pMemoryBarriers,
4727 uint32_t bufferMemoryBarrierCount,
4728 BufferMemoryBarrier const * pBufferMemoryBarriers,
4729 uint32_t imageMemoryBarrierCount,
4730 ImageMemoryBarrier const * pImageMemoryBarriers,
4731 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4732 {
4733 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4734 d.vkCmdWaitEvents( static_cast<VkCommandBuffer>( m_commandBuffer ),
4735 eventCount,
4736 reinterpret_cast<VkEvent const *>( pEvents ),
4737 static_cast<VkPipelineStageFlags>( srcStageMask ),
4738 static_cast<VkPipelineStageFlags>( dstStageMask ),
4739 memoryBarrierCount,
4740 reinterpret_cast<VkMemoryBarrier const *>( pMemoryBarriers ),
4741 bufferMemoryBarrierCount,
4742 reinterpret_cast<VkBufferMemoryBarrier const *>( pBufferMemoryBarriers ),
4743 imageMemoryBarrierCount,
4744 reinterpret_cast<VkImageMemoryBarrier const *>( pImageMemoryBarriers ) );
4745 }
4746
4747 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4748 // wrapper function for command vkCmdWaitEvents, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents.html
4749 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWaitEvents ), bool>::type>
4750 VULKAN_HPP_INLINE void CommandBuffer::waitEvents( ArrayProxy<Event const> const & events,
4751 PipelineStageFlags srcStageMask,
4752 PipelineStageFlags dstStageMask,
4753 ArrayProxy<MemoryBarrier const> const & memoryBarriers,
4754 ArrayProxy<BufferMemoryBarrier const> const & bufferMemoryBarriers,
4755 ArrayProxy<ImageMemoryBarrier const> const & imageMemoryBarriers,
4756 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4757 {
4758 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4759 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4760 VULKAN_HPP_ASSERT( d.vkCmdWaitEvents && "Function <vkCmdWaitEvents> requires <VK_VERSION_1_0>" );
4761 # endif
4762
4763 d.vkCmdWaitEvents( m_commandBuffer,
4764 events.size(),
4765 reinterpret_cast<VkEvent const *>( events.data() ),
4766 static_cast<VkPipelineStageFlags>( srcStageMask ),
4767 static_cast<VkPipelineStageFlags>( dstStageMask ),
4768 memoryBarriers.size(),
4769 reinterpret_cast<VkMemoryBarrier const *>( memoryBarriers.data() ),
4770 bufferMemoryBarriers.size(),
4771 reinterpret_cast<VkBufferMemoryBarrier const *>( bufferMemoryBarriers.data() ),
4772 imageMemoryBarriers.size(),
4773 reinterpret_cast<VkImageMemoryBarrier const *>( imageMemoryBarriers.data() ) );
4774 }
4775 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4776
4777 // wrapper function for command vkCmdPushConstants, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants.html
4778 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushConstants ), bool>::type>
4779 VULKAN_HPP_INLINE void CommandBuffer::pushConstants(
4780 PipelineLayout layout, ShaderStageFlags stageFlags, uint32_t offset, uint32_t size, void const * pValues, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4781 {
4782 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4783 d.vkCmdPushConstants( static_cast<VkCommandBuffer>( m_commandBuffer ),
4784 static_cast<VkPipelineLayout>( layout ),
4785 static_cast<VkShaderStageFlags>( stageFlags ),
4786 offset,
4787 size,
4788 pValues );
4789 }
4790
4791 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4792 // wrapper function for command vkCmdPushConstants, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants.html
4793 template <typename ValuesType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushConstants ), bool>::type>
4794 VULKAN_HPP_INLINE void CommandBuffer::pushConstants(
4795 PipelineLayout layout, ShaderStageFlags stageFlags, uint32_t offset, ArrayProxy<ValuesType const> const & values, Dispatch const & d )
4796 const VULKAN_HPP_NOEXCEPT
4797 {
4798 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4799 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4800 VULKAN_HPP_ASSERT( d.vkCmdPushConstants && "Function <vkCmdPushConstants> requires <VK_VERSION_1_0>" );
4801 # endif
4802
4803 d.vkCmdPushConstants( m_commandBuffer,
4804 static_cast<VkPipelineLayout>( layout ),
4805 static_cast<VkShaderStageFlags>( stageFlags ),
4806 offset,
4807 values.size() * sizeof( ValuesType ),
4808 reinterpret_cast<void const *>( values.data() ) );
4809 }
4810 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4811
4812 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
4813 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
4814 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createGraphicsPipelines( PipelineCache pipelineCache,
4815 uint32_t createInfoCount,
4816 GraphicsPipelineCreateInfo const * pCreateInfos,
4817 AllocationCallbacks const * pAllocator,
4818 Pipeline * pPipelines,
4819 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4820 {
4821 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4822 return static_cast<Result>( d.vkCreateGraphicsPipelines( static_cast<VkDevice>( m_device ),
4823 static_cast<VkPipelineCache>( pipelineCache ),
4824 createInfoCount,
4825 reinterpret_cast<VkGraphicsPipelineCreateInfo const *>( pCreateInfos ),
4826 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
4827 reinterpret_cast<VkPipeline *>( pPipelines ) ) );
4828 }
4829
4830 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4831 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
4832 template <typename PipelineAllocator,
4833 typename Dispatch,
4834 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
4835 typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
4836 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>> Device::createGraphicsPipelines(
4837 PipelineCache pipelineCache,
4838 ArrayProxy<GraphicsPipelineCreateInfo const> const & createInfos,
4839 Optional<AllocationCallbacks const> allocator,
4840 Dispatch const & d ) const
4841 {
4842 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4843 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4844 VULKAN_HPP_ASSERT( d.vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
4845 # endif
4846
4847 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size() );
4848 Result result = static_cast<Result>( d.vkCreateGraphicsPipelines( m_device,
4849 static_cast<VkPipelineCache>( pipelineCache ),
4850 createInfos.size(),
4851 reinterpret_cast<VkGraphicsPipelineCreateInfo const *>( createInfos.data() ),
4852 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
4853 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
4854 detail::resultCheck( result,
4855 VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipelines",
4856 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
4857 m_device,
4858 pipelines,
4859 allocator.get(),
4860 d );
4861
4862 return { result, pipelines };
4863 }
4864
4865 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
4866 template <typename PipelineAllocator,
4867 typename Dispatch,
4868 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
4869 typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
4870 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>> Device::createGraphicsPipelines(
4871 PipelineCache pipelineCache,
4872 ArrayProxy<GraphicsPipelineCreateInfo const> const & createInfos,
4873 Optional<AllocationCallbacks const> allocator,
4874 PipelineAllocator const & pipelineAllocator,
4875 Dispatch const & d ) const
4876 {
4877 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4878 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4879 VULKAN_HPP_ASSERT( d.vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
4880 # endif
4881
4882 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size(), {}, pipelineAllocator );
4883 Result result = static_cast<Result>( d.vkCreateGraphicsPipelines( m_device,
4884 static_cast<VkPipelineCache>( pipelineCache ),
4885 createInfos.size(),
4886 reinterpret_cast<VkGraphicsPipelineCreateInfo const *>( createInfos.data() ),
4887 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
4888 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
4889 detail::resultCheck( result,
4890 VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipelines",
4891 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
4892 m_device,
4893 pipelines,
4894 allocator.get(),
4895 d );
4896
4897 return { result, pipelines };
4898 }
4899
4900 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
4901 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
4902 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<Pipeline> Device::createGraphicsPipeline(
4903 PipelineCache pipelineCache, GraphicsPipelineCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
4904 {
4905 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4906 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4907 VULKAN_HPP_ASSERT( d.vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
4908 # endif
4909
4910 Pipeline pipeline;
4911 Result result = static_cast<Result>( d.vkCreateGraphicsPipelines( m_device,
4912 static_cast<VkPipelineCache>( pipelineCache ),
4913 1,
4914 reinterpret_cast<VkGraphicsPipelineCreateInfo const *>( &createInfo ),
4915 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
4916 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
4917 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipeline", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
4918
4919 return { result, pipeline };
4920 }
4921
4922 # ifndef VULKAN_HPP_NO_SMART_HANDLE
4923 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
4924 template <typename Dispatch,
4925 typename PipelineAllocator,
4926 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
4927 typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
4928 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>> Device::createGraphicsPipelinesUnique(
4929 PipelineCache pipelineCache,
4930 ArrayProxy<GraphicsPipelineCreateInfo const> const & createInfos,
4931 Optional<AllocationCallbacks const> allocator,
4932 Dispatch const & d ) const
4933 {
4934 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4935 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4936 VULKAN_HPP_ASSERT( d.vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
4937 # endif
4938
4939 std::vector<Pipeline> pipelines( createInfos.size() );
4940 Result result = static_cast<Result>( d.vkCreateGraphicsPipelines( m_device,
4941 static_cast<VkPipelineCache>( pipelineCache ),
4942 createInfos.size(),
4943 reinterpret_cast<VkGraphicsPipelineCreateInfo const *>( createInfos.data() ),
4944 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
4945 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
4946 detail::resultCheck( result,
4947 VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipelinesUnique",
4948 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
4949 m_device,
4950 pipelines,
4951 allocator.get(),
4952 d );
4953 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines;
4954 uniquePipelines.reserve( createInfos.size() );
4955 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
4956 for ( auto const & pipeline : pipelines )
4957 {
4958 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
4959 }
4960 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
4961 }
4962
4963 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
4964 template <typename Dispatch,
4965 typename PipelineAllocator,
4966 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
4967 typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
4968 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>> Device::createGraphicsPipelinesUnique(
4969 PipelineCache pipelineCache,
4970 ArrayProxy<GraphicsPipelineCreateInfo const> const & createInfos,
4971 Optional<AllocationCallbacks const> allocator,
4972 PipelineAllocator const & pipelineAllocator,
4973 Dispatch const & d ) const
4974 {
4975 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4976 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4977 VULKAN_HPP_ASSERT( d.vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
4978 # endif
4979
4980 std::vector<Pipeline> pipelines( createInfos.size() );
4981 Result result = static_cast<Result>( d.vkCreateGraphicsPipelines( m_device,
4982 static_cast<VkPipelineCache>( pipelineCache ),
4983 createInfos.size(),
4984 reinterpret_cast<VkGraphicsPipelineCreateInfo const *>( createInfos.data() ),
4985 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
4986 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
4987 detail::resultCheck( result,
4988 VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipelinesUnique",
4989 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
4990 m_device,
4991 pipelines,
4992 allocator.get(),
4993 d );
4994 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines( pipelineAllocator );
4995 uniquePipelines.reserve( createInfos.size() );
4996 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
4997 for ( auto const & pipeline : pipelines )
4998 {
4999 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
5000 }
5001 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
5002 }
5003
5004 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
5005 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
5006 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<Pipeline, Dispatch>> Device::createGraphicsPipelineUnique(
5007 PipelineCache pipelineCache, GraphicsPipelineCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
5008 {
5009 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5010 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5011 VULKAN_HPP_ASSERT( d.vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
5012 # endif
5013
5014 Pipeline pipeline;
5015 Result result = static_cast<Result>( d.vkCreateGraphicsPipelines( m_device,
5016 static_cast<VkPipelineCache>( pipelineCache ),
5017 1,
5018 reinterpret_cast<VkGraphicsPipelineCreateInfo const *>( &createInfo ),
5019 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
5020 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
5021 detail::resultCheck(
5022 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipelineUnique", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
5023
5024 return ResultValue<UniqueHandle<Pipeline, Dispatch>>(
5025 result, UniqueHandle<Pipeline, Dispatch>( pipeline, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
5026 }
5027 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
5028 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5029
5030 // wrapper function for command vkCreateFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFramebuffer.html
5031 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateFramebuffer ), bool>::type>
5032 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createFramebuffer(
5033 FramebufferCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, Framebuffer * pFramebuffer, Dispatch const & d )
5034 const VULKAN_HPP_NOEXCEPT
5035 {
5036 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5037 return static_cast<Result>( d.vkCreateFramebuffer( static_cast<VkDevice>( m_device ),
5038 reinterpret_cast<VkFramebufferCreateInfo const *>( pCreateInfo ),
5039 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
5040 reinterpret_cast<VkFramebuffer *>( pFramebuffer ) ) );
5041 }
5042
5043 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5044 // wrapper function for command vkCreateFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFramebuffer.html
5045 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateFramebuffer ), bool>::type>
5046 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Framebuffer>::type Device::createFramebuffer(
5047 FramebufferCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
5048 {
5049 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5050 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5051 VULKAN_HPP_ASSERT( d.vkCreateFramebuffer && "Function <vkCreateFramebuffer> requires <VK_VERSION_1_0>" );
5052 # endif
5053
5054 Framebuffer framebuffer;
5055 Result result = static_cast<Result>( d.vkCreateFramebuffer( m_device,
5056 reinterpret_cast<VkFramebufferCreateInfo const *>( &createInfo ),
5057 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
5058 reinterpret_cast<VkFramebuffer *>( &framebuffer ) ) );
5059 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createFramebuffer" );
5060
5061 return detail::createResultValueType( result, std::move( framebuffer ) );
5062 }
5063
5064 # ifndef VULKAN_HPP_NO_SMART_HANDLE
5065 // wrapper function for command vkCreateFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFramebuffer.html
5066 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateFramebuffer ), bool>::type>
5067 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Framebuffer, Dispatch>>::type Device::createFramebufferUnique(
5068 FramebufferCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
5069 {
5070 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5071 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5072 VULKAN_HPP_ASSERT( d.vkCreateFramebuffer && "Function <vkCreateFramebuffer> requires <VK_VERSION_1_0>" );
5073 # endif
5074
5075 Framebuffer framebuffer;
5076 Result result = static_cast<Result>( d.vkCreateFramebuffer( m_device,
5077 reinterpret_cast<VkFramebufferCreateInfo const *>( &createInfo ),
5078 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
5079 reinterpret_cast<VkFramebuffer *>( &framebuffer ) ) );
5080 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createFramebufferUnique" );
5081
5082 return detail::createResultValueType( result,
5083 UniqueHandle<Framebuffer, Dispatch>( framebuffer, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
5084 }
5085 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
5086 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5087
5088 // wrapper function for command vkDestroyFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFramebuffer.html
5089 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFramebuffer ), bool>::type>
5090 VULKAN_HPP_INLINE void Device::destroyFramebuffer( Framebuffer framebuffer, AllocationCallbacks const * pAllocator, Dispatch const & d )
5091 const VULKAN_HPP_NOEXCEPT
5092 {
5093 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5094 d.vkDestroyFramebuffer(
5095 static_cast<VkDevice>( m_device ), static_cast<VkFramebuffer>( framebuffer ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
5096 }
5097
5098 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5099 // wrapper function for command vkDestroyFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFramebuffer.html
5100 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFramebuffer ), bool>::type>
5101 VULKAN_HPP_INLINE void Device::destroyFramebuffer( Framebuffer framebuffer, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
5102 const VULKAN_HPP_NOEXCEPT
5103 {
5104 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5105 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5106 VULKAN_HPP_ASSERT( d.vkDestroyFramebuffer && "Function <vkDestroyFramebuffer> requires <VK_VERSION_1_0>" );
5107 # endif
5108
5109 d.vkDestroyFramebuffer( m_device, static_cast<VkFramebuffer>( framebuffer ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
5110 }
5111 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5112
5113 // wrapper function for command vkDestroyFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFramebuffer.html
5114 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFramebuffer ), bool>::type>
5115 VULKAN_HPP_INLINE void Device::destroy( Framebuffer framebuffer, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5116 {
5117 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5118 d.vkDestroyFramebuffer(
5119 static_cast<VkDevice>( m_device ), static_cast<VkFramebuffer>( framebuffer ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
5120 }
5121
5122 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5123 // wrapper function for command vkDestroyFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFramebuffer.html
5124 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFramebuffer ), bool>::type>
5125 VULKAN_HPP_INLINE void Device::destroy( Framebuffer framebuffer, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5126 {
5127 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5128 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5129 VULKAN_HPP_ASSERT( d.vkDestroyFramebuffer && "Function <vkDestroyFramebuffer> requires <VK_VERSION_1_0>" );
5130 # endif
5131
5132 d.vkDestroyFramebuffer( m_device, static_cast<VkFramebuffer>( framebuffer ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
5133 }
5134 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5135
5136 // wrapper function for command vkCreateRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass.html
5137 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass ), bool>::type>
5138 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createRenderPass(
5139 RenderPassCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, RenderPass * pRenderPass, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5140 {
5141 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5142 return static_cast<Result>( d.vkCreateRenderPass( static_cast<VkDevice>( m_device ),
5143 reinterpret_cast<VkRenderPassCreateInfo const *>( pCreateInfo ),
5144 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
5145 reinterpret_cast<VkRenderPass *>( pRenderPass ) ) );
5146 }
5147
5148 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5149 // wrapper function for command vkCreateRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass.html
5150 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass ), bool>::type>
5151 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RenderPass>::type Device::createRenderPass(
5152 RenderPassCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
5153 {
5154 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5155 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5156 VULKAN_HPP_ASSERT( d.vkCreateRenderPass && "Function <vkCreateRenderPass> requires <VK_VERSION_1_0>" );
5157 # endif
5158
5159 RenderPass renderPass;
5160 Result result = static_cast<Result>( d.vkCreateRenderPass( m_device,
5161 reinterpret_cast<VkRenderPassCreateInfo const *>( &createInfo ),
5162 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
5163 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
5164 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass" );
5165
5166 return detail::createResultValueType( result, std::move( renderPass ) );
5167 }
5168
5169 # ifndef VULKAN_HPP_NO_SMART_HANDLE
5170 // wrapper function for command vkCreateRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass.html
5171 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass ), bool>::type>
5172 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<RenderPass, Dispatch>>::type Device::createRenderPassUnique(
5173 RenderPassCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
5174 {
5175 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5176 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5177 VULKAN_HPP_ASSERT( d.vkCreateRenderPass && "Function <vkCreateRenderPass> requires <VK_VERSION_1_0>" );
5178 # endif
5179
5180 RenderPass renderPass;
5181 Result result = static_cast<Result>( d.vkCreateRenderPass( m_device,
5182 reinterpret_cast<VkRenderPassCreateInfo const *>( &createInfo ),
5183 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
5184 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
5185 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPassUnique" );
5186
5187 return detail::createResultValueType( result,
5188 UniqueHandle<RenderPass, Dispatch>( renderPass, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
5189 }
5190 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
5191 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5192
5193 // wrapper function for command vkDestroyRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyRenderPass.html
5194 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyRenderPass ), bool>::type>
5195 VULKAN_HPP_INLINE void Device::destroyRenderPass( RenderPass renderPass, AllocationCallbacks const * pAllocator, Dispatch const & d )
5196 const VULKAN_HPP_NOEXCEPT
5197 {
5198 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5199 d.vkDestroyRenderPass(
5200 static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( renderPass ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
5201 }
5202
5203 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5204 // wrapper function for command vkDestroyRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyRenderPass.html
5205 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyRenderPass ), bool>::type>
5206 VULKAN_HPP_INLINE void Device::destroyRenderPass( RenderPass renderPass, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
5207 const VULKAN_HPP_NOEXCEPT
5208 {
5209 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5210 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5211 VULKAN_HPP_ASSERT( d.vkDestroyRenderPass && "Function <vkDestroyRenderPass> requires <VK_VERSION_1_0>" );
5212 # endif
5213
5214 d.vkDestroyRenderPass( m_device, static_cast<VkRenderPass>( renderPass ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
5215 }
5216 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5217
5218 // wrapper function for command vkDestroyRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyRenderPass.html
5219 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyRenderPass ), bool>::type>
5220 VULKAN_HPP_INLINE void Device::destroy( RenderPass renderPass, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5221 {
5222 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5223 d.vkDestroyRenderPass(
5224 static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( renderPass ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
5225 }
5226
5227 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5228 // wrapper function for command vkDestroyRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyRenderPass.html
5229 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyRenderPass ), bool>::type>
5230 VULKAN_HPP_INLINE void Device::destroy( RenderPass renderPass, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5231 {
5232 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5233 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5234 VULKAN_HPP_ASSERT( d.vkDestroyRenderPass && "Function <vkDestroyRenderPass> requires <VK_VERSION_1_0>" );
5235 # endif
5236
5237 d.vkDestroyRenderPass( m_device, static_cast<VkRenderPass>( renderPass ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
5238 }
5239 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5240
5241 // wrapper function for command vkGetRenderAreaGranularity, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderAreaGranularity.html
5242 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRenderAreaGranularity ), bool>::type>
5243 VULKAN_HPP_INLINE void Device::getRenderAreaGranularity( RenderPass renderPass, Extent2D * pGranularity, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5244 {
5245 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5246 d.vkGetRenderAreaGranularity( static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( renderPass ), reinterpret_cast<VkExtent2D *>( pGranularity ) );
5247 }
5248
5249 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5250 // wrapper function for command vkGetRenderAreaGranularity, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderAreaGranularity.html
5251 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRenderAreaGranularity ), bool>::type>
5252 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Extent2D Device::getRenderAreaGranularity( RenderPass renderPass, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5253 {
5254 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5255 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5256 VULKAN_HPP_ASSERT( d.vkGetRenderAreaGranularity && "Function <vkGetRenderAreaGranularity> requires <VK_VERSION_1_0>" );
5257 # endif
5258
5259 Extent2D granularity;
5260 d.vkGetRenderAreaGranularity( m_device, static_cast<VkRenderPass>( renderPass ), reinterpret_cast<VkExtent2D *>( &granularity ) );
5261
5262 return granularity;
5263 }
5264 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5265
5266 // wrapper function for command vkCmdSetViewport, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewport.html
5267 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewport ), bool>::type>
5268 VULKAN_HPP_INLINE void CommandBuffer::setViewport( uint32_t firstViewport, uint32_t viewportCount, Viewport const * pViewports, Dispatch const & d )
5269 const VULKAN_HPP_NOEXCEPT
5270 {
5271 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5272 d.vkCmdSetViewport( static_cast<VkCommandBuffer>( m_commandBuffer ), firstViewport, viewportCount, reinterpret_cast<VkViewport const *>( pViewports ) );
5273 }
5274
5275 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5276 // wrapper function for command vkCmdSetViewport, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewport.html
5277 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewport ), bool>::type>
5278 VULKAN_HPP_INLINE void CommandBuffer::setViewport( uint32_t firstViewport, ArrayProxy<Viewport const> const & viewports, Dispatch const & d )
5279 const VULKAN_HPP_NOEXCEPT
5280 {
5281 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5282 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5283 VULKAN_HPP_ASSERT( d.vkCmdSetViewport && "Function <vkCmdSetViewport> requires <VK_VERSION_1_0>" );
5284 # endif
5285
5286 d.vkCmdSetViewport( m_commandBuffer, firstViewport, viewports.size(), reinterpret_cast<VkViewport const *>( viewports.data() ) );
5287 }
5288 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5289
5290 // wrapper function for command vkCmdSetScissor, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissor.html
5291 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetScissor ), bool>::type>
5292 VULKAN_HPP_INLINE void CommandBuffer::setScissor( uint32_t firstScissor, uint32_t scissorCount, Rect2D const * pScissors, Dispatch const & d )
5293 const VULKAN_HPP_NOEXCEPT
5294 {
5295 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5296 d.vkCmdSetScissor( static_cast<VkCommandBuffer>( m_commandBuffer ), firstScissor, scissorCount, reinterpret_cast<VkRect2D const *>( pScissors ) );
5297 }
5298
5299 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5300 // wrapper function for command vkCmdSetScissor, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissor.html
5301 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetScissor ), bool>::type>
5302 VULKAN_HPP_INLINE void CommandBuffer::setScissor( uint32_t firstScissor, ArrayProxy<Rect2D const> const & scissors, Dispatch const & d )
5303 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.vkCmdSetScissor && "Function <vkCmdSetScissor> requires <VK_VERSION_1_0>" );
5308 # endif
5309
5310 d.vkCmdSetScissor( m_commandBuffer, firstScissor, scissors.size(), reinterpret_cast<VkRect2D const *>( scissors.data() ) );
5311 }
5312 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5313
5314 // wrapper function for command vkCmdSetLineWidth, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineWidth.html
5315 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLineWidth ), bool>::type>
5316 VULKAN_HPP_INLINE void CommandBuffer::setLineWidth( float lineWidth, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5317 {
5318 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5319 d.vkCmdSetLineWidth( static_cast<VkCommandBuffer>( m_commandBuffer ), lineWidth );
5320 }
5321
5322 // wrapper function for command vkCmdSetDepthBias, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBias.html
5323 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBias ), bool>::type>
5324 VULKAN_HPP_INLINE void CommandBuffer::setDepthBias( float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor, Dispatch const & d )
5325 const VULKAN_HPP_NOEXCEPT
5326 {
5327 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5328 d.vkCmdSetDepthBias( static_cast<VkCommandBuffer>( m_commandBuffer ), depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor );
5329 }
5330
5331 // wrapper function for command vkCmdSetBlendConstants, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetBlendConstants.html
5332 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetBlendConstants ), bool>::type>
5333 VULKAN_HPP_INLINE void CommandBuffer::setBlendConstants( float const blendConstants[4], Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5334 {
5335 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5336 d.vkCmdSetBlendConstants( static_cast<VkCommandBuffer>( m_commandBuffer ), blendConstants );
5337 }
5338
5339 // wrapper function for command vkCmdSetDepthBounds, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBounds.html
5340 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBounds ), bool>::type>
5341 VULKAN_HPP_INLINE void CommandBuffer::setDepthBounds( float minDepthBounds, float maxDepthBounds, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5342 {
5343 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5344 d.vkCmdSetDepthBounds( static_cast<VkCommandBuffer>( m_commandBuffer ), minDepthBounds, maxDepthBounds );
5345 }
5346
5347 // wrapper function for command vkCmdSetStencilCompareMask, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilCompareMask.html
5348 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilCompareMask ), bool>::type>
5349 VULKAN_HPP_INLINE void CommandBuffer::setStencilCompareMask( StencilFaceFlags faceMask, uint32_t compareMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5350 {
5351 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5352 d.vkCmdSetStencilCompareMask( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ), compareMask );
5353 }
5354
5355 // wrapper function for command vkCmdSetStencilWriteMask, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilWriteMask.html
5356 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilWriteMask ), bool>::type>
5357 VULKAN_HPP_INLINE void CommandBuffer::setStencilWriteMask( StencilFaceFlags faceMask, uint32_t writeMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5358 {
5359 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5360 d.vkCmdSetStencilWriteMask( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ), writeMask );
5361 }
5362
5363 // wrapper function for command vkCmdSetStencilReference, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilReference.html
5364 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilReference ), bool>::type>
5365 VULKAN_HPP_INLINE void CommandBuffer::setStencilReference( StencilFaceFlags faceMask, uint32_t reference, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5366 {
5367 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5368 d.vkCmdSetStencilReference( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ), reference );
5369 }
5370
5371 // wrapper function for command vkCmdBindIndexBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer.html
5372 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindIndexBuffer ), bool>::type>
5373 VULKAN_HPP_INLINE void CommandBuffer::bindIndexBuffer( Buffer buffer, DeviceSize offset, IndexType indexType, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5374 {
5375 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5376 d.vkCmdBindIndexBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
5377 static_cast<VkBuffer>( buffer ),
5378 static_cast<VkDeviceSize>( offset ),
5379 static_cast<VkIndexType>( indexType ) );
5380 }
5381
5382 // wrapper function for command vkCmdBindVertexBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers.html
5383 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers ), bool>::type>
5384 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers(
5385 uint32_t firstBinding, uint32_t bindingCount, Buffer const * pBuffers, DeviceSize const * pOffsets, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5386 {
5387 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5388 d.vkCmdBindVertexBuffers( static_cast<VkCommandBuffer>( m_commandBuffer ),
5389 firstBinding,
5390 bindingCount,
5391 reinterpret_cast<VkBuffer const *>( pBuffers ),
5392 reinterpret_cast<VkDeviceSize const *>( pOffsets ) );
5393 }
5394
5395 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5396 // wrapper function for command vkCmdBindVertexBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers.html
5397 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers ), bool>::type>
5398 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers(
5399 uint32_t firstBinding, ArrayProxy<Buffer const> const & buffers, ArrayProxy<DeviceSize const> const & offsets, Dispatch const & d )
5400 const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
5401 {
5402 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5403 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5404 VULKAN_HPP_ASSERT( d.vkCmdBindVertexBuffers && "Function <vkCmdBindVertexBuffers> requires <VK_VERSION_1_0>" );
5405 # endif
5406 # ifdef VULKAN_HPP_NO_EXCEPTIONS
5407 VULKAN_HPP_ASSERT( buffers.size() == offsets.size() );
5408 # else
5409 if ( buffers.size() != offsets.size() )
5410 {
5411 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers: buffers.size() != offsets.size()" );
5412 }
5413 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
5414
5415 d.vkCmdBindVertexBuffers( m_commandBuffer,
5416 firstBinding,
5417 buffers.size(),
5418 reinterpret_cast<VkBuffer const *>( buffers.data() ),
5419 reinterpret_cast<VkDeviceSize const *>( offsets.data() ) );
5420 }
5421 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5422
5423 // wrapper function for command vkCmdDraw, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDraw.html
5424 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDraw ), bool>::type>
5425 VULKAN_HPP_INLINE void CommandBuffer::draw( uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance, Dispatch const & d )
5426 const VULKAN_HPP_NOEXCEPT
5427 {
5428 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5429 d.vkCmdDraw( static_cast<VkCommandBuffer>( m_commandBuffer ), vertexCount, instanceCount, firstVertex, firstInstance );
5430 }
5431
5432 // wrapper function for command vkCmdDrawIndexed, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexed.html
5433 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexed ), bool>::type>
5434 VULKAN_HPP_INLINE void CommandBuffer::drawIndexed(
5435 uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance, Dispatch const & d )
5436 const VULKAN_HPP_NOEXCEPT
5437 {
5438 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5439 d.vkCmdDrawIndexed( static_cast<VkCommandBuffer>( m_commandBuffer ), indexCount, instanceCount, firstIndex, vertexOffset, firstInstance );
5440 }
5441
5442 // wrapper function for command vkCmdDrawIndirect, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirect.html
5443 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirect ), bool>::type>
5444 VULKAN_HPP_INLINE void CommandBuffer::drawIndirect( Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride, Dispatch const & d )
5445 const VULKAN_HPP_NOEXCEPT
5446 {
5447 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5448 d.vkCmdDrawIndirect(
5449 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ), drawCount, stride );
5450 }
5451
5452 // wrapper function for command vkCmdDrawIndexedIndirect, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirect.html
5453 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexedIndirect ), bool>::type>
5454 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirect( Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride, Dispatch const & d )
5455 const VULKAN_HPP_NOEXCEPT
5456 {
5457 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5458 d.vkCmdDrawIndexedIndirect(
5459 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ), drawCount, stride );
5460 }
5461
5462 // wrapper function for command vkCmdBlitImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage.html
5463 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBlitImage ), bool>::type>
5464 VULKAN_HPP_INLINE void CommandBuffer::blitImage( Image srcImage,
5465 ImageLayout srcImageLayout,
5466 Image dstImage,
5467 ImageLayout dstImageLayout,
5468 uint32_t regionCount,
5469 ImageBlit const * pRegions,
5470 Filter filter,
5471 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5472 {
5473 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5474 d.vkCmdBlitImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
5475 static_cast<VkImage>( srcImage ),
5476 static_cast<VkImageLayout>( srcImageLayout ),
5477 static_cast<VkImage>( dstImage ),
5478 static_cast<VkImageLayout>( dstImageLayout ),
5479 regionCount,
5480 reinterpret_cast<VkImageBlit const *>( pRegions ),
5481 static_cast<VkFilter>( filter ) );
5482 }
5483
5484 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5485 // wrapper function for command vkCmdBlitImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage.html
5486 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBlitImage ), bool>::type>
5487 VULKAN_HPP_INLINE void CommandBuffer::blitImage( Image srcImage,
5488 ImageLayout srcImageLayout,
5489 Image dstImage,
5490 ImageLayout dstImageLayout,
5491 ArrayProxy<ImageBlit const> const & regions,
5492 Filter filter,
5493 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5494 {
5495 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5496 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5497 VULKAN_HPP_ASSERT( d.vkCmdBlitImage && "Function <vkCmdBlitImage> requires <VK_VERSION_1_0>" );
5498 # endif
5499
5500 d.vkCmdBlitImage( m_commandBuffer,
5501 static_cast<VkImage>( srcImage ),
5502 static_cast<VkImageLayout>( srcImageLayout ),
5503 static_cast<VkImage>( dstImage ),
5504 static_cast<VkImageLayout>( dstImageLayout ),
5505 regions.size(),
5506 reinterpret_cast<VkImageBlit const *>( regions.data() ),
5507 static_cast<VkFilter>( filter ) );
5508 }
5509 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5510
5511 // wrapper function for command vkCmdClearDepthStencilImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearDepthStencilImage.html
5512 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdClearDepthStencilImage ), bool>::type>
5513 VULKAN_HPP_INLINE void CommandBuffer::clearDepthStencilImage( Image image,
5514 ImageLayout imageLayout,
5515 ClearDepthStencilValue const * pDepthStencil,
5516 uint32_t rangeCount,
5517 ImageSubresourceRange const * pRanges,
5518 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5519 {
5520 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5521 d.vkCmdClearDepthStencilImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
5522 static_cast<VkImage>( image ),
5523 static_cast<VkImageLayout>( imageLayout ),
5524 reinterpret_cast<VkClearDepthStencilValue const *>( pDepthStencil ),
5525 rangeCount,
5526 reinterpret_cast<VkImageSubresourceRange const *>( pRanges ) );
5527 }
5528
5529 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5530 // wrapper function for command vkCmdClearDepthStencilImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearDepthStencilImage.html
5531 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdClearDepthStencilImage ), bool>::type>
5532 VULKAN_HPP_INLINE void CommandBuffer::clearDepthStencilImage( Image image,
5533 ImageLayout imageLayout,
5534 ClearDepthStencilValue const & depthStencil,
5535 ArrayProxy<ImageSubresourceRange const> const & ranges,
5536 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5537 {
5538 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5539 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5540 VULKAN_HPP_ASSERT( d.vkCmdClearDepthStencilImage && "Function <vkCmdClearDepthStencilImage> requires <VK_VERSION_1_0>" );
5541 # endif
5542
5543 d.vkCmdClearDepthStencilImage( m_commandBuffer,
5544 static_cast<VkImage>( image ),
5545 static_cast<VkImageLayout>( imageLayout ),
5546 reinterpret_cast<VkClearDepthStencilValue const *>( &depthStencil ),
5547 ranges.size(),
5548 reinterpret_cast<VkImageSubresourceRange const *>( ranges.data() ) );
5549 }
5550 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5551
5552 // wrapper function for command vkCmdClearAttachments, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearAttachments.html
5553 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdClearAttachments ), bool>::type>
5554 VULKAN_HPP_INLINE void CommandBuffer::clearAttachments(
5555 uint32_t attachmentCount, ClearAttachment const * pAttachments, uint32_t rectCount, ClearRect const * pRects, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5556 {
5557 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5558 d.vkCmdClearAttachments( static_cast<VkCommandBuffer>( m_commandBuffer ),
5559 attachmentCount,
5560 reinterpret_cast<VkClearAttachment const *>( pAttachments ),
5561 rectCount,
5562 reinterpret_cast<VkClearRect const *>( pRects ) );
5563 }
5564
5565 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5566 // wrapper function for command vkCmdClearAttachments, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearAttachments.html
5567 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdClearAttachments ), bool>::type>
5568 VULKAN_HPP_INLINE void CommandBuffer::clearAttachments(
5569 ArrayProxy<ClearAttachment const> const & attachments, ArrayProxy<ClearRect const> const & rects, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5570 {
5571 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5572 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5573 VULKAN_HPP_ASSERT( d.vkCmdClearAttachments && "Function <vkCmdClearAttachments> requires <VK_VERSION_1_0>" );
5574 # endif
5575
5576 d.vkCmdClearAttachments( m_commandBuffer,
5577 attachments.size(),
5578 reinterpret_cast<VkClearAttachment const *>( attachments.data() ),
5579 rects.size(),
5580 reinterpret_cast<VkClearRect const *>( rects.data() ) );
5581 }
5582 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5583
5584 // wrapper function for command vkCmdResolveImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage.html
5585 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResolveImage ), bool>::type>
5586 VULKAN_HPP_INLINE void CommandBuffer::resolveImage( Image srcImage,
5587 ImageLayout srcImageLayout,
5588 Image dstImage,
5589 ImageLayout dstImageLayout,
5590 uint32_t regionCount,
5591 ImageResolve const * pRegions,
5592 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5593 {
5594 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5595 d.vkCmdResolveImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
5596 static_cast<VkImage>( srcImage ),
5597 static_cast<VkImageLayout>( srcImageLayout ),
5598 static_cast<VkImage>( dstImage ),
5599 static_cast<VkImageLayout>( dstImageLayout ),
5600 regionCount,
5601 reinterpret_cast<VkImageResolve const *>( pRegions ) );
5602 }
5603
5604 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5605 // wrapper function for command vkCmdResolveImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage.html
5606 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResolveImage ), bool>::type>
5607 VULKAN_HPP_INLINE void CommandBuffer::resolveImage(
5608 Image srcImage, ImageLayout srcImageLayout, Image dstImage, ImageLayout dstImageLayout, ArrayProxy<ImageResolve const> const & regions, Dispatch const & d )
5609 const VULKAN_HPP_NOEXCEPT
5610 {
5611 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5612 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5613 VULKAN_HPP_ASSERT( d.vkCmdResolveImage && "Function <vkCmdResolveImage> requires <VK_VERSION_1_0>" );
5614 # endif
5615
5616 d.vkCmdResolveImage( m_commandBuffer,
5617 static_cast<VkImage>( srcImage ),
5618 static_cast<VkImageLayout>( srcImageLayout ),
5619 static_cast<VkImage>( dstImage ),
5620 static_cast<VkImageLayout>( dstImageLayout ),
5621 regions.size(),
5622 reinterpret_cast<VkImageResolve const *>( regions.data() ) );
5623 }
5624 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5625
5626 // wrapper function for command vkCmdBeginRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass.html
5627 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderPass ), bool>::type>
5628 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass( RenderPassBeginInfo const * pRenderPassBegin, SubpassContents contents, Dispatch const & d )
5629 const VULKAN_HPP_NOEXCEPT
5630 {
5631 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5632 d.vkCmdBeginRenderPass( static_cast<VkCommandBuffer>( m_commandBuffer ),
5633 reinterpret_cast<VkRenderPassBeginInfo const *>( pRenderPassBegin ),
5634 static_cast<VkSubpassContents>( contents ) );
5635 }
5636
5637 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5638 // wrapper function for command vkCmdBeginRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass.html
5639 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderPass ), bool>::type>
5640 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass( RenderPassBeginInfo const & renderPassBegin, SubpassContents contents, Dispatch const & d )
5641 const VULKAN_HPP_NOEXCEPT
5642 {
5643 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5644 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5645 VULKAN_HPP_ASSERT( d.vkCmdBeginRenderPass && "Function <vkCmdBeginRenderPass> requires <VK_VERSION_1_0>" );
5646 # endif
5647
5648 d.vkCmdBeginRenderPass( m_commandBuffer, reinterpret_cast<VkRenderPassBeginInfo const *>( &renderPassBegin ), static_cast<VkSubpassContents>( contents ) );
5649 }
5650 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5651
5652 // wrapper function for command vkCmdNextSubpass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass.html
5653 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdNextSubpass ), bool>::type>
5654 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass( SubpassContents contents, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5655 {
5656 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5657 d.vkCmdNextSubpass( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkSubpassContents>( contents ) );
5658 }
5659
5660 // wrapper function for command vkCmdEndRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass.html
5661 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRenderPass ), bool>::type>
5662 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5663 {
5664 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5665 d.vkCmdEndRenderPass( static_cast<VkCommandBuffer>( m_commandBuffer ) );
5666 }
5667
5668 //=== VK_VERSION_1_1 ===
5669
5670 // wrapper function for command vkEnumerateInstanceVersion, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceVersion.html
5671 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceVersion ), bool>::type>
5672 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result enumerateInstanceVersion( uint32_t * pApiVersion, Dispatch const & d ) VULKAN_HPP_NOEXCEPT
5673 {
5674 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5675 return static_cast<Result>( d.vkEnumerateInstanceVersion( pApiVersion ) );
5676 }
5677
5678 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5679 // wrapper function for command vkEnumerateInstanceVersion, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceVersion.html
5680 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceVersion ), bool>::type>
5681 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint32_t>::type enumerateInstanceVersion( Dispatch const & d )
5682 {
5683 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5684 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5685 VULKAN_HPP_ASSERT( d.vkEnumerateInstanceVersion && "Function <vkEnumerateInstanceVersion> requires <VK_VERSION_1_1>" );
5686 # endif
5687
5688 uint32_t apiVersion;
5689 Result result = static_cast<Result>( d.vkEnumerateInstanceVersion( &apiVersion ) );
5690 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::enumerateInstanceVersion" );
5691
5692 return detail::createResultValueType( result, std::move( apiVersion ) );
5693 }
5694 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5695
5696 // wrapper function for command vkBindBufferMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory2.html
5697 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindBufferMemory2 ), bool>::type>
5698 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindBufferMemory2( uint32_t bindInfoCount, BindBufferMemoryInfo const * pBindInfos, Dispatch const & d )
5699 const VULKAN_HPP_NOEXCEPT
5700 {
5701 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5702 return static_cast<Result>(
5703 d.vkBindBufferMemory2( static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<VkBindBufferMemoryInfo const *>( pBindInfos ) ) );
5704 }
5705
5706 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5707 // wrapper function for command vkBindBufferMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory2.html
5708 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindBufferMemory2 ), bool>::type>
5709 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindBufferMemory2(
5710 ArrayProxy<BindBufferMemoryInfo const> const & bindInfos, Dispatch const & d ) const
5711 {
5712 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5713 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5714 VULKAN_HPP_ASSERT( d.vkBindBufferMemory2 && "Function <vkBindBufferMemory2> requires <VK_KHR_bind_memory2> or <VK_VERSION_1_1>" );
5715 # endif
5716
5717 Result result =
5718 static_cast<Result>( d.vkBindBufferMemory2( m_device, bindInfos.size(), reinterpret_cast<VkBindBufferMemoryInfo const *>( bindInfos.data() ) ) );
5719 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindBufferMemory2" );
5720
5721 return detail::createResultValueType( result );
5722 }
5723 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5724
5725 // wrapper function for command vkBindImageMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory2.html
5726 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindImageMemory2 ), bool>::type>
5727 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindImageMemory2( uint32_t bindInfoCount, BindImageMemoryInfo const * pBindInfos, Dispatch const & d )
5728 const VULKAN_HPP_NOEXCEPT
5729 {
5730 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5731 return static_cast<Result>(
5732 d.vkBindImageMemory2( static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<VkBindImageMemoryInfo const *>( pBindInfos ) ) );
5733 }
5734
5735 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5736 // wrapper function for command vkBindImageMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory2.html
5737 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindImageMemory2 ), bool>::type>
5738 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindImageMemory2(
5739 ArrayProxy<BindImageMemoryInfo const> const & bindInfos, Dispatch const & d ) const
5740 {
5741 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5742 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5743 VULKAN_HPP_ASSERT( d.vkBindImageMemory2 && "Function <vkBindImageMemory2> requires <VK_KHR_bind_memory2> or <VK_VERSION_1_1>" );
5744 # endif
5745
5746 Result result =
5747 static_cast<Result>( d.vkBindImageMemory2( m_device, bindInfos.size(), reinterpret_cast<VkBindImageMemoryInfo const *>( bindInfos.data() ) ) );
5748 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindImageMemory2" );
5749
5750 return detail::createResultValueType( result );
5751 }
5752 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5753
5754 // wrapper function for command vkGetDeviceGroupPeerMemoryFeatures, see
5755 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPeerMemoryFeatures.html
5756 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupPeerMemoryFeatures ), bool>::type>
5757 VULKAN_HPP_INLINE void Device::getGroupPeerMemoryFeatures(
5758 uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex, PeerMemoryFeatureFlags * pPeerMemoryFeatures, Dispatch const & d )
5759 const VULKAN_HPP_NOEXCEPT
5760 {
5761 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5762 d.vkGetDeviceGroupPeerMemoryFeatures(
5763 static_cast<VkDevice>( m_device ), heapIndex, localDeviceIndex, remoteDeviceIndex, reinterpret_cast<VkPeerMemoryFeatureFlags *>( pPeerMemoryFeatures ) );
5764 }
5765
5766 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5767 // wrapper function for command vkGetDeviceGroupPeerMemoryFeatures, see
5768 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPeerMemoryFeatures.html
5769 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupPeerMemoryFeatures ), bool>::type>
5770 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PeerMemoryFeatureFlags Device::getGroupPeerMemoryFeatures(
5771 uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5772 {
5773 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5774 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5775 VULKAN_HPP_ASSERT( d.vkGetDeviceGroupPeerMemoryFeatures &&
5776 "Function <vkGetDeviceGroupPeerMemoryFeatures> requires <VK_KHR_device_group> or <VK_VERSION_1_1>" );
5777 # endif
5778
5779 PeerMemoryFeatureFlags peerMemoryFeatures;
5780 d.vkGetDeviceGroupPeerMemoryFeatures(
5781 m_device, heapIndex, localDeviceIndex, remoteDeviceIndex, reinterpret_cast<VkPeerMemoryFeatureFlags *>( &peerMemoryFeatures ) );
5782
5783 return peerMemoryFeatures;
5784 }
5785 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5786
5787 // wrapper function for command vkCmdSetDeviceMask, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDeviceMask.html
5788 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDeviceMask ), bool>::type>
5789 VULKAN_HPP_INLINE void CommandBuffer::setDeviceMask( uint32_t deviceMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5790 {
5791 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5792 d.vkCmdSetDeviceMask( static_cast<VkCommandBuffer>( m_commandBuffer ), deviceMask );
5793 }
5794
5795 // wrapper function for command vkEnumeratePhysicalDeviceGroups, see
5796 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroups.html
5797 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceGroups ), bool>::type>
5798 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::enumeratePhysicalDeviceGroups(
5799 uint32_t * pPhysicalDeviceGroupCount, PhysicalDeviceGroupProperties * pPhysicalDeviceGroupProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5800 {
5801 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5802 return static_cast<Result>( d.vkEnumeratePhysicalDeviceGroups( static_cast<VkInstance>( m_instance ),
5803 pPhysicalDeviceGroupCount,
5804 reinterpret_cast<VkPhysicalDeviceGroupProperties *>( pPhysicalDeviceGroupProperties ) ) );
5805 }
5806
5807 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5808 // wrapper function for command vkEnumeratePhysicalDeviceGroups, see
5809 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroups.html
5810 template <typename PhysicalDeviceGroupPropertiesAllocator,
5811 typename Dispatch,
5812 typename std::enable_if<std::is_same<typename PhysicalDeviceGroupPropertiesAllocator::value_type, PhysicalDeviceGroupProperties>::value, int>::type,
5813 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceGroups ), bool>::type>
5814 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator>>::type
5815 Instance::enumeratePhysicalDeviceGroups( 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.vkEnumeratePhysicalDeviceGroups &&
5820 "Function <vkEnumeratePhysicalDeviceGroups> requires <VK_KHR_device_group_creation> or <VK_VERSION_1_1>" );
5821 # endif
5822
5823 std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator> physicalDeviceGroupProperties;
5824 uint32_t physicalDeviceGroupCount;
5825 Result result;
5826 do
5827 {
5828 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroups( m_instance, &physicalDeviceGroupCount, nullptr ) );
5829 if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount )
5830 {
5831 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
5832 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroups(
5833 m_instance, &physicalDeviceGroupCount, reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
5834 }
5835 } while ( result == Result::eIncomplete );
5836 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroups" );
5837 VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
5838 if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
5839 {
5840 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
5841 }
5842 return detail::createResultValueType( result, std::move( physicalDeviceGroupProperties ) );
5843 }
5844
5845 // wrapper function for command vkEnumeratePhysicalDeviceGroups, see
5846 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroups.html
5847 template <typename PhysicalDeviceGroupPropertiesAllocator,
5848 typename Dispatch,
5849 typename std::enable_if<std::is_same<typename PhysicalDeviceGroupPropertiesAllocator::value_type, PhysicalDeviceGroupProperties>::value, int>::type,
5850 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceGroups ), bool>::type>
5851 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator>>::type
5852 Instance::enumeratePhysicalDeviceGroups( PhysicalDeviceGroupPropertiesAllocator const & physicalDeviceGroupPropertiesAllocator, Dispatch const & d ) const
5853 {
5854 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5855 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5856 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceGroups &&
5857 "Function <vkEnumeratePhysicalDeviceGroups> requires <VK_KHR_device_group_creation> or <VK_VERSION_1_1>" );
5858 # endif
5859
5860 std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator> physicalDeviceGroupProperties( physicalDeviceGroupPropertiesAllocator );
5861 uint32_t physicalDeviceGroupCount;
5862 Result result;
5863 do
5864 {
5865 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroups( m_instance, &physicalDeviceGroupCount, nullptr ) );
5866 if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount )
5867 {
5868 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
5869 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroups(
5870 m_instance, &physicalDeviceGroupCount, reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
5871 }
5872 } while ( result == Result::eIncomplete );
5873 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroups" );
5874 VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
5875 if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
5876 {
5877 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
5878 }
5879 return detail::createResultValueType( result, std::move( physicalDeviceGroupProperties ) );
5880 }
5881 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5882
5883 // wrapper function for command vkGetImageMemoryRequirements2, see
5884 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2.html
5885 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements2 ), bool>::type>
5886 VULKAN_HPP_INLINE void Device::getImageMemoryRequirements2(
5887 ImageMemoryRequirementsInfo2 const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5888 {
5889 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5890 d.vkGetImageMemoryRequirements2( static_cast<VkDevice>( m_device ),
5891 reinterpret_cast<VkImageMemoryRequirementsInfo2 const *>( pInfo ),
5892 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
5893 }
5894
5895 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5896 // wrapper function for command vkGetImageMemoryRequirements2, see
5897 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2.html
5898 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements2 ), bool>::type>
5899 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getImageMemoryRequirements2( ImageMemoryRequirementsInfo2 const & info,
5900 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5901 {
5902 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5903 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5904 VULKAN_HPP_ASSERT( d.vkGetImageMemoryRequirements2 &&
5905 "Function <vkGetImageMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
5906 # endif
5907
5908 MemoryRequirements2 memoryRequirements;
5909 d.vkGetImageMemoryRequirements2(
5910 m_device, reinterpret_cast<VkImageMemoryRequirementsInfo2 const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
5911
5912 return memoryRequirements;
5913 }
5914
5915 // wrapper function for command vkGetImageMemoryRequirements2, see
5916 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2.html
5917 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements2 ), bool>::type>
5918 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageMemoryRequirements2( ImageMemoryRequirementsInfo2 const & info,
5919 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5920 {
5921 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5922 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5923 VULKAN_HPP_ASSERT( d.vkGetImageMemoryRequirements2 &&
5924 "Function <vkGetImageMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
5925 # endif
5926
5927 StructureChain<X, Y, Z...> structureChain;
5928 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
5929 d.vkGetImageMemoryRequirements2(
5930 m_device, reinterpret_cast<VkImageMemoryRequirementsInfo2 const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
5931
5932 return structureChain;
5933 }
5934 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5935
5936 // wrapper function for command vkGetBufferMemoryRequirements2, see
5937 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2.html
5938 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements2 ), bool>::type>
5939 VULKAN_HPP_INLINE void Device::getBufferMemoryRequirements2(
5940 BufferMemoryRequirementsInfo2 const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5941 {
5942 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5943 d.vkGetBufferMemoryRequirements2( static_cast<VkDevice>( m_device ),
5944 reinterpret_cast<VkBufferMemoryRequirementsInfo2 const *>( pInfo ),
5945 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
5946 }
5947
5948 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5949 // wrapper function for command vkGetBufferMemoryRequirements2, see
5950 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2.html
5951 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements2 ), bool>::type>
5952 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getBufferMemoryRequirements2( BufferMemoryRequirementsInfo2 const & info,
5953 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5954 {
5955 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5956 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5957 VULKAN_HPP_ASSERT( d.vkGetBufferMemoryRequirements2 &&
5958 "Function <vkGetBufferMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
5959 # endif
5960
5961 MemoryRequirements2 memoryRequirements;
5962 d.vkGetBufferMemoryRequirements2(
5963 m_device, reinterpret_cast<VkBufferMemoryRequirementsInfo2 const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
5964
5965 return memoryRequirements;
5966 }
5967
5968 // wrapper function for command vkGetBufferMemoryRequirements2, see
5969 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2.html
5970 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements2 ), bool>::type>
5971 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getBufferMemoryRequirements2( BufferMemoryRequirementsInfo2 const & info,
5972 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5973 {
5974 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5975 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5976 VULKAN_HPP_ASSERT( d.vkGetBufferMemoryRequirements2 &&
5977 "Function <vkGetBufferMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
5978 # endif
5979
5980 StructureChain<X, Y, Z...> structureChain;
5981 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
5982 d.vkGetBufferMemoryRequirements2(
5983 m_device, reinterpret_cast<VkBufferMemoryRequirementsInfo2 const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
5984
5985 return structureChain;
5986 }
5987 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5988
5989 // wrapper function for command vkGetImageSparseMemoryRequirements2, see
5990 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2.html
5991 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements2 ), bool>::type>
5992 VULKAN_HPP_INLINE void Device::getImageSparseMemoryRequirements2( ImageSparseMemoryRequirementsInfo2 const * pInfo,
5993 uint32_t * pSparseMemoryRequirementCount,
5994 SparseImageMemoryRequirements2 * pSparseMemoryRequirements,
5995 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5996 {
5997 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5998 d.vkGetImageSparseMemoryRequirements2( static_cast<VkDevice>( m_device ),
5999 reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( pInfo ),
6000 pSparseMemoryRequirementCount,
6001 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( pSparseMemoryRequirements ) );
6002 }
6003
6004 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6005 // wrapper function for command vkGetImageSparseMemoryRequirements2, see
6006 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2.html
6007 template <
6008 typename SparseImageMemoryRequirements2Allocator,
6009 typename Dispatch,
6010 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
6011 typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements2 ), bool>::type>
6012 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
6013 Device::getImageSparseMemoryRequirements2( ImageSparseMemoryRequirementsInfo2 const & info, Dispatch const & d ) const
6014 {
6015 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6016 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6017 VULKAN_HPP_ASSERT( d.vkGetImageSparseMemoryRequirements2 &&
6018 "Function <vkGetImageSparseMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
6019 # endif
6020
6021 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements;
6022 uint32_t sparseMemoryRequirementCount;
6023 d.vkGetImageSparseMemoryRequirements2(
6024 m_device, reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( &info ), &sparseMemoryRequirementCount, nullptr );
6025 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
6026 d.vkGetImageSparseMemoryRequirements2( m_device,
6027 reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( &info ),
6028 &sparseMemoryRequirementCount,
6029 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
6030
6031 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
6032 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
6033 {
6034 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
6035 }
6036 return sparseMemoryRequirements;
6037 }
6038
6039 // wrapper function for command vkGetImageSparseMemoryRequirements2, see
6040 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2.html
6041 template <
6042 typename SparseImageMemoryRequirements2Allocator,
6043 typename Dispatch,
6044 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
6045 typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements2 ), bool>::type>
6046 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
6047 Device::getImageSparseMemoryRequirements2( ImageSparseMemoryRequirementsInfo2 const & info,
6048 SparseImageMemoryRequirements2Allocator const & sparseImageMemoryRequirements2Allocator,
6049 Dispatch const & d ) const
6050 {
6051 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6052 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6053 VULKAN_HPP_ASSERT( d.vkGetImageSparseMemoryRequirements2 &&
6054 "Function <vkGetImageSparseMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
6055 # endif
6056
6057 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements( sparseImageMemoryRequirements2Allocator );
6058 uint32_t sparseMemoryRequirementCount;
6059 d.vkGetImageSparseMemoryRequirements2(
6060 m_device, reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( &info ), &sparseMemoryRequirementCount, nullptr );
6061 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
6062 d.vkGetImageSparseMemoryRequirements2( m_device,
6063 reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( &info ),
6064 &sparseMemoryRequirementCount,
6065 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
6066
6067 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
6068 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
6069 {
6070 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
6071 }
6072 return sparseMemoryRequirements;
6073 }
6074 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6075
6076 // wrapper function for command vkGetPhysicalDeviceFeatures2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2.html
6077 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures2 ), bool>::type>
6078 VULKAN_HPP_INLINE void PhysicalDevice::getFeatures2( PhysicalDeviceFeatures2 * pFeatures, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6079 {
6080 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6081 d.vkGetPhysicalDeviceFeatures2( static_cast<VkPhysicalDevice>( m_physicalDevice ), reinterpret_cast<VkPhysicalDeviceFeatures2 *>( pFeatures ) );
6082 }
6083
6084 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6085 // wrapper function for command vkGetPhysicalDeviceFeatures2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2.html
6086 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures2 ), bool>::type>
6087 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceFeatures2 PhysicalDevice::getFeatures2( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6088 {
6089 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6090 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6091 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFeatures2 &&
6092 "Function <vkGetPhysicalDeviceFeatures2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6093 # endif
6094
6095 PhysicalDeviceFeatures2 features;
6096 d.vkGetPhysicalDeviceFeatures2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
6097
6098 return features;
6099 }
6100
6101 // wrapper function for command vkGetPhysicalDeviceFeatures2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2.html
6102 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures2 ), bool>::type>
6103 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFeatures2( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6104 {
6105 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6106 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6107 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFeatures2 &&
6108 "Function <vkGetPhysicalDeviceFeatures2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6109 # endif
6110
6111 StructureChain<X, Y, Z...> structureChain;
6112 PhysicalDeviceFeatures2 & features = structureChain.template get<PhysicalDeviceFeatures2>();
6113 d.vkGetPhysicalDeviceFeatures2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
6114
6115 return structureChain;
6116 }
6117 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6118
6119 // wrapper function for command vkGetPhysicalDeviceProperties2, see
6120 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html
6121 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties2 ), bool>::type>
6122 VULKAN_HPP_INLINE void PhysicalDevice::getProperties2( PhysicalDeviceProperties2 * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6123 {
6124 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6125 d.vkGetPhysicalDeviceProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ), reinterpret_cast<VkPhysicalDeviceProperties2 *>( pProperties ) );
6126 }
6127
6128 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6129 // wrapper function for command vkGetPhysicalDeviceProperties2, see
6130 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html
6131 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties2 ), bool>::type>
6132 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceProperties2 PhysicalDevice::getProperties2( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6133 {
6134 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6135 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6136 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceProperties2 &&
6137 "Function <vkGetPhysicalDeviceProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6138 # endif
6139
6140 PhysicalDeviceProperties2 properties;
6141 d.vkGetPhysicalDeviceProperties2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
6142
6143 return properties;
6144 }
6145
6146 // wrapper function for command vkGetPhysicalDeviceProperties2, see
6147 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html
6148 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties2 ), bool>::type>
6149 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getProperties2( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6150 {
6151 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6152 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6153 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceProperties2 &&
6154 "Function <vkGetPhysicalDeviceProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6155 # endif
6156
6157 StructureChain<X, Y, Z...> structureChain;
6158 PhysicalDeviceProperties2 & properties = structureChain.template get<PhysicalDeviceProperties2>();
6159 d.vkGetPhysicalDeviceProperties2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
6160
6161 return structureChain;
6162 }
6163 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6164
6165 // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see
6166 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html
6167 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties2 ), bool>::type>
6168 VULKAN_HPP_INLINE void PhysicalDevice::getFormatProperties2( Format format, FormatProperties2 * pFormatProperties, Dispatch const & d )
6169 const VULKAN_HPP_NOEXCEPT
6170 {
6171 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6172 d.vkGetPhysicalDeviceFormatProperties2(
6173 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( pFormatProperties ) );
6174 }
6175
6176 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6177 // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see
6178 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html
6179 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties2 ), bool>::type>
6180 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE FormatProperties2 PhysicalDevice::getFormatProperties2( Format format, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6181 {
6182 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6183 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6184 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFormatProperties2 &&
6185 "Function <vkGetPhysicalDeviceFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6186 # endif
6187
6188 FormatProperties2 formatProperties;
6189 d.vkGetPhysicalDeviceFormatProperties2( m_physicalDevice, static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
6190
6191 return formatProperties;
6192 }
6193
6194 // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see
6195 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html
6196 template <typename X,
6197 typename Y,
6198 typename... Z,
6199 typename Dispatch,
6200 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties2 ), bool>::type>
6201 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFormatProperties2( Format format, Dispatch const & d )
6202 const VULKAN_HPP_NOEXCEPT
6203 {
6204 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6205 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6206 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFormatProperties2 &&
6207 "Function <vkGetPhysicalDeviceFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6208 # endif
6209
6210 StructureChain<X, Y, Z...> structureChain;
6211 FormatProperties2 & formatProperties = structureChain.template get<FormatProperties2>();
6212 d.vkGetPhysicalDeviceFormatProperties2( m_physicalDevice, static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
6213
6214 return structureChain;
6215 }
6216 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6217
6218 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see
6219 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html
6220 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties2 ), bool>::type>
6221 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getImageFormatProperties2(
6222 PhysicalDeviceImageFormatInfo2 const * pImageFormatInfo, ImageFormatProperties2 * pImageFormatProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6223 {
6224 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6225 return static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
6226 reinterpret_cast<VkPhysicalDeviceImageFormatInfo2 const *>( pImageFormatInfo ),
6227 reinterpret_cast<VkImageFormatProperties2 *>( pImageFormatProperties ) ) );
6228 }
6229
6230 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6231 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see
6232 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html
6233 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties2 ), bool>::type>
6234 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageFormatProperties2>::type PhysicalDevice::getImageFormatProperties2(
6235 PhysicalDeviceImageFormatInfo2 const & imageFormatInfo, Dispatch const & d ) const
6236 {
6237 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6238 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6239 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceImageFormatProperties2 &&
6240 "Function <vkGetPhysicalDeviceImageFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6241 # endif
6242
6243 ImageFormatProperties2 imageFormatProperties;
6244 Result result =
6245 static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2( m_physicalDevice,
6246 reinterpret_cast<VkPhysicalDeviceImageFormatInfo2 const *>( &imageFormatInfo ),
6247 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) );
6248 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" );
6249
6250 return detail::createResultValueType( result, std::move( imageFormatProperties ) );
6251 }
6252
6253 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see
6254 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html
6255 template <typename X,
6256 typename Y,
6257 typename... Z,
6258 typename Dispatch,
6259 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties2 ), bool>::type>
6260 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type PhysicalDevice::getImageFormatProperties2(
6261 PhysicalDeviceImageFormatInfo2 const & imageFormatInfo, Dispatch const & d ) const
6262 {
6263 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6264 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6265 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceImageFormatProperties2 &&
6266 "Function <vkGetPhysicalDeviceImageFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6267 # endif
6268
6269 StructureChain<X, Y, Z...> structureChain;
6270 ImageFormatProperties2 & imageFormatProperties = structureChain.template get<ImageFormatProperties2>();
6271 Result result =
6272 static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2( m_physicalDevice,
6273 reinterpret_cast<VkPhysicalDeviceImageFormatInfo2 const *>( &imageFormatInfo ),
6274 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) );
6275 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" );
6276
6277 return detail::createResultValueType( result, std::move( structureChain ) );
6278 }
6279 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6280
6281 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
6282 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
6283 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2 ), bool>::type>
6284 VULKAN_HPP_INLINE void PhysicalDevice::getQueueFamilyProperties2(
6285 uint32_t * pQueueFamilyPropertyCount, QueueFamilyProperties2 * pQueueFamilyProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6286 {
6287 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6288 d.vkGetPhysicalDeviceQueueFamilyProperties2(
6289 static_cast<VkPhysicalDevice>( m_physicalDevice ), pQueueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( pQueueFamilyProperties ) );
6290 }
6291
6292 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6293 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
6294 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
6295 template <typename QueueFamilyProperties2Allocator,
6296 typename Dispatch,
6297 typename std::enable_if<std::is_same<typename QueueFamilyProperties2Allocator::value_type, QueueFamilyProperties2>::value, int>::type,
6298 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2 ), bool>::type>
6299 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator> PhysicalDevice::getQueueFamilyProperties2(
6300 Dispatch const & d ) const
6301 {
6302 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6303 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6304 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2 &&
6305 "Function <vkGetPhysicalDeviceQueueFamilyProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6306 # endif
6307
6308 std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator> queueFamilyProperties;
6309 uint32_t queueFamilyPropertyCount;
6310 d.vkGetPhysicalDeviceQueueFamilyProperties2( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
6311 queueFamilyProperties.resize( queueFamilyPropertyCount );
6312 d.vkGetPhysicalDeviceQueueFamilyProperties2(
6313 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
6314
6315 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
6316 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
6317 {
6318 queueFamilyProperties.resize( queueFamilyPropertyCount );
6319 }
6320 return queueFamilyProperties;
6321 }
6322
6323 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
6324 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
6325 template <typename QueueFamilyProperties2Allocator,
6326 typename Dispatch,
6327 typename std::enable_if<std::is_same<typename QueueFamilyProperties2Allocator::value_type, QueueFamilyProperties2>::value, int>::type,
6328 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2 ), bool>::type>
6329 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator> PhysicalDevice::getQueueFamilyProperties2(
6330 QueueFamilyProperties2Allocator const & queueFamilyProperties2Allocator, Dispatch const & d ) const
6331 {
6332 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6333 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6334 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2 &&
6335 "Function <vkGetPhysicalDeviceQueueFamilyProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6336 # endif
6337
6338 std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator> queueFamilyProperties( queueFamilyProperties2Allocator );
6339 uint32_t queueFamilyPropertyCount;
6340 d.vkGetPhysicalDeviceQueueFamilyProperties2( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
6341 queueFamilyProperties.resize( queueFamilyPropertyCount );
6342 d.vkGetPhysicalDeviceQueueFamilyProperties2(
6343 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
6344
6345 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
6346 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
6347 {
6348 queueFamilyProperties.resize( queueFamilyPropertyCount );
6349 }
6350 return queueFamilyProperties;
6351 }
6352
6353 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
6354 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
6355 template <typename StructureChain,
6356 typename StructureChainAllocator,
6357 typename Dispatch,
6358 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
6359 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2 ), bool>::type>
6360 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<StructureChain, StructureChainAllocator> PhysicalDevice::getQueueFamilyProperties2( Dispatch const & d )
6361 const
6362 {
6363 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6364 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6365 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2 &&
6366 "Function <vkGetPhysicalDeviceQueueFamilyProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6367 # endif
6368
6369 std::vector<StructureChain, StructureChainAllocator> structureChains;
6370 std::vector<QueueFamilyProperties2> queueFamilyProperties;
6371 uint32_t queueFamilyPropertyCount;
6372 d.vkGetPhysicalDeviceQueueFamilyProperties2( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
6373 structureChains.resize( queueFamilyPropertyCount );
6374 queueFamilyProperties.resize( queueFamilyPropertyCount );
6375 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
6376 {
6377 queueFamilyProperties[i].pNext = structureChains[i].template get<QueueFamilyProperties2>().pNext;
6378 }
6379 d.vkGetPhysicalDeviceQueueFamilyProperties2(
6380 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
6381
6382 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
6383 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
6384 {
6385 structureChains.resize( queueFamilyPropertyCount );
6386 }
6387 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
6388 {
6389 structureChains[i].template get<QueueFamilyProperties2>() = queueFamilyProperties[i];
6390 }
6391 return structureChains;
6392 }
6393
6394 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
6395 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
6396 template <typename StructureChain,
6397 typename StructureChainAllocator,
6398 typename Dispatch,
6399 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
6400 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2 ), bool>::type>
6401 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<StructureChain, StructureChainAllocator> PhysicalDevice::getQueueFamilyProperties2(
6402 StructureChainAllocator const & structureChainAllocator, Dispatch const & d ) const
6403 {
6404 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6405 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6406 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2 &&
6407 "Function <vkGetPhysicalDeviceQueueFamilyProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6408 # endif
6409
6410 std::vector<StructureChain, StructureChainAllocator> structureChains( structureChainAllocator );
6411 std::vector<QueueFamilyProperties2> queueFamilyProperties;
6412 uint32_t queueFamilyPropertyCount;
6413 d.vkGetPhysicalDeviceQueueFamilyProperties2( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
6414 structureChains.resize( queueFamilyPropertyCount );
6415 queueFamilyProperties.resize( queueFamilyPropertyCount );
6416 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
6417 {
6418 queueFamilyProperties[i].pNext = structureChains[i].template get<QueueFamilyProperties2>().pNext;
6419 }
6420 d.vkGetPhysicalDeviceQueueFamilyProperties2(
6421 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
6422
6423 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
6424 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
6425 {
6426 structureChains.resize( queueFamilyPropertyCount );
6427 }
6428 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
6429 {
6430 structureChains[i].template get<QueueFamilyProperties2>() = queueFamilyProperties[i];
6431 }
6432 return structureChains;
6433 }
6434 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6435
6436 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2, see
6437 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2.html
6438 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties2 ), bool>::type>
6439 VULKAN_HPP_INLINE void PhysicalDevice::getMemoryProperties2( PhysicalDeviceMemoryProperties2 * pMemoryProperties, Dispatch const & d )
6440 const VULKAN_HPP_NOEXCEPT
6441 {
6442 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6443 d.vkGetPhysicalDeviceMemoryProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
6444 reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( pMemoryProperties ) );
6445 }
6446
6447 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6448 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2, see
6449 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2.html
6450 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties2 ), bool>::type>
6451 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceMemoryProperties2 PhysicalDevice::getMemoryProperties2( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6452 {
6453 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6454 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6455 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceMemoryProperties2 &&
6456 "Function <vkGetPhysicalDeviceMemoryProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6457 # endif
6458
6459 PhysicalDeviceMemoryProperties2 memoryProperties;
6460 d.vkGetPhysicalDeviceMemoryProperties2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
6461
6462 return memoryProperties;
6463 }
6464
6465 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2, see
6466 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2.html
6467 template <typename X,
6468 typename Y,
6469 typename... Z,
6470 typename Dispatch,
6471 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties2 ), bool>::type>
6472 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getMemoryProperties2( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6473 {
6474 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6475 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6476 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceMemoryProperties2 &&
6477 "Function <vkGetPhysicalDeviceMemoryProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6478 # endif
6479
6480 StructureChain<X, Y, Z...> structureChain;
6481 PhysicalDeviceMemoryProperties2 & memoryProperties = structureChain.template get<PhysicalDeviceMemoryProperties2>();
6482 d.vkGetPhysicalDeviceMemoryProperties2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
6483
6484 return structureChain;
6485 }
6486 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6487
6488 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2, see
6489 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2.html
6490 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties2 ), bool>::type>
6491 VULKAN_HPP_INLINE void PhysicalDevice::getSparseImageFormatProperties2(
6492 PhysicalDeviceSparseImageFormatInfo2 const * pFormatInfo, uint32_t * pPropertyCount, SparseImageFormatProperties2 * pProperties, Dispatch const & d )
6493 const VULKAN_HPP_NOEXCEPT
6494 {
6495 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6496 d.vkGetPhysicalDeviceSparseImageFormatProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
6497 reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( pFormatInfo ),
6498 pPropertyCount,
6499 reinterpret_cast<VkSparseImageFormatProperties2 *>( pProperties ) );
6500 }
6501
6502 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6503 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2, see
6504 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2.html
6505 template <typename SparseImageFormatProperties2Allocator,
6506 typename Dispatch,
6507 typename std::enable_if<std::is_same<typename SparseImageFormatProperties2Allocator::value_type, SparseImageFormatProperties2>::value, int>::type,
6508 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties2 ), bool>::type>
6509 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator>
6510 PhysicalDevice::getSparseImageFormatProperties2( PhysicalDeviceSparseImageFormatInfo2 const & formatInfo, Dispatch const & d ) const
6511 {
6512 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6513 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6514 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSparseImageFormatProperties2 &&
6515 "Function <vkGetPhysicalDeviceSparseImageFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6516 # endif
6517
6518 std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator> properties;
6519 uint32_t propertyCount;
6520 d.vkGetPhysicalDeviceSparseImageFormatProperties2(
6521 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( &formatInfo ), &propertyCount, nullptr );
6522 properties.resize( propertyCount );
6523 d.vkGetPhysicalDeviceSparseImageFormatProperties2( m_physicalDevice,
6524 reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( &formatInfo ),
6525 &propertyCount,
6526 reinterpret_cast<VkSparseImageFormatProperties2 *>( properties.data() ) );
6527
6528 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
6529 if ( propertyCount < properties.size() )
6530 {
6531 properties.resize( propertyCount );
6532 }
6533 return properties;
6534 }
6535
6536 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2, see
6537 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2.html
6538 template <typename SparseImageFormatProperties2Allocator,
6539 typename Dispatch,
6540 typename std::enable_if<std::is_same<typename SparseImageFormatProperties2Allocator::value_type, SparseImageFormatProperties2>::value, int>::type,
6541 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties2 ), bool>::type>
6542 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator>
6543 PhysicalDevice::getSparseImageFormatProperties2( PhysicalDeviceSparseImageFormatInfo2 const & formatInfo,
6544 SparseImageFormatProperties2Allocator const & sparseImageFormatProperties2Allocator,
6545 Dispatch const & d ) const
6546 {
6547 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6548 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6549 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSparseImageFormatProperties2 &&
6550 "Function <vkGetPhysicalDeviceSparseImageFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6551 # endif
6552
6553 std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator> properties( sparseImageFormatProperties2Allocator );
6554 uint32_t propertyCount;
6555 d.vkGetPhysicalDeviceSparseImageFormatProperties2(
6556 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( &formatInfo ), &propertyCount, nullptr );
6557 properties.resize( propertyCount );
6558 d.vkGetPhysicalDeviceSparseImageFormatProperties2( m_physicalDevice,
6559 reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( &formatInfo ),
6560 &propertyCount,
6561 reinterpret_cast<VkSparseImageFormatProperties2 *>( properties.data() ) );
6562
6563 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
6564 if ( propertyCount < properties.size() )
6565 {
6566 properties.resize( propertyCount );
6567 }
6568 return properties;
6569 }
6570 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6571
6572 // wrapper function for command vkTrimCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTrimCommandPool.html
6573 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkTrimCommandPool ), bool>::type>
6574 VULKAN_HPP_INLINE void Device::trimCommandPool( CommandPool commandPool, CommandPoolTrimFlags flags, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6575 {
6576 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6577 d.vkTrimCommandPool( static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( commandPool ), static_cast<VkCommandPoolTrimFlags>( flags ) );
6578 }
6579
6580 // wrapper function for command vkGetDeviceQueue2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceQueue2.html
6581 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceQueue2 ), bool>::type>
6582 VULKAN_HPP_INLINE void Device::getQueue2( DeviceQueueInfo2 const * pQueueInfo, Queue * pQueue, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6583 {
6584 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6585 d.vkGetDeviceQueue2( static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceQueueInfo2 const *>( pQueueInfo ), reinterpret_cast<VkQueue *>( pQueue ) );
6586 }
6587
6588 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6589 // wrapper function for command vkGetDeviceQueue2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceQueue2.html
6590 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceQueue2 ), bool>::type>
6591 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Queue Device::getQueue2( DeviceQueueInfo2 const & queueInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6592 {
6593 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6594 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6595 VULKAN_HPP_ASSERT( d.vkGetDeviceQueue2 && "Function <vkGetDeviceQueue2> requires <VK_VERSION_1_1>" );
6596 # endif
6597
6598 Queue queue;
6599 d.vkGetDeviceQueue2( m_device, reinterpret_cast<VkDeviceQueueInfo2 const *>( &queueInfo ), reinterpret_cast<VkQueue *>( &queue ) );
6600
6601 return queue;
6602 }
6603 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6604
6605 // wrapper function for command vkGetPhysicalDeviceExternalBufferProperties, see
6606 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalBufferProperties.html
6607 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalBufferProperties ), bool>::type>
6608 VULKAN_HPP_INLINE void PhysicalDevice::getExternalBufferProperties(
6609 PhysicalDeviceExternalBufferInfo const * pExternalBufferInfo, ExternalBufferProperties * pExternalBufferProperties, Dispatch const & d )
6610 const VULKAN_HPP_NOEXCEPT
6611 {
6612 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6613 d.vkGetPhysicalDeviceExternalBufferProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
6614 reinterpret_cast<VkPhysicalDeviceExternalBufferInfo const *>( pExternalBufferInfo ),
6615 reinterpret_cast<VkExternalBufferProperties *>( pExternalBufferProperties ) );
6616 }
6617
6618 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6619 // wrapper function for command vkGetPhysicalDeviceExternalBufferProperties, see
6620 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalBufferProperties.html
6621 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalBufferProperties ), bool>::type>
6622 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalBufferProperties PhysicalDevice::getExternalBufferProperties(
6623 PhysicalDeviceExternalBufferInfo const & externalBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6624 {
6625 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6626 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6627 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalBufferProperties &&
6628 "Function <vkGetPhysicalDeviceExternalBufferProperties> requires <VK_KHR_external_memory_capabilities> or <VK_VERSION_1_1>" );
6629 # endif
6630
6631 ExternalBufferProperties externalBufferProperties;
6632 d.vkGetPhysicalDeviceExternalBufferProperties( m_physicalDevice,
6633 reinterpret_cast<VkPhysicalDeviceExternalBufferInfo const *>( &externalBufferInfo ),
6634 reinterpret_cast<VkExternalBufferProperties *>( &externalBufferProperties ) );
6635
6636 return externalBufferProperties;
6637 }
6638 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6639
6640 // wrapper function for command vkGetPhysicalDeviceExternalFenceProperties, see
6641 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalFenceProperties.html
6642 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalFenceProperties ), bool>::type>
6643 VULKAN_HPP_INLINE void PhysicalDevice::getExternalFenceProperties(
6644 PhysicalDeviceExternalFenceInfo const * pExternalFenceInfo, ExternalFenceProperties * pExternalFenceProperties, Dispatch const & d )
6645 const VULKAN_HPP_NOEXCEPT
6646 {
6647 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6648 d.vkGetPhysicalDeviceExternalFenceProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
6649 reinterpret_cast<VkPhysicalDeviceExternalFenceInfo const *>( pExternalFenceInfo ),
6650 reinterpret_cast<VkExternalFenceProperties *>( pExternalFenceProperties ) );
6651 }
6652
6653 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6654 // wrapper function for command vkGetPhysicalDeviceExternalFenceProperties, see
6655 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalFenceProperties.html
6656 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalFenceProperties ), bool>::type>
6657 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalFenceProperties PhysicalDevice::getExternalFenceProperties(
6658 PhysicalDeviceExternalFenceInfo const & externalFenceInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6659 {
6660 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6661 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6662 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalFenceProperties &&
6663 "Function <vkGetPhysicalDeviceExternalFenceProperties> requires <VK_KHR_external_fence_capabilities> or <VK_VERSION_1_1>" );
6664 # endif
6665
6666 ExternalFenceProperties externalFenceProperties;
6667 d.vkGetPhysicalDeviceExternalFenceProperties( m_physicalDevice,
6668 reinterpret_cast<VkPhysicalDeviceExternalFenceInfo const *>( &externalFenceInfo ),
6669 reinterpret_cast<VkExternalFenceProperties *>( &externalFenceProperties ) );
6670
6671 return externalFenceProperties;
6672 }
6673 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6674
6675 // wrapper function for command vkGetPhysicalDeviceExternalSemaphoreProperties, see
6676 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalSemaphoreProperties.html
6677 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalSemaphoreProperties ), bool>::type>
6678 VULKAN_HPP_INLINE void PhysicalDevice::getExternalSemaphoreProperties(
6679 PhysicalDeviceExternalSemaphoreInfo const * pExternalSemaphoreInfo, ExternalSemaphoreProperties * pExternalSemaphoreProperties, Dispatch const & d )
6680 const VULKAN_HPP_NOEXCEPT
6681 {
6682 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6683 d.vkGetPhysicalDeviceExternalSemaphoreProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
6684 reinterpret_cast<VkPhysicalDeviceExternalSemaphoreInfo const *>( pExternalSemaphoreInfo ),
6685 reinterpret_cast<VkExternalSemaphoreProperties *>( pExternalSemaphoreProperties ) );
6686 }
6687
6688 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6689 // wrapper function for command vkGetPhysicalDeviceExternalSemaphoreProperties, see
6690 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalSemaphoreProperties.html
6691 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalSemaphoreProperties ), bool>::type>
6692 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalSemaphoreProperties PhysicalDevice::getExternalSemaphoreProperties(
6693 PhysicalDeviceExternalSemaphoreInfo const & externalSemaphoreInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6694 {
6695 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6696 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6697 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalSemaphoreProperties &&
6698 "Function <vkGetPhysicalDeviceExternalSemaphoreProperties> requires <VK_KHR_external_semaphore_capabilities> or <VK_VERSION_1_1>" );
6699 # endif
6700
6701 ExternalSemaphoreProperties externalSemaphoreProperties;
6702 d.vkGetPhysicalDeviceExternalSemaphoreProperties( m_physicalDevice,
6703 reinterpret_cast<VkPhysicalDeviceExternalSemaphoreInfo const *>( &externalSemaphoreInfo ),
6704 reinterpret_cast<VkExternalSemaphoreProperties *>( &externalSemaphoreProperties ) );
6705
6706 return externalSemaphoreProperties;
6707 }
6708 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6709
6710 // wrapper function for command vkCmdDispatchBase, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchBase.html
6711 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchBase ), bool>::type>
6712 VULKAN_HPP_INLINE void CommandBuffer::dispatchBase(
6713 uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ, Dispatch const & d )
6714 const VULKAN_HPP_NOEXCEPT
6715 {
6716 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6717 d.vkCmdDispatchBase( static_cast<VkCommandBuffer>( m_commandBuffer ), baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ );
6718 }
6719
6720 // wrapper function for command vkCreateDescriptorUpdateTemplate, see
6721 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplate.html
6722 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorUpdateTemplate ), bool>::type>
6723 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDescriptorUpdateTemplate( DescriptorUpdateTemplateCreateInfo const * pCreateInfo,
6724 AllocationCallbacks const * pAllocator,
6725 DescriptorUpdateTemplate * pDescriptorUpdateTemplate,
6726 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6727 {
6728 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6729 return static_cast<Result>( d.vkCreateDescriptorUpdateTemplate( static_cast<VkDevice>( m_device ),
6730 reinterpret_cast<VkDescriptorUpdateTemplateCreateInfo const *>( pCreateInfo ),
6731 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
6732 reinterpret_cast<VkDescriptorUpdateTemplate *>( pDescriptorUpdateTemplate ) ) );
6733 }
6734
6735 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6736 // wrapper function for command vkCreateDescriptorUpdateTemplate, see
6737 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplate.html
6738 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorUpdateTemplate ), bool>::type>
6739 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DescriptorUpdateTemplate>::type Device::createDescriptorUpdateTemplate(
6740 DescriptorUpdateTemplateCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
6741 {
6742 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6743 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6744 VULKAN_HPP_ASSERT( d.vkCreateDescriptorUpdateTemplate &&
6745 "Function <vkCreateDescriptorUpdateTemplate> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
6746 # endif
6747
6748 DescriptorUpdateTemplate descriptorUpdateTemplate;
6749 Result result = static_cast<Result>( d.vkCreateDescriptorUpdateTemplate( m_device,
6750 reinterpret_cast<VkDescriptorUpdateTemplateCreateInfo const *>( &createInfo ),
6751 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
6752 reinterpret_cast<VkDescriptorUpdateTemplate *>( &descriptorUpdateTemplate ) ) );
6753 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorUpdateTemplate" );
6754
6755 return detail::createResultValueType( result, std::move( descriptorUpdateTemplate ) );
6756 }
6757
6758 # ifndef VULKAN_HPP_NO_SMART_HANDLE
6759 // wrapper function for command vkCreateDescriptorUpdateTemplate, see
6760 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplate.html
6761 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorUpdateTemplate ), bool>::type>
6762 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DescriptorUpdateTemplate, Dispatch>>::type
6763 Device::createDescriptorUpdateTemplateUnique(
6764 DescriptorUpdateTemplateCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
6765 {
6766 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6767 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6768 VULKAN_HPP_ASSERT( d.vkCreateDescriptorUpdateTemplate &&
6769 "Function <vkCreateDescriptorUpdateTemplate> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
6770 # endif
6771
6772 DescriptorUpdateTemplate descriptorUpdateTemplate;
6773 Result result = static_cast<Result>( d.vkCreateDescriptorUpdateTemplate( m_device,
6774 reinterpret_cast<VkDescriptorUpdateTemplateCreateInfo const *>( &createInfo ),
6775 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
6776 reinterpret_cast<VkDescriptorUpdateTemplate *>( &descriptorUpdateTemplate ) ) );
6777 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorUpdateTemplateUnique" );
6778
6779 return detail::createResultValueType(
6780 result, UniqueHandle<DescriptorUpdateTemplate, Dispatch>( descriptorUpdateTemplate, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
6781 }
6782 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
6783 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6784
6785 // wrapper function for command vkDestroyDescriptorUpdateTemplate, see
6786 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplate.html
6787 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorUpdateTemplate ), bool>::type>
6788 VULKAN_HPP_INLINE void Device::destroyDescriptorUpdateTemplate(
6789 DescriptorUpdateTemplate descriptorUpdateTemplate, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6790 {
6791 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6792 d.vkDestroyDescriptorUpdateTemplate( static_cast<VkDevice>( m_device ),
6793 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
6794 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
6795 }
6796
6797 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6798 // wrapper function for command vkDestroyDescriptorUpdateTemplate, see
6799 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplate.html
6800 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorUpdateTemplate ), bool>::type>
6801 VULKAN_HPP_INLINE void Device::destroyDescriptorUpdateTemplate(
6802 DescriptorUpdateTemplate descriptorUpdateTemplate, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6803 {
6804 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6805 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6806 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorUpdateTemplate &&
6807 "Function <vkDestroyDescriptorUpdateTemplate> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
6808 # endif
6809
6810 d.vkDestroyDescriptorUpdateTemplate(
6811 m_device, static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
6812 }
6813 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6814
6815 // wrapper function for command vkDestroyDescriptorUpdateTemplate, see
6816 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplate.html
6817 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorUpdateTemplate ), bool>::type>
6818 VULKAN_HPP_INLINE void Device::destroy( DescriptorUpdateTemplate descriptorUpdateTemplate, AllocationCallbacks const * pAllocator, Dispatch const & d )
6819 const VULKAN_HPP_NOEXCEPT
6820 {
6821 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6822 d.vkDestroyDescriptorUpdateTemplate( static_cast<VkDevice>( m_device ),
6823 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
6824 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
6825 }
6826
6827 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6828 // wrapper function for command vkDestroyDescriptorUpdateTemplate, see
6829 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplate.html
6830 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorUpdateTemplate ), bool>::type>
6831 VULKAN_HPP_INLINE void Device::destroy( DescriptorUpdateTemplate descriptorUpdateTemplate, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
6832 const VULKAN_HPP_NOEXCEPT
6833 {
6834 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6835 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6836 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorUpdateTemplate &&
6837 "Function <vkDestroyDescriptorUpdateTemplate> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
6838 # endif
6839
6840 d.vkDestroyDescriptorUpdateTemplate(
6841 m_device, static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
6842 }
6843 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6844
6845 // wrapper function for command vkUpdateDescriptorSetWithTemplate, see
6846 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSetWithTemplate.html
6847 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateDescriptorSetWithTemplate ), bool>::type>
6848 VULKAN_HPP_INLINE void Device::updateDescriptorSetWithTemplate(
6849 DescriptorSet descriptorSet, DescriptorUpdateTemplate descriptorUpdateTemplate, void const * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6850 {
6851 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6852 d.vkUpdateDescriptorSetWithTemplate( static_cast<VkDevice>( m_device ),
6853 static_cast<VkDescriptorSet>( descriptorSet ),
6854 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
6855 pData );
6856 }
6857
6858 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6859 // wrapper function for command vkUpdateDescriptorSetWithTemplate, see
6860 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSetWithTemplate.html
6861 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateDescriptorSetWithTemplate ), bool>::type>
6862 VULKAN_HPP_INLINE void Device::updateDescriptorSetWithTemplate(
6863 DescriptorSet descriptorSet, DescriptorUpdateTemplate descriptorUpdateTemplate, DataType const & data, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6864 {
6865 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6866 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6867 VULKAN_HPP_ASSERT( d.vkUpdateDescriptorSetWithTemplate &&
6868 "Function <vkUpdateDescriptorSetWithTemplate> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
6869 # endif
6870
6871 d.vkUpdateDescriptorSetWithTemplate( m_device,
6872 static_cast<VkDescriptorSet>( descriptorSet ),
6873 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
6874 reinterpret_cast<void const *>( &data ) );
6875 }
6876 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6877
6878 // wrapper function for command vkGetDescriptorSetLayoutSupport, see
6879 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupport.html
6880 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSupport ), bool>::type>
6881 VULKAN_HPP_INLINE void Device::getDescriptorSetLayoutSupport(
6882 DescriptorSetLayoutCreateInfo const * pCreateInfo, DescriptorSetLayoutSupport * pSupport, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6883 {
6884 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6885 d.vkGetDescriptorSetLayoutSupport( static_cast<VkDevice>( m_device ),
6886 reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( pCreateInfo ),
6887 reinterpret_cast<VkDescriptorSetLayoutSupport *>( pSupport ) );
6888 }
6889
6890 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6891 // wrapper function for command vkGetDescriptorSetLayoutSupport, see
6892 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupport.html
6893 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSupport ), bool>::type>
6894 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DescriptorSetLayoutSupport Device::getDescriptorSetLayoutSupport( DescriptorSetLayoutCreateInfo const & createInfo,
6895 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6896 {
6897 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6898 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6899 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutSupport && "Function <vkGetDescriptorSetLayoutSupport> requires <VK_KHR_maintenance3> or <VK_VERSION_1_1>" );
6900 # endif
6901
6902 DescriptorSetLayoutSupport support;
6903 d.vkGetDescriptorSetLayoutSupport(
6904 m_device, reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( &createInfo ), reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
6905
6906 return support;
6907 }
6908
6909 // wrapper function for command vkGetDescriptorSetLayoutSupport, see
6910 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupport.html
6911 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSupport ), bool>::type>
6912 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getDescriptorSetLayoutSupport( DescriptorSetLayoutCreateInfo const & createInfo,
6913 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6914 {
6915 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6916 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6917 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutSupport && "Function <vkGetDescriptorSetLayoutSupport> requires <VK_KHR_maintenance3> or <VK_VERSION_1_1>" );
6918 # endif
6919
6920 StructureChain<X, Y, Z...> structureChain;
6921 DescriptorSetLayoutSupport & support = structureChain.template get<DescriptorSetLayoutSupport>();
6922 d.vkGetDescriptorSetLayoutSupport(
6923 m_device, reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( &createInfo ), reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
6924
6925 return structureChain;
6926 }
6927 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6928
6929 // wrapper function for command vkCreateSamplerYcbcrConversion, see
6930 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversion.html
6931 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSamplerYcbcrConversion ), bool>::type>
6932 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createSamplerYcbcrConversion( SamplerYcbcrConversionCreateInfo const * pCreateInfo,
6933 AllocationCallbacks const * pAllocator,
6934 SamplerYcbcrConversion * pYcbcrConversion,
6935 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6936 {
6937 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6938 return static_cast<Result>( d.vkCreateSamplerYcbcrConversion( static_cast<VkDevice>( m_device ),
6939 reinterpret_cast<VkSamplerYcbcrConversionCreateInfo const *>( pCreateInfo ),
6940 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
6941 reinterpret_cast<VkSamplerYcbcrConversion *>( pYcbcrConversion ) ) );
6942 }
6943
6944 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6945 // wrapper function for command vkCreateSamplerYcbcrConversion, see
6946 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversion.html
6947 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSamplerYcbcrConversion ), bool>::type>
6948 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SamplerYcbcrConversion>::type Device::createSamplerYcbcrConversion(
6949 SamplerYcbcrConversionCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
6950 {
6951 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6952 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6953 VULKAN_HPP_ASSERT( d.vkCreateSamplerYcbcrConversion &&
6954 "Function <vkCreateSamplerYcbcrConversion> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
6955 # endif
6956
6957 SamplerYcbcrConversion ycbcrConversion;
6958 Result result = static_cast<Result>( d.vkCreateSamplerYcbcrConversion( m_device,
6959 reinterpret_cast<VkSamplerYcbcrConversionCreateInfo const *>( &createInfo ),
6960 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
6961 reinterpret_cast<VkSamplerYcbcrConversion *>( &ycbcrConversion ) ) );
6962 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerYcbcrConversion" );
6963
6964 return detail::createResultValueType( result, std::move( ycbcrConversion ) );
6965 }
6966
6967 # ifndef VULKAN_HPP_NO_SMART_HANDLE
6968 // wrapper function for command vkCreateSamplerYcbcrConversion, see
6969 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversion.html
6970 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSamplerYcbcrConversion ), bool>::type>
6971 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SamplerYcbcrConversion, Dispatch>>::type
6972 Device::createSamplerYcbcrConversionUnique(
6973 SamplerYcbcrConversionCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
6974 {
6975 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6976 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6977 VULKAN_HPP_ASSERT( d.vkCreateSamplerYcbcrConversion &&
6978 "Function <vkCreateSamplerYcbcrConversion> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
6979 # endif
6980
6981 SamplerYcbcrConversion ycbcrConversion;
6982 Result result = static_cast<Result>( d.vkCreateSamplerYcbcrConversion( m_device,
6983 reinterpret_cast<VkSamplerYcbcrConversionCreateInfo const *>( &createInfo ),
6984 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
6985 reinterpret_cast<VkSamplerYcbcrConversion *>( &ycbcrConversion ) ) );
6986 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerYcbcrConversionUnique" );
6987
6988 return detail::createResultValueType(
6989 result, UniqueHandle<SamplerYcbcrConversion, Dispatch>( ycbcrConversion, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
6990 }
6991 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
6992 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6993
6994 // wrapper function for command vkDestroySamplerYcbcrConversion, see
6995 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversion.html
6996 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySamplerYcbcrConversion ), bool>::type>
6997 VULKAN_HPP_INLINE void Device::destroySamplerYcbcrConversion(
6998 SamplerYcbcrConversion ycbcrConversion, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6999 {
7000 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7001 d.vkDestroySamplerYcbcrConversion( static_cast<VkDevice>( m_device ),
7002 static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ),
7003 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
7004 }
7005
7006 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7007 // wrapper function for command vkDestroySamplerYcbcrConversion, see
7008 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversion.html
7009 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySamplerYcbcrConversion ), bool>::type>
7010 VULKAN_HPP_INLINE void Device::destroySamplerYcbcrConversion(
7011 SamplerYcbcrConversion ycbcrConversion, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7012 {
7013 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7014 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7015 VULKAN_HPP_ASSERT( d.vkDestroySamplerYcbcrConversion &&
7016 "Function <vkDestroySamplerYcbcrConversion> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
7017 # endif
7018
7019 d.vkDestroySamplerYcbcrConversion(
7020 m_device, static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
7021 }
7022 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7023
7024 // wrapper function for command vkDestroySamplerYcbcrConversion, see
7025 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversion.html
7026 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySamplerYcbcrConversion ), bool>::type>
7027 VULKAN_HPP_INLINE void Device::destroy( SamplerYcbcrConversion ycbcrConversion, AllocationCallbacks const * pAllocator, Dispatch const & d )
7028 const VULKAN_HPP_NOEXCEPT
7029 {
7030 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7031 d.vkDestroySamplerYcbcrConversion( static_cast<VkDevice>( m_device ),
7032 static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ),
7033 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
7034 }
7035
7036 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7037 // wrapper function for command vkDestroySamplerYcbcrConversion, see
7038 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversion.html
7039 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySamplerYcbcrConversion ), bool>::type>
7040 VULKAN_HPP_INLINE void Device::destroy( SamplerYcbcrConversion ycbcrConversion, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
7041 const VULKAN_HPP_NOEXCEPT
7042 {
7043 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7044 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7045 VULKAN_HPP_ASSERT( d.vkDestroySamplerYcbcrConversion &&
7046 "Function <vkDestroySamplerYcbcrConversion> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
7047 # endif
7048
7049 d.vkDestroySamplerYcbcrConversion(
7050 m_device, static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
7051 }
7052 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7053
7054 //=== VK_VERSION_1_2 ===
7055
7056 // wrapper function for command vkResetQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetQueryPool.html
7057 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetQueryPool ), bool>::type>
7058 VULKAN_HPP_INLINE void Device::resetQueryPool( QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7059 {
7060 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7061 d.vkResetQueryPool( static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( queryPool ), firstQuery, queryCount );
7062 }
7063
7064 // wrapper function for command vkGetSemaphoreCounterValue, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValue.html
7065 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreCounterValue ), bool>::type>
7066 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSemaphoreCounterValue( Semaphore semaphore, uint64_t * pValue, Dispatch const & d )
7067 const VULKAN_HPP_NOEXCEPT
7068 {
7069 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7070 return static_cast<Result>( d.vkGetSemaphoreCounterValue( static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( semaphore ), pValue ) );
7071 }
7072
7073 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7074 // wrapper function for command vkGetSemaphoreCounterValue, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValue.html
7075 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreCounterValue ), bool>::type>
7076 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint64_t>::type Device::getSemaphoreCounterValue( Semaphore semaphore, Dispatch const & d )
7077 const
7078 {
7079 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7080 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7081 VULKAN_HPP_ASSERT( d.vkGetSemaphoreCounterValue && "Function <vkGetSemaphoreCounterValue> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
7082 # endif
7083
7084 uint64_t value;
7085 Result result = static_cast<Result>( d.vkGetSemaphoreCounterValue( m_device, static_cast<VkSemaphore>( semaphore ), &value ) );
7086 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreCounterValue" );
7087
7088 return detail::createResultValueType( result, std::move( value ) );
7089 }
7090 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7091
7092 // wrapper function for command vkWaitSemaphores, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitSemaphores.html
7093 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitSemaphores ), bool>::type>
7094 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitSemaphores( SemaphoreWaitInfo const * pWaitInfo, uint64_t timeout, Dispatch const & d )
7095 const VULKAN_HPP_NOEXCEPT
7096 {
7097 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7098 return static_cast<Result>( d.vkWaitSemaphores( static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreWaitInfo const *>( pWaitInfo ), timeout ) );
7099 }
7100
7101 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7102 // wrapper function for command vkWaitSemaphores, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitSemaphores.html
7103 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitSemaphores ), bool>::type>
7104 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitSemaphores( SemaphoreWaitInfo const & waitInfo, uint64_t timeout, Dispatch const & d ) const
7105 {
7106 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7107 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7108 VULKAN_HPP_ASSERT( d.vkWaitSemaphores && "Function <vkWaitSemaphores> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
7109 # endif
7110
7111 Result result = static_cast<Result>( d.vkWaitSemaphores( m_device, reinterpret_cast<VkSemaphoreWaitInfo const *>( &waitInfo ), timeout ) );
7112 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitSemaphores", { Result::eSuccess, Result::eTimeout } );
7113
7114 return static_cast<Result>( result );
7115 }
7116 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7117
7118 // wrapper function for command vkSignalSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSignalSemaphore.html
7119 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSignalSemaphore ), bool>::type>
7120 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::signalSemaphore( SemaphoreSignalInfo const * pSignalInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7121 {
7122 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7123 return static_cast<Result>( d.vkSignalSemaphore( static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreSignalInfo const *>( pSignalInfo ) ) );
7124 }
7125
7126 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7127 // wrapper function for command vkSignalSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSignalSemaphore.html
7128 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSignalSemaphore ), bool>::type>
7129 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::signalSemaphore(
7130 SemaphoreSignalInfo const & signalInfo, Dispatch const & d ) const
7131 {
7132 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7133 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7134 VULKAN_HPP_ASSERT( d.vkSignalSemaphore && "Function <vkSignalSemaphore> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
7135 # endif
7136
7137 Result result = static_cast<Result>( d.vkSignalSemaphore( m_device, reinterpret_cast<VkSemaphoreSignalInfo const *>( &signalInfo ) ) );
7138 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::signalSemaphore" );
7139
7140 return detail::createResultValueType( result );
7141 }
7142 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7143
7144 // wrapper function for command vkGetBufferDeviceAddress, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddress.html
7145 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferDeviceAddress ), bool>::type>
7146 VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddress( BufferDeviceAddressInfo const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7147 {
7148 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7149 return static_cast<DeviceAddress>(
7150 d.vkGetBufferDeviceAddress( static_cast<VkDevice>( m_device ), reinterpret_cast<VkBufferDeviceAddressInfo const *>( pInfo ) ) );
7151 }
7152
7153 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7154 // wrapper function for command vkGetBufferDeviceAddress, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddress.html
7155 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferDeviceAddress ), bool>::type>
7156 VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddress( BufferDeviceAddressInfo const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7157 {
7158 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7159 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7160 VULKAN_HPP_ASSERT( d.vkGetBufferDeviceAddress &&
7161 "Function <vkGetBufferDeviceAddress> requires <VK_EXT_buffer_device_address> or <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
7162 # endif
7163
7164 VkDeviceAddress result = d.vkGetBufferDeviceAddress( m_device, reinterpret_cast<VkBufferDeviceAddressInfo const *>( &info ) );
7165
7166 return static_cast<DeviceAddress>( result );
7167 }
7168 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7169
7170 // wrapper function for command vkGetBufferOpaqueCaptureAddress, see
7171 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureAddress.html
7172 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferOpaqueCaptureAddress ), bool>::type>
7173 VULKAN_HPP_INLINE uint64_t Device::getBufferOpaqueCaptureAddress( BufferDeviceAddressInfo const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7174 {
7175 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7176 return d.vkGetBufferOpaqueCaptureAddress( static_cast<VkDevice>( m_device ), reinterpret_cast<VkBufferDeviceAddressInfo const *>( pInfo ) );
7177 }
7178
7179 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7180 // wrapper function for command vkGetBufferOpaqueCaptureAddress, see
7181 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureAddress.html
7182 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferOpaqueCaptureAddress ), bool>::type>
7183 VULKAN_HPP_INLINE uint64_t Device::getBufferOpaqueCaptureAddress( BufferDeviceAddressInfo const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7184 {
7185 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7186 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7187 VULKAN_HPP_ASSERT( d.vkGetBufferOpaqueCaptureAddress &&
7188 "Function <vkGetBufferOpaqueCaptureAddress> requires <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
7189 # endif
7190
7191 uint64_t result = d.vkGetBufferOpaqueCaptureAddress( m_device, reinterpret_cast<VkBufferDeviceAddressInfo const *>( &info ) );
7192
7193 return result;
7194 }
7195 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7196
7197 // wrapper function for command vkGetDeviceMemoryOpaqueCaptureAddress, see
7198 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryOpaqueCaptureAddress.html
7199 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMemoryOpaqueCaptureAddress ), bool>::type>
7200 VULKAN_HPP_INLINE uint64_t Device::getMemoryOpaqueCaptureAddress( DeviceMemoryOpaqueCaptureAddressInfo const * pInfo, Dispatch const & d )
7201 const VULKAN_HPP_NOEXCEPT
7202 {
7203 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7204 return d.vkGetDeviceMemoryOpaqueCaptureAddress( static_cast<VkDevice>( m_device ),
7205 reinterpret_cast<VkDeviceMemoryOpaqueCaptureAddressInfo const *>( pInfo ) );
7206 }
7207
7208 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7209 // wrapper function for command vkGetDeviceMemoryOpaqueCaptureAddress, see
7210 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryOpaqueCaptureAddress.html
7211 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMemoryOpaqueCaptureAddress ), bool>::type>
7212 VULKAN_HPP_INLINE uint64_t Device::getMemoryOpaqueCaptureAddress( DeviceMemoryOpaqueCaptureAddressInfo const & info, Dispatch const & d )
7213 const VULKAN_HPP_NOEXCEPT
7214 {
7215 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7216 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7217 VULKAN_HPP_ASSERT( d.vkGetDeviceMemoryOpaqueCaptureAddress &&
7218 "Function <vkGetDeviceMemoryOpaqueCaptureAddress> requires <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
7219 # endif
7220
7221 uint64_t result = d.vkGetDeviceMemoryOpaqueCaptureAddress( m_device, reinterpret_cast<VkDeviceMemoryOpaqueCaptureAddressInfo const *>( &info ) );
7222
7223 return result;
7224 }
7225 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7226
7227 // wrapper function for command vkCmdDrawIndirectCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCount.html
7228 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirectCount ), bool>::type>
7229 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectCount(
7230 Buffer buffer, DeviceSize offset, Buffer countBuffer, DeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride, Dispatch const & d )
7231 const VULKAN_HPP_NOEXCEPT
7232 {
7233 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7234 d.vkCmdDrawIndirectCount( static_cast<VkCommandBuffer>( m_commandBuffer ),
7235 static_cast<VkBuffer>( buffer ),
7236 static_cast<VkDeviceSize>( offset ),
7237 static_cast<VkBuffer>( countBuffer ),
7238 static_cast<VkDeviceSize>( countBufferOffset ),
7239 maxDrawCount,
7240 stride );
7241 }
7242
7243 // wrapper function for command vkCmdDrawIndexedIndirectCount, see
7244 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCount.html
7245 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexedIndirectCount ), bool>::type>
7246 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirectCount(
7247 Buffer buffer, DeviceSize offset, Buffer countBuffer, DeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride, Dispatch const & d )
7248 const VULKAN_HPP_NOEXCEPT
7249 {
7250 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7251 d.vkCmdDrawIndexedIndirectCount( static_cast<VkCommandBuffer>( m_commandBuffer ),
7252 static_cast<VkBuffer>( buffer ),
7253 static_cast<VkDeviceSize>( offset ),
7254 static_cast<VkBuffer>( countBuffer ),
7255 static_cast<VkDeviceSize>( countBufferOffset ),
7256 maxDrawCount,
7257 stride );
7258 }
7259
7260 // wrapper function for command vkCreateRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2.html
7261 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass2 ), bool>::type>
7262 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createRenderPass2(
7263 RenderPassCreateInfo2 const * pCreateInfo, AllocationCallbacks const * pAllocator, RenderPass * pRenderPass, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7264 {
7265 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7266 return static_cast<Result>( d.vkCreateRenderPass2( static_cast<VkDevice>( m_device ),
7267 reinterpret_cast<VkRenderPassCreateInfo2 const *>( pCreateInfo ),
7268 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
7269 reinterpret_cast<VkRenderPass *>( pRenderPass ) ) );
7270 }
7271
7272 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7273 // wrapper function for command vkCreateRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2.html
7274 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass2 ), bool>::type>
7275 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RenderPass>::type Device::createRenderPass2(
7276 RenderPassCreateInfo2 const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
7277 {
7278 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7279 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7280 VULKAN_HPP_ASSERT( d.vkCreateRenderPass2 && "Function <vkCreateRenderPass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
7281 # endif
7282
7283 RenderPass renderPass;
7284 Result result = static_cast<Result>( d.vkCreateRenderPass2( m_device,
7285 reinterpret_cast<VkRenderPassCreateInfo2 const *>( &createInfo ),
7286 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
7287 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
7288 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass2" );
7289
7290 return detail::createResultValueType( result, std::move( renderPass ) );
7291 }
7292
7293 # ifndef VULKAN_HPP_NO_SMART_HANDLE
7294 // wrapper function for command vkCreateRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2.html
7295 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass2 ), bool>::type>
7296 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<RenderPass, Dispatch>>::type Device::createRenderPass2Unique(
7297 RenderPassCreateInfo2 const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
7298 {
7299 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7300 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7301 VULKAN_HPP_ASSERT( d.vkCreateRenderPass2 && "Function <vkCreateRenderPass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
7302 # endif
7303
7304 RenderPass renderPass;
7305 Result result = static_cast<Result>( d.vkCreateRenderPass2( m_device,
7306 reinterpret_cast<VkRenderPassCreateInfo2 const *>( &createInfo ),
7307 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
7308 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
7309 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass2Unique" );
7310
7311 return detail::createResultValueType( result,
7312 UniqueHandle<RenderPass, Dispatch>( renderPass, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
7313 }
7314 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
7315 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7316
7317 // wrapper function for command vkCmdBeginRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass2.html
7318 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderPass2 ), bool>::type>
7319 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass2(
7320 RenderPassBeginInfo const * pRenderPassBegin, SubpassBeginInfo const * pSubpassBeginInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7321 {
7322 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7323 d.vkCmdBeginRenderPass2( static_cast<VkCommandBuffer>( m_commandBuffer ),
7324 reinterpret_cast<VkRenderPassBeginInfo const *>( pRenderPassBegin ),
7325 reinterpret_cast<VkSubpassBeginInfo const *>( pSubpassBeginInfo ) );
7326 }
7327
7328 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7329 // wrapper function for command vkCmdBeginRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass2.html
7330 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderPass2 ), bool>::type>
7331 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass2(
7332 RenderPassBeginInfo const & renderPassBegin, SubpassBeginInfo const & subpassBeginInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7333 {
7334 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7335 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7336 VULKAN_HPP_ASSERT( d.vkCmdBeginRenderPass2 && "Function <vkCmdBeginRenderPass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
7337 # endif
7338
7339 d.vkCmdBeginRenderPass2(
7340 m_commandBuffer, reinterpret_cast<VkRenderPassBeginInfo const *>( &renderPassBegin ), reinterpret_cast<VkSubpassBeginInfo const *>( &subpassBeginInfo ) );
7341 }
7342 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7343
7344 // wrapper function for command vkCmdNextSubpass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass2.html
7345 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdNextSubpass2 ), bool>::type>
7346 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass2( SubpassBeginInfo const * pSubpassBeginInfo, SubpassEndInfo const * pSubpassEndInfo, Dispatch const & d )
7347 const VULKAN_HPP_NOEXCEPT
7348 {
7349 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7350 d.vkCmdNextSubpass2( static_cast<VkCommandBuffer>( m_commandBuffer ),
7351 reinterpret_cast<VkSubpassBeginInfo const *>( pSubpassBeginInfo ),
7352 reinterpret_cast<VkSubpassEndInfo const *>( pSubpassEndInfo ) );
7353 }
7354
7355 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7356 // wrapper function for command vkCmdNextSubpass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass2.html
7357 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdNextSubpass2 ), bool>::type>
7358 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass2( SubpassBeginInfo const & subpassBeginInfo, SubpassEndInfo const & subpassEndInfo, Dispatch const & d )
7359 const VULKAN_HPP_NOEXCEPT
7360 {
7361 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7362 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7363 VULKAN_HPP_ASSERT( d.vkCmdNextSubpass2 && "Function <vkCmdNextSubpass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
7364 # endif
7365
7366 d.vkCmdNextSubpass2(
7367 m_commandBuffer, reinterpret_cast<VkSubpassBeginInfo const *>( &subpassBeginInfo ), reinterpret_cast<VkSubpassEndInfo const *>( &subpassEndInfo ) );
7368 }
7369 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7370
7371 // wrapper function for command vkCmdEndRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass2.html
7372 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRenderPass2 ), bool>::type>
7373 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass2( SubpassEndInfo const * pSubpassEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7374 {
7375 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7376 d.vkCmdEndRenderPass2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkSubpassEndInfo const *>( pSubpassEndInfo ) );
7377 }
7378
7379 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7380 // wrapper function for command vkCmdEndRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass2.html
7381 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRenderPass2 ), bool>::type>
7382 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass2( SubpassEndInfo const & subpassEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7383 {
7384 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7385 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7386 VULKAN_HPP_ASSERT( d.vkCmdEndRenderPass2 && "Function <vkCmdEndRenderPass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
7387 # endif
7388
7389 d.vkCmdEndRenderPass2( m_commandBuffer, reinterpret_cast<VkSubpassEndInfo const *>( &subpassEndInfo ) );
7390 }
7391 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7392
7393 //=== VK_VERSION_1_3 ===
7394
7395 // wrapper function for command vkGetPhysicalDeviceToolProperties, see
7396 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolProperties.html
7397 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceToolProperties ), bool>::type>
7398 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getToolProperties(
7399 uint32_t * pToolCount, PhysicalDeviceToolProperties * pToolProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7400 {
7401 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7402 return static_cast<Result>( d.vkGetPhysicalDeviceToolProperties(
7403 static_cast<VkPhysicalDevice>( m_physicalDevice ), pToolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( pToolProperties ) ) );
7404 }
7405
7406 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7407 // wrapper function for command vkGetPhysicalDeviceToolProperties, see
7408 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolProperties.html
7409 template <typename PhysicalDeviceToolPropertiesAllocator,
7410 typename Dispatch,
7411 typename std::enable_if<std::is_same<typename PhysicalDeviceToolPropertiesAllocator::value_type, PhysicalDeviceToolProperties>::value, int>::type,
7412 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceToolProperties ), bool>::type>
7413 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator>>::type
7414 PhysicalDevice::getToolProperties( Dispatch const & d ) const
7415 {
7416 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7417 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7418 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceToolProperties &&
7419 "Function <vkGetPhysicalDeviceToolProperties> requires <VK_EXT_tooling_info> or <VK_VERSION_1_3>" );
7420 # endif
7421
7422 std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator> toolProperties;
7423 uint32_t toolCount;
7424 Result result;
7425 do
7426 {
7427 result = static_cast<Result>( d.vkGetPhysicalDeviceToolProperties( m_physicalDevice, &toolCount, nullptr ) );
7428 if ( ( result == Result::eSuccess ) && toolCount )
7429 {
7430 toolProperties.resize( toolCount );
7431 result = static_cast<Result>(
7432 d.vkGetPhysicalDeviceToolProperties( m_physicalDevice, &toolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( toolProperties.data() ) ) );
7433 }
7434 } while ( result == Result::eIncomplete );
7435 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolProperties" );
7436 VULKAN_HPP_ASSERT( toolCount <= toolProperties.size() );
7437 if ( toolCount < toolProperties.size() )
7438 {
7439 toolProperties.resize( toolCount );
7440 }
7441 return detail::createResultValueType( result, std::move( toolProperties ) );
7442 }
7443
7444 // wrapper function for command vkGetPhysicalDeviceToolProperties, see
7445 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolProperties.html
7446 template <typename PhysicalDeviceToolPropertiesAllocator,
7447 typename Dispatch,
7448 typename std::enable_if<std::is_same<typename PhysicalDeviceToolPropertiesAllocator::value_type, PhysicalDeviceToolProperties>::value, int>::type,
7449 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceToolProperties ), bool>::type>
7450 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator>>::type
7451 PhysicalDevice::getToolProperties( PhysicalDeviceToolPropertiesAllocator const & physicalDeviceToolPropertiesAllocator, Dispatch const & d ) const
7452 {
7453 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7454 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7455 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceToolProperties &&
7456 "Function <vkGetPhysicalDeviceToolProperties> requires <VK_EXT_tooling_info> or <VK_VERSION_1_3>" );
7457 # endif
7458
7459 std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator> toolProperties( physicalDeviceToolPropertiesAllocator );
7460 uint32_t toolCount;
7461 Result result;
7462 do
7463 {
7464 result = static_cast<Result>( d.vkGetPhysicalDeviceToolProperties( m_physicalDevice, &toolCount, nullptr ) );
7465 if ( ( result == Result::eSuccess ) && toolCount )
7466 {
7467 toolProperties.resize( toolCount );
7468 result = static_cast<Result>(
7469 d.vkGetPhysicalDeviceToolProperties( m_physicalDevice, &toolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( toolProperties.data() ) ) );
7470 }
7471 } while ( result == Result::eIncomplete );
7472 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolProperties" );
7473 VULKAN_HPP_ASSERT( toolCount <= toolProperties.size() );
7474 if ( toolCount < toolProperties.size() )
7475 {
7476 toolProperties.resize( toolCount );
7477 }
7478 return detail::createResultValueType( result, std::move( toolProperties ) );
7479 }
7480 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7481
7482 // wrapper function for command vkCreatePrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlot.html
7483 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePrivateDataSlot ), bool>::type>
7484 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createPrivateDataSlot(
7485 PrivateDataSlotCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, PrivateDataSlot * pPrivateDataSlot, Dispatch const & d )
7486 const VULKAN_HPP_NOEXCEPT
7487 {
7488 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7489 return static_cast<Result>( d.vkCreatePrivateDataSlot( static_cast<VkDevice>( m_device ),
7490 reinterpret_cast<VkPrivateDataSlotCreateInfo const *>( pCreateInfo ),
7491 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
7492 reinterpret_cast<VkPrivateDataSlot *>( pPrivateDataSlot ) ) );
7493 }
7494
7495 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7496 // wrapper function for command vkCreatePrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlot.html
7497 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePrivateDataSlot ), bool>::type>
7498 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PrivateDataSlot>::type Device::createPrivateDataSlot(
7499 PrivateDataSlotCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
7500 {
7501 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7502 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7503 VULKAN_HPP_ASSERT( d.vkCreatePrivateDataSlot && "Function <vkCreatePrivateDataSlot> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
7504 # endif
7505
7506 PrivateDataSlot privateDataSlot;
7507 Result result = static_cast<Result>( d.vkCreatePrivateDataSlot( m_device,
7508 reinterpret_cast<VkPrivateDataSlotCreateInfo const *>( &createInfo ),
7509 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
7510 reinterpret_cast<VkPrivateDataSlot *>( &privateDataSlot ) ) );
7511 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPrivateDataSlot" );
7512
7513 return detail::createResultValueType( result, std::move( privateDataSlot ) );
7514 }
7515
7516 # ifndef VULKAN_HPP_NO_SMART_HANDLE
7517 // wrapper function for command vkCreatePrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlot.html
7518 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePrivateDataSlot ), bool>::type>
7519 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<PrivateDataSlot, Dispatch>>::type Device::createPrivateDataSlotUnique(
7520 PrivateDataSlotCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
7521 {
7522 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7523 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7524 VULKAN_HPP_ASSERT( d.vkCreatePrivateDataSlot && "Function <vkCreatePrivateDataSlot> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
7525 # endif
7526
7527 PrivateDataSlot privateDataSlot;
7528 Result result = static_cast<Result>( d.vkCreatePrivateDataSlot( m_device,
7529 reinterpret_cast<VkPrivateDataSlotCreateInfo const *>( &createInfo ),
7530 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
7531 reinterpret_cast<VkPrivateDataSlot *>( &privateDataSlot ) ) );
7532 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPrivateDataSlotUnique" );
7533
7534 return detail::createResultValueType(
7535 result, UniqueHandle<PrivateDataSlot, Dispatch>( privateDataSlot, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
7536 }
7537 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
7538 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7539
7540 // wrapper function for command vkDestroyPrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlot.html
7541 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPrivateDataSlot ), bool>::type>
7542 VULKAN_HPP_INLINE void Device::destroyPrivateDataSlot( PrivateDataSlot privateDataSlot, AllocationCallbacks const * pAllocator, Dispatch const & d )
7543 const VULKAN_HPP_NOEXCEPT
7544 {
7545 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7546 d.vkDestroyPrivateDataSlot(
7547 static_cast<VkDevice>( m_device ), static_cast<VkPrivateDataSlot>( privateDataSlot ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
7548 }
7549
7550 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7551 // wrapper function for command vkDestroyPrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlot.html
7552 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPrivateDataSlot ), bool>::type>
7553 VULKAN_HPP_INLINE void Device::destroyPrivateDataSlot( PrivateDataSlot privateDataSlot, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
7554 const VULKAN_HPP_NOEXCEPT
7555 {
7556 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7557 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7558 VULKAN_HPP_ASSERT( d.vkDestroyPrivateDataSlot && "Function <vkDestroyPrivateDataSlot> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
7559 # endif
7560
7561 d.vkDestroyPrivateDataSlot(
7562 m_device, static_cast<VkPrivateDataSlot>( privateDataSlot ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
7563 }
7564 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7565
7566 // wrapper function for command vkDestroyPrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlot.html
7567 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPrivateDataSlot ), bool>::type>
7568 VULKAN_HPP_INLINE void Device::destroy( PrivateDataSlot privateDataSlot, AllocationCallbacks const * pAllocator, Dispatch const & d )
7569 const VULKAN_HPP_NOEXCEPT
7570 {
7571 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7572 d.vkDestroyPrivateDataSlot(
7573 static_cast<VkDevice>( m_device ), static_cast<VkPrivateDataSlot>( privateDataSlot ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
7574 }
7575
7576 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7577 // wrapper function for command vkDestroyPrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlot.html
7578 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPrivateDataSlot ), bool>::type>
7579 VULKAN_HPP_INLINE void Device::destroy( PrivateDataSlot privateDataSlot, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
7580 const VULKAN_HPP_NOEXCEPT
7581 {
7582 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7583 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7584 VULKAN_HPP_ASSERT( d.vkDestroyPrivateDataSlot && "Function <vkDestroyPrivateDataSlot> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
7585 # endif
7586
7587 d.vkDestroyPrivateDataSlot(
7588 m_device, static_cast<VkPrivateDataSlot>( privateDataSlot ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
7589 }
7590 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7591
7592 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
7593 // wrapper function for command vkSetPrivateData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetPrivateData.html
7594 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetPrivateData ), bool>::type>
7595 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setPrivateData(
7596 ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, uint64_t data, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7597 {
7598 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7599 return static_cast<Result>( d.vkSetPrivateData(
7600 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), data ) );
7601 }
7602 #else
7603 // wrapper function for command vkSetPrivateData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetPrivateData.html
7604 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetPrivateData ), bool>::type>
7605 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setPrivateData(
7606 ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, uint64_t data, Dispatch const & d ) const
7607 {
7608 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7609 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7610 VULKAN_HPP_ASSERT( d.vkSetPrivateData && "Function <vkSetPrivateData> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
7611 # endif
7612
7613 Result result = static_cast<Result>(
7614 d.vkSetPrivateData( m_device, static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), data ) );
7615 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setPrivateData" );
7616
7617 return detail::createResultValueType( result );
7618 }
7619 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
7620
7621 // wrapper function for command vkGetPrivateData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPrivateData.html
7622 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPrivateData ), bool>::type>
7623 VULKAN_HPP_INLINE void Device::getPrivateData(
7624 ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, uint64_t * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7625 {
7626 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7627 d.vkGetPrivateData(
7628 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), pData );
7629 }
7630
7631 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7632 // wrapper function for command vkGetPrivateData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPrivateData.html
7633 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPrivateData ), bool>::type>
7634 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint64_t Device::getPrivateData(
7635 ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7636 {
7637 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7638 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7639 VULKAN_HPP_ASSERT( d.vkGetPrivateData && "Function <vkGetPrivateData> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
7640 # endif
7641
7642 uint64_t data;
7643 d.vkGetPrivateData( m_device, static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), &data );
7644
7645 return data;
7646 }
7647 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7648
7649 // wrapper function for command vkCmdPipelineBarrier2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier2.html
7650 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPipelineBarrier2 ), bool>::type>
7651 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier2( DependencyInfo const * pDependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7652 {
7653 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7654 d.vkCmdPipelineBarrier2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDependencyInfo const *>( pDependencyInfo ) );
7655 }
7656
7657 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7658 // wrapper function for command vkCmdPipelineBarrier2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier2.html
7659 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPipelineBarrier2 ), bool>::type>
7660 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier2( DependencyInfo const & dependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7661 {
7662 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7663 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7664 VULKAN_HPP_ASSERT( d.vkCmdPipelineBarrier2 && "Function <vkCmdPipelineBarrier2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
7665 # endif
7666
7667 d.vkCmdPipelineBarrier2( m_commandBuffer, reinterpret_cast<VkDependencyInfo const *>( &dependencyInfo ) );
7668 }
7669 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7670
7671 // wrapper function for command vkCmdWriteTimestamp2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteTimestamp2.html
7672 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteTimestamp2 ), bool>::type>
7673 VULKAN_HPP_INLINE void CommandBuffer::writeTimestamp2( PipelineStageFlags2 stage, QueryPool queryPool, uint32_t query, Dispatch const & d )
7674 const VULKAN_HPP_NOEXCEPT
7675 {
7676 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7677 d.vkCmdWriteTimestamp2(
7678 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineStageFlags2>( stage ), static_cast<VkQueryPool>( queryPool ), query );
7679 }
7680
7681 // wrapper function for command vkQueueSubmit2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2.html
7682 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSubmit2 ), bool>::type>
7683 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::submit2( uint32_t submitCount, SubmitInfo2 const * pSubmits, Fence fence, Dispatch const & d )
7684 const VULKAN_HPP_NOEXCEPT
7685 {
7686 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7687 return static_cast<Result>(
7688 d.vkQueueSubmit2( static_cast<VkQueue>( m_queue ), submitCount, reinterpret_cast<VkSubmitInfo2 const *>( pSubmits ), static_cast<VkFence>( fence ) ) );
7689 }
7690
7691 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7692 // wrapper function for command vkQueueSubmit2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2.html
7693 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSubmit2 ), bool>::type>
7694 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Queue::submit2(
7695 ArrayProxy<SubmitInfo2 const> const & submits, Fence fence, Dispatch const & d ) const
7696 {
7697 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7698 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7699 VULKAN_HPP_ASSERT( d.vkQueueSubmit2 && "Function <vkQueueSubmit2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
7700 # endif
7701
7702 Result result = static_cast<Result>(
7703 d.vkQueueSubmit2( m_queue, submits.size(), reinterpret_cast<VkSubmitInfo2 const *>( submits.data() ), static_cast<VkFence>( fence ) ) );
7704 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::submit2" );
7705
7706 return detail::createResultValueType( result );
7707 }
7708 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7709
7710 // wrapper function for command vkCmdCopyBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer2.html
7711 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBuffer2 ), bool>::type>
7712 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer2( CopyBufferInfo2 const * pCopyBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7713 {
7714 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7715 d.vkCmdCopyBuffer2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyBufferInfo2 const *>( pCopyBufferInfo ) );
7716 }
7717
7718 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7719 // wrapper function for command vkCmdCopyBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer2.html
7720 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBuffer2 ), bool>::type>
7721 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer2( CopyBufferInfo2 const & copyBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7722 {
7723 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7724 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7725 VULKAN_HPP_ASSERT( d.vkCmdCopyBuffer2 && "Function <vkCmdCopyBuffer2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
7726 # endif
7727
7728 d.vkCmdCopyBuffer2( m_commandBuffer, reinterpret_cast<VkCopyBufferInfo2 const *>( &copyBufferInfo ) );
7729 }
7730 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7731
7732 // wrapper function for command vkCmdCopyImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage2.html
7733 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImage2 ), bool>::type>
7734 VULKAN_HPP_INLINE void CommandBuffer::copyImage2( CopyImageInfo2 const * pCopyImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7735 {
7736 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7737 d.vkCmdCopyImage2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyImageInfo2 const *>( pCopyImageInfo ) );
7738 }
7739
7740 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7741 // wrapper function for command vkCmdCopyImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage2.html
7742 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImage2 ), bool>::type>
7743 VULKAN_HPP_INLINE void CommandBuffer::copyImage2( CopyImageInfo2 const & copyImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7744 {
7745 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7746 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7747 VULKAN_HPP_ASSERT( d.vkCmdCopyImage2 && "Function <vkCmdCopyImage2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
7748 # endif
7749
7750 d.vkCmdCopyImage2( m_commandBuffer, reinterpret_cast<VkCopyImageInfo2 const *>( &copyImageInfo ) );
7751 }
7752 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7753
7754 // wrapper function for command vkCmdCopyBufferToImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage2.html
7755 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBufferToImage2 ), bool>::type>
7756 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage2( CopyBufferToImageInfo2 const * pCopyBufferToImageInfo, Dispatch const & d )
7757 const VULKAN_HPP_NOEXCEPT
7758 {
7759 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7760 d.vkCmdCopyBufferToImage2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyBufferToImageInfo2 const *>( pCopyBufferToImageInfo ) );
7761 }
7762
7763 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7764 // wrapper function for command vkCmdCopyBufferToImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage2.html
7765 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBufferToImage2 ), bool>::type>
7766 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage2( CopyBufferToImageInfo2 const & copyBufferToImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7767 {
7768 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7769 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7770 VULKAN_HPP_ASSERT( d.vkCmdCopyBufferToImage2 && "Function <vkCmdCopyBufferToImage2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
7771 # endif
7772
7773 d.vkCmdCopyBufferToImage2( m_commandBuffer, reinterpret_cast<VkCopyBufferToImageInfo2 const *>( &copyBufferToImageInfo ) );
7774 }
7775 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7776
7777 // wrapper function for command vkCmdCopyImageToBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer2.html
7778 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToBuffer2 ), bool>::type>
7779 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer2( CopyImageToBufferInfo2 const * pCopyImageToBufferInfo, Dispatch const & d )
7780 const VULKAN_HPP_NOEXCEPT
7781 {
7782 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7783 d.vkCmdCopyImageToBuffer2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyImageToBufferInfo2 const *>( pCopyImageToBufferInfo ) );
7784 }
7785
7786 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7787 // wrapper function for command vkCmdCopyImageToBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer2.html
7788 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToBuffer2 ), bool>::type>
7789 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer2( CopyImageToBufferInfo2 const & copyImageToBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7790 {
7791 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7792 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7793 VULKAN_HPP_ASSERT( d.vkCmdCopyImageToBuffer2 && "Function <vkCmdCopyImageToBuffer2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
7794 # endif
7795
7796 d.vkCmdCopyImageToBuffer2( m_commandBuffer, reinterpret_cast<VkCopyImageToBufferInfo2 const *>( &copyImageToBufferInfo ) );
7797 }
7798 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7799
7800 // wrapper function for command vkGetDeviceBufferMemoryRequirements, see
7801 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirements.html
7802 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceBufferMemoryRequirements ), bool>::type>
7803 VULKAN_HPP_INLINE void Device::getBufferMemoryRequirements(
7804 DeviceBufferMemoryRequirements const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7805 {
7806 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7807 d.vkGetDeviceBufferMemoryRequirements( static_cast<VkDevice>( m_device ),
7808 reinterpret_cast<VkDeviceBufferMemoryRequirements const *>( pInfo ),
7809 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
7810 }
7811
7812 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7813 // wrapper function for command vkGetDeviceBufferMemoryRequirements, see
7814 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirements.html
7815 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceBufferMemoryRequirements ), bool>::type>
7816 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getBufferMemoryRequirements( DeviceBufferMemoryRequirements const & info,
7817 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7818 {
7819 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7820 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7821 VULKAN_HPP_ASSERT( d.vkGetDeviceBufferMemoryRequirements &&
7822 "Function <vkGetDeviceBufferMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
7823 # endif
7824
7825 MemoryRequirements2 memoryRequirements;
7826 d.vkGetDeviceBufferMemoryRequirements(
7827 m_device, reinterpret_cast<VkDeviceBufferMemoryRequirements const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
7828
7829 return memoryRequirements;
7830 }
7831
7832 // wrapper function for command vkGetDeviceBufferMemoryRequirements, see
7833 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirements.html
7834 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceBufferMemoryRequirements ), bool>::type>
7835 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getBufferMemoryRequirements( DeviceBufferMemoryRequirements const & info,
7836 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7837 {
7838 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7839 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7840 VULKAN_HPP_ASSERT( d.vkGetDeviceBufferMemoryRequirements &&
7841 "Function <vkGetDeviceBufferMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
7842 # endif
7843
7844 StructureChain<X, Y, Z...> structureChain;
7845 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
7846 d.vkGetDeviceBufferMemoryRequirements(
7847 m_device, reinterpret_cast<VkDeviceBufferMemoryRequirements const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
7848
7849 return structureChain;
7850 }
7851 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7852
7853 // wrapper function for command vkGetDeviceImageMemoryRequirements, see
7854 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirements.html
7855 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageMemoryRequirements ), bool>::type>
7856 VULKAN_HPP_INLINE void Device::getImageMemoryRequirements(
7857 DeviceImageMemoryRequirements const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7858 {
7859 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7860 d.vkGetDeviceImageMemoryRequirements( static_cast<VkDevice>( m_device ),
7861 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( pInfo ),
7862 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
7863 }
7864
7865 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7866 // wrapper function for command vkGetDeviceImageMemoryRequirements, see
7867 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirements.html
7868 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageMemoryRequirements ), bool>::type>
7869 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getImageMemoryRequirements( DeviceImageMemoryRequirements const & info,
7870 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7871 {
7872 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7873 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7874 VULKAN_HPP_ASSERT( d.vkGetDeviceImageMemoryRequirements &&
7875 "Function <vkGetDeviceImageMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
7876 # endif
7877
7878 MemoryRequirements2 memoryRequirements;
7879 d.vkGetDeviceImageMemoryRequirements(
7880 m_device, reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
7881
7882 return memoryRequirements;
7883 }
7884
7885 // wrapper function for command vkGetDeviceImageMemoryRequirements, see
7886 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirements.html
7887 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageMemoryRequirements ), bool>::type>
7888 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageMemoryRequirements( DeviceImageMemoryRequirements const & info,
7889 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7890 {
7891 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7892 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7893 VULKAN_HPP_ASSERT( d.vkGetDeviceImageMemoryRequirements &&
7894 "Function <vkGetDeviceImageMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
7895 # endif
7896
7897 StructureChain<X, Y, Z...> structureChain;
7898 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
7899 d.vkGetDeviceImageMemoryRequirements(
7900 m_device, reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
7901
7902 return structureChain;
7903 }
7904 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7905
7906 // wrapper function for command vkGetDeviceImageSparseMemoryRequirements, see
7907 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirements.html
7908 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSparseMemoryRequirements ), bool>::type>
7909 VULKAN_HPP_INLINE void Device::getImageSparseMemoryRequirements( DeviceImageMemoryRequirements const * pInfo,
7910 uint32_t * pSparseMemoryRequirementCount,
7911 SparseImageMemoryRequirements2 * pSparseMemoryRequirements,
7912 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7913 {
7914 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7915 d.vkGetDeviceImageSparseMemoryRequirements( static_cast<VkDevice>( m_device ),
7916 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( pInfo ),
7917 pSparseMemoryRequirementCount,
7918 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( pSparseMemoryRequirements ) );
7919 }
7920
7921 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7922 // wrapper function for command vkGetDeviceImageSparseMemoryRequirements, see
7923 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirements.html
7924 template <
7925 typename SparseImageMemoryRequirements2Allocator,
7926 typename Dispatch,
7927 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
7928 typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSparseMemoryRequirements ), bool>::type>
7929 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
7930 Device::getImageSparseMemoryRequirements( DeviceImageMemoryRequirements const & info, Dispatch const & d ) const
7931 {
7932 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7933 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7934 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSparseMemoryRequirements &&
7935 "Function <vkGetDeviceImageSparseMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
7936 # endif
7937
7938 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements;
7939 uint32_t sparseMemoryRequirementCount;
7940 d.vkGetDeviceImageSparseMemoryRequirements(
7941 m_device, reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ), &sparseMemoryRequirementCount, nullptr );
7942 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
7943 d.vkGetDeviceImageSparseMemoryRequirements( m_device,
7944 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ),
7945 &sparseMemoryRequirementCount,
7946 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
7947
7948 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
7949 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
7950 {
7951 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
7952 }
7953 return sparseMemoryRequirements;
7954 }
7955
7956 // wrapper function for command vkGetDeviceImageSparseMemoryRequirements, see
7957 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirements.html
7958 template <
7959 typename SparseImageMemoryRequirements2Allocator,
7960 typename Dispatch,
7961 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
7962 typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSparseMemoryRequirements ), bool>::type>
7963 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
7964 Device::getImageSparseMemoryRequirements(
7965 DeviceImageMemoryRequirements const & info, SparseImageMemoryRequirements2Allocator const & sparseImageMemoryRequirements2Allocator, Dispatch const & d )
7966 const
7967 {
7968 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7969 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7970 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSparseMemoryRequirements &&
7971 "Function <vkGetDeviceImageSparseMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
7972 # endif
7973
7974 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements( sparseImageMemoryRequirements2Allocator );
7975 uint32_t sparseMemoryRequirementCount;
7976 d.vkGetDeviceImageSparseMemoryRequirements(
7977 m_device, reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ), &sparseMemoryRequirementCount, nullptr );
7978 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
7979 d.vkGetDeviceImageSparseMemoryRequirements( m_device,
7980 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ),
7981 &sparseMemoryRequirementCount,
7982 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
7983
7984 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
7985 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
7986 {
7987 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
7988 }
7989 return sparseMemoryRequirements;
7990 }
7991 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7992
7993 // wrapper function for command vkCmdSetEvent2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent2.html
7994 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetEvent2 ), bool>::type>
7995 VULKAN_HPP_INLINE void CommandBuffer::setEvent2( Event event, DependencyInfo const * pDependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7996 {
7997 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7998 d.vkCmdSetEvent2(
7999 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), reinterpret_cast<VkDependencyInfo const *>( pDependencyInfo ) );
8000 }
8001
8002 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8003 // wrapper function for command vkCmdSetEvent2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent2.html
8004 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetEvent2 ), bool>::type>
8005 VULKAN_HPP_INLINE void CommandBuffer::setEvent2( Event event, DependencyInfo const & dependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8006 {
8007 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8008 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8009 VULKAN_HPP_ASSERT( d.vkCmdSetEvent2 && "Function <vkCmdSetEvent2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
8010 # endif
8011
8012 d.vkCmdSetEvent2( m_commandBuffer, static_cast<VkEvent>( event ), reinterpret_cast<VkDependencyInfo const *>( &dependencyInfo ) );
8013 }
8014 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8015
8016 // wrapper function for command vkCmdResetEvent2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetEvent2.html
8017 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResetEvent2 ), bool>::type>
8018 VULKAN_HPP_INLINE void CommandBuffer::resetEvent2( Event event, PipelineStageFlags2 stageMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8019 {
8020 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8021 d.vkCmdResetEvent2( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), static_cast<VkPipelineStageFlags2>( stageMask ) );
8022 }
8023
8024 // wrapper function for command vkCmdWaitEvents2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents2.html
8025 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWaitEvents2 ), bool>::type>
8026 VULKAN_HPP_INLINE void CommandBuffer::waitEvents2( uint32_t eventCount, Event const * pEvents, DependencyInfo const * pDependencyInfos, Dispatch const & d )
8027 const VULKAN_HPP_NOEXCEPT
8028 {
8029 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8030 d.vkCmdWaitEvents2( static_cast<VkCommandBuffer>( m_commandBuffer ),
8031 eventCount,
8032 reinterpret_cast<VkEvent const *>( pEvents ),
8033 reinterpret_cast<VkDependencyInfo const *>( pDependencyInfos ) );
8034 }
8035
8036 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8037 // wrapper function for command vkCmdWaitEvents2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents2.html
8038 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWaitEvents2 ), bool>::type>
8039 VULKAN_HPP_INLINE void CommandBuffer::waitEvents2(
8040 ArrayProxy<Event const> const & events, ArrayProxy<DependencyInfo const> const & dependencyInfos, Dispatch const & d )
8041 const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
8042 {
8043 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8044 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8045 VULKAN_HPP_ASSERT( d.vkCmdWaitEvents2 && "Function <vkCmdWaitEvents2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
8046 # endif
8047 # ifdef VULKAN_HPP_NO_EXCEPTIONS
8048 VULKAN_HPP_ASSERT( events.size() == dependencyInfos.size() );
8049 # else
8050 if ( events.size() != dependencyInfos.size() )
8051 {
8052 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::waitEvents2: events.size() != dependencyInfos.size()" );
8053 }
8054 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
8055
8056 d.vkCmdWaitEvents2( m_commandBuffer,
8057 events.size(),
8058 reinterpret_cast<VkEvent const *>( events.data() ),
8059 reinterpret_cast<VkDependencyInfo const *>( dependencyInfos.data() ) );
8060 }
8061 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8062
8063 // wrapper function for command vkCmdBlitImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage2.html
8064 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBlitImage2 ), bool>::type>
8065 VULKAN_HPP_INLINE void CommandBuffer::blitImage2( BlitImageInfo2 const * pBlitImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8066 {
8067 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8068 d.vkCmdBlitImage2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkBlitImageInfo2 const *>( pBlitImageInfo ) );
8069 }
8070
8071 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8072 // wrapper function for command vkCmdBlitImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage2.html
8073 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBlitImage2 ), bool>::type>
8074 VULKAN_HPP_INLINE void CommandBuffer::blitImage2( BlitImageInfo2 const & blitImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8075 {
8076 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8077 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8078 VULKAN_HPP_ASSERT( d.vkCmdBlitImage2 && "Function <vkCmdBlitImage2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
8079 # endif
8080
8081 d.vkCmdBlitImage2( m_commandBuffer, reinterpret_cast<VkBlitImageInfo2 const *>( &blitImageInfo ) );
8082 }
8083 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8084
8085 // wrapper function for command vkCmdResolveImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage2.html
8086 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResolveImage2 ), bool>::type>
8087 VULKAN_HPP_INLINE void CommandBuffer::resolveImage2( ResolveImageInfo2 const * pResolveImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8088 {
8089 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8090 d.vkCmdResolveImage2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkResolveImageInfo2 const *>( pResolveImageInfo ) );
8091 }
8092
8093 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8094 // wrapper function for command vkCmdResolveImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage2.html
8095 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResolveImage2 ), bool>::type>
8096 VULKAN_HPP_INLINE void CommandBuffer::resolveImage2( ResolveImageInfo2 const & resolveImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8097 {
8098 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8099 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8100 VULKAN_HPP_ASSERT( d.vkCmdResolveImage2 && "Function <vkCmdResolveImage2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
8101 # endif
8102
8103 d.vkCmdResolveImage2( m_commandBuffer, reinterpret_cast<VkResolveImageInfo2 const *>( &resolveImageInfo ) );
8104 }
8105 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8106
8107 // wrapper function for command vkCmdBeginRendering, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRendering.html
8108 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRendering ), bool>::type>
8109 VULKAN_HPP_INLINE void CommandBuffer::beginRendering( RenderingInfo const * pRenderingInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8110 {
8111 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8112 d.vkCmdBeginRendering( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkRenderingInfo const *>( pRenderingInfo ) );
8113 }
8114
8115 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8116 // wrapper function for command vkCmdBeginRendering, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRendering.html
8117 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRendering ), bool>::type>
8118 VULKAN_HPP_INLINE void CommandBuffer::beginRendering( RenderingInfo const & renderingInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8119 {
8120 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8121 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8122 VULKAN_HPP_ASSERT( d.vkCmdBeginRendering && "Function <vkCmdBeginRendering> requires <VK_KHR_dynamic_rendering> or <VK_VERSION_1_3>" );
8123 # endif
8124
8125 d.vkCmdBeginRendering( m_commandBuffer, reinterpret_cast<VkRenderingInfo const *>( &renderingInfo ) );
8126 }
8127 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8128
8129 // wrapper function for command vkCmdEndRendering, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering.html
8130 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRendering ), bool>::type>
8131 VULKAN_HPP_INLINE void CommandBuffer::endRendering( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8132 {
8133 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8134 d.vkCmdEndRendering( static_cast<VkCommandBuffer>( m_commandBuffer ) );
8135 }
8136
8137 // wrapper function for command vkCmdSetCullMode, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCullMode.html
8138 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCullMode ), bool>::type>
8139 VULKAN_HPP_INLINE void CommandBuffer::setCullMode( CullModeFlags cullMode, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8140 {
8141 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8142 d.vkCmdSetCullMode( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCullModeFlags>( cullMode ) );
8143 }
8144
8145 // wrapper function for command vkCmdSetFrontFace, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFrontFace.html
8146 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetFrontFace ), bool>::type>
8147 VULKAN_HPP_INLINE void CommandBuffer::setFrontFace( FrontFace frontFace, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8148 {
8149 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8150 d.vkCmdSetFrontFace( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkFrontFace>( frontFace ) );
8151 }
8152
8153 // wrapper function for command vkCmdSetPrimitiveTopology, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveTopology.html
8154 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPrimitiveTopology ), bool>::type>
8155 VULKAN_HPP_INLINE void CommandBuffer::setPrimitiveTopology( PrimitiveTopology primitiveTopology, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8156 {
8157 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8158 d.vkCmdSetPrimitiveTopology( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPrimitiveTopology>( primitiveTopology ) );
8159 }
8160
8161 // wrapper function for command vkCmdSetViewportWithCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWithCount.html
8162 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWithCount ), bool>::type>
8163 VULKAN_HPP_INLINE void CommandBuffer::setViewportWithCount( uint32_t viewportCount, Viewport const * pViewports, Dispatch const & d )
8164 const VULKAN_HPP_NOEXCEPT
8165 {
8166 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8167 d.vkCmdSetViewportWithCount( static_cast<VkCommandBuffer>( m_commandBuffer ), viewportCount, reinterpret_cast<VkViewport const *>( pViewports ) );
8168 }
8169
8170 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8171 // wrapper function for command vkCmdSetViewportWithCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWithCount.html
8172 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWithCount ), bool>::type>
8173 VULKAN_HPP_INLINE void CommandBuffer::setViewportWithCount( ArrayProxy<Viewport const> const & viewports, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8174 {
8175 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8176 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8177 VULKAN_HPP_ASSERT( d.vkCmdSetViewportWithCount &&
8178 "Function <vkCmdSetViewportWithCount> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
8179 # endif
8180
8181 d.vkCmdSetViewportWithCount( m_commandBuffer, viewports.size(), reinterpret_cast<VkViewport const *>( viewports.data() ) );
8182 }
8183 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8184
8185 // wrapper function for command vkCmdSetScissorWithCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissorWithCount.html
8186 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetScissorWithCount ), bool>::type>
8187 VULKAN_HPP_INLINE void CommandBuffer::setScissorWithCount( uint32_t scissorCount, Rect2D const * pScissors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8188 {
8189 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8190 d.vkCmdSetScissorWithCount( static_cast<VkCommandBuffer>( m_commandBuffer ), scissorCount, reinterpret_cast<VkRect2D const *>( pScissors ) );
8191 }
8192
8193 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8194 // wrapper function for command vkCmdSetScissorWithCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissorWithCount.html
8195 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetScissorWithCount ), bool>::type>
8196 VULKAN_HPP_INLINE void CommandBuffer::setScissorWithCount( ArrayProxy<Rect2D const> const & scissors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8197 {
8198 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8199 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8200 VULKAN_HPP_ASSERT( d.vkCmdSetScissorWithCount &&
8201 "Function <vkCmdSetScissorWithCount> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
8202 # endif
8203
8204 d.vkCmdSetScissorWithCount( m_commandBuffer, scissors.size(), reinterpret_cast<VkRect2D const *>( scissors.data() ) );
8205 }
8206 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8207
8208 // wrapper function for command vkCmdBindVertexBuffers2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers2.html
8209 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers2 ), bool>::type>
8210 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers2( uint32_t firstBinding,
8211 uint32_t bindingCount,
8212 Buffer const * pBuffers,
8213 DeviceSize const * pOffsets,
8214 DeviceSize const * pSizes,
8215 DeviceSize const * pStrides,
8216 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8217 {
8218 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8219 d.vkCmdBindVertexBuffers2( static_cast<VkCommandBuffer>( m_commandBuffer ),
8220 firstBinding,
8221 bindingCount,
8222 reinterpret_cast<VkBuffer const *>( pBuffers ),
8223 reinterpret_cast<VkDeviceSize const *>( pOffsets ),
8224 reinterpret_cast<VkDeviceSize const *>( pSizes ),
8225 reinterpret_cast<VkDeviceSize const *>( pStrides ) );
8226 }
8227
8228 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8229 // wrapper function for command vkCmdBindVertexBuffers2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers2.html
8230 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers2 ), bool>::type>
8231 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers2( uint32_t firstBinding,
8232 ArrayProxy<Buffer const> const & buffers,
8233 ArrayProxy<DeviceSize const> const & offsets,
8234 ArrayProxy<DeviceSize const> const & sizes,
8235 ArrayProxy<DeviceSize const> const & strides,
8236 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
8237 {
8238 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8239 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8240 VULKAN_HPP_ASSERT( d.vkCmdBindVertexBuffers2 &&
8241 "Function <vkCmdBindVertexBuffers2> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
8242 # endif
8243 # ifdef VULKAN_HPP_NO_EXCEPTIONS
8244 VULKAN_HPP_ASSERT( buffers.size() == offsets.size() );
8245 VULKAN_HPP_ASSERT( sizes.empty() || buffers.size() == sizes.size() );
8246 VULKAN_HPP_ASSERT( strides.empty() || buffers.size() == strides.size() );
8247 # else
8248 if ( buffers.size() != offsets.size() )
8249 {
8250 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2: buffers.size() != offsets.size()" );
8251 }
8252 if ( !sizes.empty() && buffers.size() != sizes.size() )
8253 {
8254 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2: buffers.size() != sizes.size()" );
8255 }
8256 if ( !strides.empty() && buffers.size() != strides.size() )
8257 {
8258 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2: buffers.size() != strides.size()" );
8259 }
8260 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
8261
8262 d.vkCmdBindVertexBuffers2( m_commandBuffer,
8263 firstBinding,
8264 buffers.size(),
8265 reinterpret_cast<VkBuffer const *>( buffers.data() ),
8266 reinterpret_cast<VkDeviceSize const *>( offsets.data() ),
8267 reinterpret_cast<VkDeviceSize const *>( sizes.data() ),
8268 reinterpret_cast<VkDeviceSize const *>( strides.data() ) );
8269 }
8270 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8271
8272 // wrapper function for command vkCmdSetDepthTestEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthTestEnable.html
8273 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthTestEnable ), bool>::type>
8274 VULKAN_HPP_INLINE void CommandBuffer::setDepthTestEnable( Bool32 depthTestEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8275 {
8276 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8277 d.vkCmdSetDepthTestEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthTestEnable ) );
8278 }
8279
8280 // wrapper function for command vkCmdSetDepthWriteEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthWriteEnable.html
8281 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthWriteEnable ), bool>::type>
8282 VULKAN_HPP_INLINE void CommandBuffer::setDepthWriteEnable( Bool32 depthWriteEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8283 {
8284 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8285 d.vkCmdSetDepthWriteEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthWriteEnable ) );
8286 }
8287
8288 // wrapper function for command vkCmdSetDepthCompareOp, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthCompareOp.html
8289 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthCompareOp ), bool>::type>
8290 VULKAN_HPP_INLINE void CommandBuffer::setDepthCompareOp( CompareOp depthCompareOp, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8291 {
8292 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8293 d.vkCmdSetDepthCompareOp( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCompareOp>( depthCompareOp ) );
8294 }
8295
8296 // wrapper function for command vkCmdSetDepthBoundsTestEnable, see
8297 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBoundsTestEnable.html
8298 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBoundsTestEnable ), bool>::type>
8299 VULKAN_HPP_INLINE void CommandBuffer::setDepthBoundsTestEnable( Bool32 depthBoundsTestEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8300 {
8301 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8302 d.vkCmdSetDepthBoundsTestEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBoundsTestEnable ) );
8303 }
8304
8305 // wrapper function for command vkCmdSetStencilTestEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilTestEnable.html
8306 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilTestEnable ), bool>::type>
8307 VULKAN_HPP_INLINE void CommandBuffer::setStencilTestEnable( Bool32 stencilTestEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8308 {
8309 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8310 d.vkCmdSetStencilTestEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( stencilTestEnable ) );
8311 }
8312
8313 // wrapper function for command vkCmdSetStencilOp, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilOp.html
8314 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilOp ), bool>::type>
8315 VULKAN_HPP_INLINE void CommandBuffer::setStencilOp(
8316 StencilFaceFlags faceMask, StencilOp failOp, StencilOp passOp, StencilOp depthFailOp, CompareOp compareOp, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8317 {
8318 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8319 d.vkCmdSetStencilOp( static_cast<VkCommandBuffer>( m_commandBuffer ),
8320 static_cast<VkStencilFaceFlags>( faceMask ),
8321 static_cast<VkStencilOp>( failOp ),
8322 static_cast<VkStencilOp>( passOp ),
8323 static_cast<VkStencilOp>( depthFailOp ),
8324 static_cast<VkCompareOp>( compareOp ) );
8325 }
8326
8327 // wrapper function for command vkCmdSetRasterizerDiscardEnable, see
8328 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizerDiscardEnable.html
8329 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRasterizerDiscardEnable ), bool>::type>
8330 VULKAN_HPP_INLINE void CommandBuffer::setRasterizerDiscardEnable( Bool32 rasterizerDiscardEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8331 {
8332 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8333 d.vkCmdSetRasterizerDiscardEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( rasterizerDiscardEnable ) );
8334 }
8335
8336 // wrapper function for command vkCmdSetDepthBiasEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBiasEnable.html
8337 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBiasEnable ), bool>::type>
8338 VULKAN_HPP_INLINE void CommandBuffer::setDepthBiasEnable( Bool32 depthBiasEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8339 {
8340 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8341 d.vkCmdSetDepthBiasEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBiasEnable ) );
8342 }
8343
8344 // wrapper function for command vkCmdSetPrimitiveRestartEnable, see
8345 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveRestartEnable.html
8346 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPrimitiveRestartEnable ), bool>::type>
8347 VULKAN_HPP_INLINE void CommandBuffer::setPrimitiveRestartEnable( Bool32 primitiveRestartEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8348 {
8349 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8350 d.vkCmdSetPrimitiveRestartEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( primitiveRestartEnable ) );
8351 }
8352
8353 //=== VK_VERSION_1_4 ===
8354
8355 // wrapper function for command vkMapMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory2.html
8356 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMapMemory2 ), bool>::type>
8357 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::mapMemory2( MemoryMapInfo const * pMemoryMapInfo, void ** ppData, Dispatch const & d )
8358 const VULKAN_HPP_NOEXCEPT
8359 {
8360 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8361 return static_cast<Result>( d.vkMapMemory2( static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryMapInfo const *>( pMemoryMapInfo ), ppData ) );
8362 }
8363
8364 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8365 // wrapper function for command vkMapMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory2.html
8366 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMapMemory2 ), bool>::type>
8367 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<void *>::type Device::mapMemory2( MemoryMapInfo const & memoryMapInfo, Dispatch const & d )
8368 const
8369 {
8370 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8371 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8372 VULKAN_HPP_ASSERT( d.vkMapMemory2 && "Function <vkMapMemory2> requires <VK_KHR_map_memory2> or <VK_VERSION_1_4>" );
8373 # endif
8374
8375 void * pData;
8376 Result result = static_cast<Result>( d.vkMapMemory2( m_device, reinterpret_cast<VkMemoryMapInfo const *>( &memoryMapInfo ), &pData ) );
8377 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mapMemory2" );
8378
8379 return detail::createResultValueType( result, std::move( pData ) );
8380 }
8381 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8382
8383 // wrapper function for command vkUnmapMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory2.html
8384 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUnmapMemory2 ), bool>::type>
8385 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::unmapMemory2( MemoryUnmapInfo const * pMemoryUnmapInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8386 {
8387 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8388 return static_cast<Result>( d.vkUnmapMemory2( static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryUnmapInfo const *>( pMemoryUnmapInfo ) ) );
8389 }
8390
8391 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8392 // wrapper function for command vkUnmapMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory2.html
8393 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUnmapMemory2 ), bool>::type>
8394 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::unmapMemory2( MemoryUnmapInfo const & memoryUnmapInfo,
8395 Dispatch const & d ) const
8396 {
8397 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8398 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8399 VULKAN_HPP_ASSERT( d.vkUnmapMemory2 && "Function <vkUnmapMemory2> requires <VK_KHR_map_memory2> or <VK_VERSION_1_4>" );
8400 # endif
8401
8402 Result result = static_cast<Result>( d.vkUnmapMemory2( m_device, reinterpret_cast<VkMemoryUnmapInfo const *>( &memoryUnmapInfo ) ) );
8403 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::unmapMemory2" );
8404
8405 return detail::createResultValueType( result );
8406 }
8407 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8408
8409 // wrapper function for command vkGetDeviceImageSubresourceLayout, see
8410 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayout.html
8411 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSubresourceLayout ), bool>::type>
8412 VULKAN_HPP_INLINE void Device::getImageSubresourceLayout( DeviceImageSubresourceInfo const * pInfo, SubresourceLayout2 * pLayout, Dispatch const & d )
8413 const VULKAN_HPP_NOEXCEPT
8414 {
8415 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8416 d.vkGetDeviceImageSubresourceLayout(
8417 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceImageSubresourceInfo const *>( pInfo ), reinterpret_cast<VkSubresourceLayout2 *>( pLayout ) );
8418 }
8419
8420 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8421 // wrapper function for command vkGetDeviceImageSubresourceLayout, see
8422 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayout.html
8423 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSubresourceLayout ), bool>::type>
8424 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Device::getImageSubresourceLayout( DeviceImageSubresourceInfo const & info, Dispatch const & d )
8425 const VULKAN_HPP_NOEXCEPT
8426 {
8427 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8428 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8429 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSubresourceLayout &&
8430 "Function <vkGetDeviceImageSubresourceLayout> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
8431 # endif
8432
8433 SubresourceLayout2 layout;
8434 d.vkGetDeviceImageSubresourceLayout(
8435 m_device, reinterpret_cast<VkDeviceImageSubresourceInfo const *>( &info ), reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
8436
8437 return layout;
8438 }
8439
8440 // wrapper function for command vkGetDeviceImageSubresourceLayout, see
8441 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayout.html
8442 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSubresourceLayout ), bool>::type>
8443 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageSubresourceLayout( DeviceImageSubresourceInfo const & info,
8444 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8445 {
8446 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8447 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8448 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSubresourceLayout &&
8449 "Function <vkGetDeviceImageSubresourceLayout> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
8450 # endif
8451
8452 StructureChain<X, Y, Z...> structureChain;
8453 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
8454 d.vkGetDeviceImageSubresourceLayout(
8455 m_device, reinterpret_cast<VkDeviceImageSubresourceInfo const *>( &info ), reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
8456
8457 return structureChain;
8458 }
8459 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8460
8461 // wrapper function for command vkGetImageSubresourceLayout2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2.html
8462 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2 ), bool>::type>
8463 VULKAN_HPP_INLINE void Device::getImageSubresourceLayout2(
8464 Image image, ImageSubresource2 const * pSubresource, SubresourceLayout2 * pLayout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8465 {
8466 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8467 d.vkGetImageSubresourceLayout2( static_cast<VkDevice>( m_device ),
8468 static_cast<VkImage>( image ),
8469 reinterpret_cast<VkImageSubresource2 const *>( pSubresource ),
8470 reinterpret_cast<VkSubresourceLayout2 *>( pLayout ) );
8471 }
8472
8473 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8474 // wrapper function for command vkGetImageSubresourceLayout2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2.html
8475 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2 ), bool>::type>
8476 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Device::getImageSubresourceLayout2(
8477 Image image, ImageSubresource2 const & subresource, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8478 {
8479 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8480 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8481 VULKAN_HPP_ASSERT(
8482 d.vkGetImageSubresourceLayout2 &&
8483 "Function <vkGetImageSubresourceLayout2> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
8484 # endif
8485
8486 SubresourceLayout2 layout;
8487 d.vkGetImageSubresourceLayout2( m_device,
8488 static_cast<VkImage>( image ),
8489 reinterpret_cast<VkImageSubresource2 const *>( &subresource ),
8490 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
8491
8492 return layout;
8493 }
8494
8495 // wrapper function for command vkGetImageSubresourceLayout2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2.html
8496 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2 ), bool>::type>
8497 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageSubresourceLayout2(
8498 Image image, ImageSubresource2 const & subresource, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8499 {
8500 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8501 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8502 VULKAN_HPP_ASSERT(
8503 d.vkGetImageSubresourceLayout2 &&
8504 "Function <vkGetImageSubresourceLayout2> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
8505 # endif
8506
8507 StructureChain<X, Y, Z...> structureChain;
8508 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
8509 d.vkGetImageSubresourceLayout2( m_device,
8510 static_cast<VkImage>( image ),
8511 reinterpret_cast<VkImageSubresource2 const *>( &subresource ),
8512 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
8513
8514 return structureChain;
8515 }
8516 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8517
8518 // wrapper function for command vkCopyMemoryToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImage.html
8519 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToImage ), bool>::type>
8520 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToImage( CopyMemoryToImageInfo const * pCopyMemoryToImageInfo, Dispatch const & d )
8521 const VULKAN_HPP_NOEXCEPT
8522 {
8523 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8524 return static_cast<Result>(
8525 d.vkCopyMemoryToImage( static_cast<VkDevice>( m_device ), reinterpret_cast<VkCopyMemoryToImageInfo const *>( pCopyMemoryToImageInfo ) ) );
8526 }
8527
8528 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8529 // wrapper function for command vkCopyMemoryToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImage.html
8530 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToImage ), bool>::type>
8531 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::copyMemoryToImage(
8532 CopyMemoryToImageInfo const & copyMemoryToImageInfo, Dispatch const & d ) const
8533 {
8534 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8535 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8536 VULKAN_HPP_ASSERT( d.vkCopyMemoryToImage && "Function <vkCopyMemoryToImage> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
8537 # endif
8538
8539 Result result = static_cast<Result>( d.vkCopyMemoryToImage( m_device, reinterpret_cast<VkCopyMemoryToImageInfo const *>( &copyMemoryToImageInfo ) ) );
8540 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyMemoryToImage" );
8541
8542 return detail::createResultValueType( result );
8543 }
8544 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8545
8546 // wrapper function for command vkCopyImageToMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToMemory.html
8547 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToMemory ), bool>::type>
8548 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyImageToMemory( CopyImageToMemoryInfo const * pCopyImageToMemoryInfo, Dispatch const & d )
8549 const VULKAN_HPP_NOEXCEPT
8550 {
8551 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8552 return static_cast<Result>(
8553 d.vkCopyImageToMemory( static_cast<VkDevice>( m_device ), reinterpret_cast<VkCopyImageToMemoryInfo const *>( pCopyImageToMemoryInfo ) ) );
8554 }
8555
8556 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8557 // wrapper function for command vkCopyImageToMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToMemory.html
8558 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToMemory ), bool>::type>
8559 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::copyImageToMemory(
8560 CopyImageToMemoryInfo const & copyImageToMemoryInfo, Dispatch const & d ) const
8561 {
8562 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8563 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8564 VULKAN_HPP_ASSERT( d.vkCopyImageToMemory && "Function <vkCopyImageToMemory> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
8565 # endif
8566
8567 Result result = static_cast<Result>( d.vkCopyImageToMemory( m_device, reinterpret_cast<VkCopyImageToMemoryInfo const *>( &copyImageToMemoryInfo ) ) );
8568 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyImageToMemory" );
8569
8570 return detail::createResultValueType( result );
8571 }
8572 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8573
8574 // wrapper function for command vkCopyImageToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToImage.html
8575 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToImage ), bool>::type>
8576 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyImageToImage( CopyImageToImageInfo const * pCopyImageToImageInfo, Dispatch const & d )
8577 const VULKAN_HPP_NOEXCEPT
8578 {
8579 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8580 return static_cast<Result>(
8581 d.vkCopyImageToImage( static_cast<VkDevice>( m_device ), reinterpret_cast<VkCopyImageToImageInfo const *>( pCopyImageToImageInfo ) ) );
8582 }
8583
8584 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8585 // wrapper function for command vkCopyImageToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToImage.html
8586 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToImage ), bool>::type>
8587 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::copyImageToImage(
8588 CopyImageToImageInfo const & copyImageToImageInfo, Dispatch const & d ) const
8589 {
8590 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8591 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8592 VULKAN_HPP_ASSERT( d.vkCopyImageToImage && "Function <vkCopyImageToImage> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
8593 # endif
8594
8595 Result result = static_cast<Result>( d.vkCopyImageToImage( m_device, reinterpret_cast<VkCopyImageToImageInfo const *>( &copyImageToImageInfo ) ) );
8596 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyImageToImage" );
8597
8598 return detail::createResultValueType( result );
8599 }
8600 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8601
8602 // wrapper function for command vkTransitionImageLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTransitionImageLayout.html
8603 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkTransitionImageLayout ), bool>::type>
8604 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::transitionImageLayout(
8605 uint32_t transitionCount, HostImageLayoutTransitionInfo const * pTransitions, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8606 {
8607 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8608 return static_cast<Result>( d.vkTransitionImageLayout(
8609 static_cast<VkDevice>( m_device ), transitionCount, reinterpret_cast<VkHostImageLayoutTransitionInfo const *>( pTransitions ) ) );
8610 }
8611
8612 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8613 // wrapper function for command vkTransitionImageLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTransitionImageLayout.html
8614 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkTransitionImageLayout ), bool>::type>
8615 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::transitionImageLayout(
8616 ArrayProxy<HostImageLayoutTransitionInfo const> const & transitions, Dispatch const & d ) const
8617 {
8618 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8619 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8620 VULKAN_HPP_ASSERT( d.vkTransitionImageLayout && "Function <vkTransitionImageLayout> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
8621 # endif
8622
8623 Result result = static_cast<Result>(
8624 d.vkTransitionImageLayout( m_device, transitions.size(), reinterpret_cast<VkHostImageLayoutTransitionInfo const *>( transitions.data() ) ) );
8625 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::transitionImageLayout" );
8626
8627 return detail::createResultValueType( result );
8628 }
8629 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8630
8631 // wrapper function for command vkCmdPushDescriptorSet, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet.html
8632 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSet ), bool>::type>
8633 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet( PipelineBindPoint pipelineBindPoint,
8634 PipelineLayout layout,
8635 uint32_t set,
8636 uint32_t descriptorWriteCount,
8637 WriteDescriptorSet const * pDescriptorWrites,
8638 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8639 {
8640 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8641 d.vkCmdPushDescriptorSet( static_cast<VkCommandBuffer>( m_commandBuffer ),
8642 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
8643 static_cast<VkPipelineLayout>( layout ),
8644 set,
8645 descriptorWriteCount,
8646 reinterpret_cast<VkWriteDescriptorSet const *>( pDescriptorWrites ) );
8647 }
8648
8649 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8650 // wrapper function for command vkCmdPushDescriptorSet, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet.html
8651 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSet ), bool>::type>
8652 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet( PipelineBindPoint pipelineBindPoint,
8653 PipelineLayout layout,
8654 uint32_t set,
8655 ArrayProxy<WriteDescriptorSet const> const & descriptorWrites,
8656 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8657 {
8658 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8659 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8660 VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSet && "Function <vkCmdPushDescriptorSet> requires <VK_KHR_push_descriptor> or <VK_VERSION_1_4>" );
8661 # endif
8662
8663 d.vkCmdPushDescriptorSet( m_commandBuffer,
8664 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
8665 static_cast<VkPipelineLayout>( layout ),
8666 set,
8667 descriptorWrites.size(),
8668 reinterpret_cast<VkWriteDescriptorSet const *>( descriptorWrites.data() ) );
8669 }
8670 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8671
8672 // wrapper function for command vkCmdPushDescriptorSetWithTemplate, see
8673 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate.html
8674 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplate ), bool>::type>
8675 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate(
8676 DescriptorUpdateTemplate descriptorUpdateTemplate, PipelineLayout layout, uint32_t set, void const * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8677 {
8678 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8679 d.vkCmdPushDescriptorSetWithTemplate( static_cast<VkCommandBuffer>( m_commandBuffer ),
8680 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
8681 static_cast<VkPipelineLayout>( layout ),
8682 set,
8683 pData );
8684 }
8685
8686 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8687 // wrapper function for command vkCmdPushDescriptorSetWithTemplate, see
8688 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate.html
8689 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplate ), bool>::type>
8690 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate(
8691 DescriptorUpdateTemplate descriptorUpdateTemplate, PipelineLayout layout, uint32_t set, DataType const & data, Dispatch const & d )
8692 const VULKAN_HPP_NOEXCEPT
8693 {
8694 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8695 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8696 VULKAN_HPP_ASSERT(
8697 d.vkCmdPushDescriptorSetWithTemplate &&
8698 "Function <vkCmdPushDescriptorSetWithTemplate> requires <VK_KHR_descriptor_update_template> or <VK_KHR_push_descriptor> or <VK_VERSION_1_4>" );
8699 # endif
8700
8701 d.vkCmdPushDescriptorSetWithTemplate( m_commandBuffer,
8702 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
8703 static_cast<VkPipelineLayout>( layout ),
8704 set,
8705 reinterpret_cast<void const *>( &data ) );
8706 }
8707 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8708
8709 // wrapper function for command vkCmdBindDescriptorSets2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets2.html
8710 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorSets2 ), bool>::type>
8711 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets2( BindDescriptorSetsInfo const * pBindDescriptorSetsInfo, Dispatch const & d )
8712 const VULKAN_HPP_NOEXCEPT
8713 {
8714 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8715 d.vkCmdBindDescriptorSets2( static_cast<VkCommandBuffer>( m_commandBuffer ),
8716 reinterpret_cast<VkBindDescriptorSetsInfo const *>( pBindDescriptorSetsInfo ) );
8717 }
8718
8719 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8720 // wrapper function for command vkCmdBindDescriptorSets2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets2.html
8721 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorSets2 ), bool>::type>
8722 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets2( BindDescriptorSetsInfo const & bindDescriptorSetsInfo, Dispatch const & d )
8723 const VULKAN_HPP_NOEXCEPT
8724 {
8725 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8726 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8727 VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorSets2 && "Function <vkCmdBindDescriptorSets2> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
8728 # endif
8729
8730 d.vkCmdBindDescriptorSets2( m_commandBuffer, reinterpret_cast<VkBindDescriptorSetsInfo const *>( &bindDescriptorSetsInfo ) );
8731 }
8732 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8733
8734 // wrapper function for command vkCmdPushConstants2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants2.html
8735 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushConstants2 ), bool>::type>
8736 VULKAN_HPP_INLINE void CommandBuffer::pushConstants2( PushConstantsInfo const * pPushConstantsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8737 {
8738 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8739 d.vkCmdPushConstants2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkPushConstantsInfo const *>( pPushConstantsInfo ) );
8740 }
8741
8742 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8743 // wrapper function for command vkCmdPushConstants2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants2.html
8744 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushConstants2 ), bool>::type>
8745 VULKAN_HPP_INLINE void CommandBuffer::pushConstants2( PushConstantsInfo const & pushConstantsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8746 {
8747 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8748 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8749 VULKAN_HPP_ASSERT( d.vkCmdPushConstants2 && "Function <vkCmdPushConstants2> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
8750 # endif
8751
8752 d.vkCmdPushConstants2( m_commandBuffer, reinterpret_cast<VkPushConstantsInfo const *>( &pushConstantsInfo ) );
8753 }
8754 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8755
8756 // wrapper function for command vkCmdPushDescriptorSet2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet2.html
8757 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSet2 ), bool>::type>
8758 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet2( PushDescriptorSetInfo const * pPushDescriptorSetInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8759 {
8760 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8761 d.vkCmdPushDescriptorSet2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkPushDescriptorSetInfo const *>( pPushDescriptorSetInfo ) );
8762 }
8763
8764 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8765 // wrapper function for command vkCmdPushDescriptorSet2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet2.html
8766 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSet2 ), bool>::type>
8767 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet2( PushDescriptorSetInfo const & pushDescriptorSetInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8768 {
8769 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8770 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8771 VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSet2 && "Function <vkCmdPushDescriptorSet2> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
8772 # endif
8773
8774 d.vkCmdPushDescriptorSet2( m_commandBuffer, reinterpret_cast<VkPushDescriptorSetInfo const *>( &pushDescriptorSetInfo ) );
8775 }
8776 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8777
8778 // wrapper function for command vkCmdPushDescriptorSetWithTemplate2, see
8779 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate2.html
8780 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplate2 ), bool>::type>
8781 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate2( PushDescriptorSetWithTemplateInfo const * pPushDescriptorSetWithTemplateInfo,
8782 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8783 {
8784 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8785 d.vkCmdPushDescriptorSetWithTemplate2( static_cast<VkCommandBuffer>( m_commandBuffer ),
8786 reinterpret_cast<VkPushDescriptorSetWithTemplateInfo const *>( pPushDescriptorSetWithTemplateInfo ) );
8787 }
8788
8789 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8790 // wrapper function for command vkCmdPushDescriptorSetWithTemplate2, see
8791 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate2.html
8792 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplate2 ), bool>::type>
8793 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate2( PushDescriptorSetWithTemplateInfo const & pushDescriptorSetWithTemplateInfo,
8794 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8795 {
8796 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8797 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8798 VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSetWithTemplate2 &&
8799 "Function <vkCmdPushDescriptorSetWithTemplate2> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
8800 # endif
8801
8802 d.vkCmdPushDescriptorSetWithTemplate2( m_commandBuffer,
8803 reinterpret_cast<VkPushDescriptorSetWithTemplateInfo const *>( &pushDescriptorSetWithTemplateInfo ) );
8804 }
8805 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8806
8807 // wrapper function for command vkCmdSetLineStipple, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStipple.html
8808 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLineStipple ), bool>::type>
8809 VULKAN_HPP_INLINE void CommandBuffer::setLineStipple( uint32_t lineStippleFactor, uint16_t lineStipplePattern, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8810 {
8811 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8812 d.vkCmdSetLineStipple( static_cast<VkCommandBuffer>( m_commandBuffer ), lineStippleFactor, lineStipplePattern );
8813 }
8814
8815 // wrapper function for command vkCmdBindIndexBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer2.html
8816 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindIndexBuffer2 ), bool>::type>
8817 VULKAN_HPP_INLINE void CommandBuffer::bindIndexBuffer2( Buffer buffer, DeviceSize offset, DeviceSize size, IndexType indexType, Dispatch const & d )
8818 const VULKAN_HPP_NOEXCEPT
8819 {
8820 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8821 d.vkCmdBindIndexBuffer2( static_cast<VkCommandBuffer>( m_commandBuffer ),
8822 static_cast<VkBuffer>( buffer ),
8823 static_cast<VkDeviceSize>( offset ),
8824 static_cast<VkDeviceSize>( size ),
8825 static_cast<VkIndexType>( indexType ) );
8826 }
8827
8828 // wrapper function for command vkGetRenderingAreaGranularity, see
8829 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderingAreaGranularity.html
8830 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRenderingAreaGranularity ), bool>::type>
8831 VULKAN_HPP_INLINE void Device::getRenderingAreaGranularity( RenderingAreaInfo const * pRenderingAreaInfo, Extent2D * pGranularity, Dispatch const & d )
8832 const VULKAN_HPP_NOEXCEPT
8833 {
8834 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8835 d.vkGetRenderingAreaGranularity(
8836 static_cast<VkDevice>( m_device ), reinterpret_cast<VkRenderingAreaInfo const *>( pRenderingAreaInfo ), reinterpret_cast<VkExtent2D *>( pGranularity ) );
8837 }
8838
8839 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8840 // wrapper function for command vkGetRenderingAreaGranularity, see
8841 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderingAreaGranularity.html
8842 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRenderingAreaGranularity ), bool>::type>
8843 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Extent2D Device::getRenderingAreaGranularity( RenderingAreaInfo const & renderingAreaInfo, Dispatch const & d )
8844 const VULKAN_HPP_NOEXCEPT
8845 {
8846 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8847 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8848 VULKAN_HPP_ASSERT( d.vkGetRenderingAreaGranularity && "Function <vkGetRenderingAreaGranularity> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
8849 # endif
8850
8851 Extent2D granularity;
8852 d.vkGetRenderingAreaGranularity(
8853 m_device, reinterpret_cast<VkRenderingAreaInfo const *>( &renderingAreaInfo ), reinterpret_cast<VkExtent2D *>( &granularity ) );
8854
8855 return granularity;
8856 }
8857 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8858
8859 // wrapper function for command vkCmdSetRenderingAttachmentLocations, see
8860 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingAttachmentLocations.html
8861 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingAttachmentLocations ), bool>::type>
8862 VULKAN_HPP_INLINE void CommandBuffer::setRenderingAttachmentLocations( RenderingAttachmentLocationInfo const * pLocationInfo, Dispatch const & d )
8863 const VULKAN_HPP_NOEXCEPT
8864 {
8865 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8866 d.vkCmdSetRenderingAttachmentLocations( static_cast<VkCommandBuffer>( m_commandBuffer ),
8867 reinterpret_cast<VkRenderingAttachmentLocationInfo const *>( pLocationInfo ) );
8868 }
8869
8870 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8871 // wrapper function for command vkCmdSetRenderingAttachmentLocations, see
8872 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingAttachmentLocations.html
8873 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingAttachmentLocations ), bool>::type>
8874 VULKAN_HPP_INLINE void CommandBuffer::setRenderingAttachmentLocations( RenderingAttachmentLocationInfo const & locationInfo, Dispatch const & d )
8875 const VULKAN_HPP_NOEXCEPT
8876 {
8877 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8878 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8879 VULKAN_HPP_ASSERT( d.vkCmdSetRenderingAttachmentLocations &&
8880 "Function <vkCmdSetRenderingAttachmentLocations> requires <VK_KHR_dynamic_rendering_local_read> or <VK_VERSION_1_4>" );
8881 # endif
8882
8883 d.vkCmdSetRenderingAttachmentLocations( m_commandBuffer, reinterpret_cast<VkRenderingAttachmentLocationInfo const *>( &locationInfo ) );
8884 }
8885 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8886
8887 // wrapper function for command vkCmdSetRenderingInputAttachmentIndices, see
8888 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingInputAttachmentIndices.html
8889 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingInputAttachmentIndices ), bool>::type>
8890 VULKAN_HPP_INLINE void CommandBuffer::setRenderingInputAttachmentIndices( RenderingInputAttachmentIndexInfo const * pInputAttachmentIndexInfo,
8891 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8892 {
8893 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8894 d.vkCmdSetRenderingInputAttachmentIndices( static_cast<VkCommandBuffer>( m_commandBuffer ),
8895 reinterpret_cast<VkRenderingInputAttachmentIndexInfo const *>( pInputAttachmentIndexInfo ) );
8896 }
8897
8898 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8899 // wrapper function for command vkCmdSetRenderingInputAttachmentIndices, see
8900 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingInputAttachmentIndices.html
8901 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingInputAttachmentIndices ), bool>::type>
8902 VULKAN_HPP_INLINE void CommandBuffer::setRenderingInputAttachmentIndices( RenderingInputAttachmentIndexInfo const & inputAttachmentIndexInfo,
8903 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8904 {
8905 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8906 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8907 VULKAN_HPP_ASSERT( d.vkCmdSetRenderingInputAttachmentIndices &&
8908 "Function <vkCmdSetRenderingInputAttachmentIndices> requires <VK_KHR_dynamic_rendering_local_read> or <VK_VERSION_1_4>" );
8909 # endif
8910
8911 d.vkCmdSetRenderingInputAttachmentIndices( m_commandBuffer, reinterpret_cast<VkRenderingInputAttachmentIndexInfo const *>( &inputAttachmentIndexInfo ) );
8912 }
8913 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8914
8915 //=== VK_KHR_surface ===
8916
8917 // wrapper function for command vkDestroySurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySurfaceKHR.html
8918 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySurfaceKHR ), bool>::type>
8919 VULKAN_HPP_INLINE void Instance::destroySurfaceKHR( SurfaceKHR surface, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8920 {
8921 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8922 d.vkDestroySurfaceKHR(
8923 static_cast<VkInstance>( m_instance ), static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
8924 }
8925
8926 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8927 // wrapper function for command vkDestroySurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySurfaceKHR.html
8928 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySurfaceKHR ), bool>::type>
8929 VULKAN_HPP_INLINE void Instance::destroySurfaceKHR( SurfaceKHR surface, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
8930 const VULKAN_HPP_NOEXCEPT
8931 {
8932 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8933 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8934 VULKAN_HPP_ASSERT( d.vkDestroySurfaceKHR && "Function <vkDestroySurfaceKHR> requires <VK_KHR_surface>" );
8935 # endif
8936
8937 d.vkDestroySurfaceKHR( m_instance, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
8938 }
8939 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8940
8941 // wrapper function for command vkDestroySurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySurfaceKHR.html
8942 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySurfaceKHR ), bool>::type>
8943 VULKAN_HPP_INLINE void Instance::destroy( SurfaceKHR surface, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8944 {
8945 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8946 d.vkDestroySurfaceKHR(
8947 static_cast<VkInstance>( m_instance ), static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
8948 }
8949
8950 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8951 // wrapper function for command vkDestroySurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySurfaceKHR.html
8952 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySurfaceKHR ), bool>::type>
8953 VULKAN_HPP_INLINE void Instance::destroy( SurfaceKHR surface, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8954 {
8955 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8956 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8957 VULKAN_HPP_ASSERT( d.vkDestroySurfaceKHR && "Function <vkDestroySurfaceKHR> requires <VK_KHR_surface>" );
8958 # endif
8959
8960 d.vkDestroySurfaceKHR( m_instance, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
8961 }
8962 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8963
8964 // wrapper function for command vkGetPhysicalDeviceSurfaceSupportKHR, see
8965 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceSupportKHR.html
8966 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceSupportKHR ), bool>::type>
8967 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceSupportKHR(
8968 uint32_t queueFamilyIndex, SurfaceKHR surface, Bool32 * pSupported, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8969 {
8970 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8971 return static_cast<Result>( d.vkGetPhysicalDeviceSurfaceSupportKHR(
8972 static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkBool32 *>( pSupported ) ) );
8973 }
8974
8975 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8976 // wrapper function for command vkGetPhysicalDeviceSurfaceSupportKHR, see
8977 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceSupportKHR.html
8978 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceSupportKHR ), bool>::type>
8979 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Bool32>::type PhysicalDevice::getSurfaceSupportKHR(
8980 uint32_t queueFamilyIndex, SurfaceKHR surface, Dispatch const & d ) const
8981 {
8982 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8983 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8984 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceSupportKHR && "Function <vkGetPhysicalDeviceSurfaceSupportKHR> requires <VK_KHR_surface>" );
8985 # endif
8986
8987 Bool32 supported;
8988 Result result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceSupportKHR(
8989 m_physicalDevice, queueFamilyIndex, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkBool32 *>( &supported ) ) );
8990 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceSupportKHR" );
8991
8992 return detail::createResultValueType( result, std::move( supported ) );
8993 }
8994 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8995
8996 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilitiesKHR, see
8997 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilitiesKHR.html
8998 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilitiesKHR ), bool>::type>
8999 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceCapabilitiesKHR(
9000 SurfaceKHR surface, SurfaceCapabilitiesKHR * pSurfaceCapabilities, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9001 {
9002 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9003 return static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
9004 static_cast<VkSurfaceKHR>( surface ),
9005 reinterpret_cast<VkSurfaceCapabilitiesKHR *>( pSurfaceCapabilities ) ) );
9006 }
9007
9008 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9009 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilitiesKHR, see
9010 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilitiesKHR.html
9011 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilitiesKHR ), bool>::type>
9012 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceCapabilitiesKHR>::type PhysicalDevice::getSurfaceCapabilitiesKHR(
9013 SurfaceKHR surface, Dispatch const & d ) const
9014 {
9015 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9016 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9017 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceCapabilitiesKHR && "Function <vkGetPhysicalDeviceSurfaceCapabilitiesKHR> requires <VK_KHR_surface>" );
9018 # endif
9019
9020 SurfaceCapabilitiesKHR surfaceCapabilities;
9021 Result result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
9022 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkSurfaceCapabilitiesKHR *>( &surfaceCapabilities ) ) );
9023 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilitiesKHR" );
9024
9025 return detail::createResultValueType( result, std::move( surfaceCapabilities ) );
9026 }
9027 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9028
9029 // wrapper function for command vkGetPhysicalDeviceSurfaceFormatsKHR, see
9030 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormatsKHR.html
9031 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormatsKHR ), bool>::type>
9032 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceFormatsKHR(
9033 SurfaceKHR surface, uint32_t * pSurfaceFormatCount, SurfaceFormatKHR * pSurfaceFormats, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9034 {
9035 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9036 return static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormatsKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
9037 static_cast<VkSurfaceKHR>( surface ),
9038 pSurfaceFormatCount,
9039 reinterpret_cast<VkSurfaceFormatKHR *>( pSurfaceFormats ) ) );
9040 }
9041
9042 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9043 // wrapper function for command vkGetPhysicalDeviceSurfaceFormatsKHR, see
9044 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormatsKHR.html
9045 template <typename SurfaceFormatKHRAllocator,
9046 typename Dispatch,
9047 typename std::enable_if<std::is_same<typename SurfaceFormatKHRAllocator::value_type, SurfaceFormatKHR>::value, int>::type,
9048 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormatsKHR ), bool>::type>
9049 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SurfaceFormatKHR, SurfaceFormatKHRAllocator>>::type
9050 PhysicalDevice::getSurfaceFormatsKHR( SurfaceKHR surface, Dispatch const & d ) const
9051 {
9052 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9053 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9054 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceFormatsKHR && "Function <vkGetPhysicalDeviceSurfaceFormatsKHR> requires <VK_KHR_surface>" );
9055 # endif
9056
9057 std::vector<SurfaceFormatKHR, SurfaceFormatKHRAllocator> surfaceFormats;
9058 uint32_t surfaceFormatCount;
9059 Result result;
9060 do
9061 {
9062 result =
9063 static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormatsKHR( m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &surfaceFormatCount, nullptr ) );
9064 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
9065 {
9066 surfaceFormats.resize( surfaceFormatCount );
9067 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormatsKHR(
9068 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &surfaceFormatCount, reinterpret_cast<VkSurfaceFormatKHR *>( surfaceFormats.data() ) ) );
9069 }
9070 } while ( result == Result::eIncomplete );
9071 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormatsKHR" );
9072 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
9073 if ( surfaceFormatCount < surfaceFormats.size() )
9074 {
9075 surfaceFormats.resize( surfaceFormatCount );
9076 }
9077 return detail::createResultValueType( result, std::move( surfaceFormats ) );
9078 }
9079
9080 // wrapper function for command vkGetPhysicalDeviceSurfaceFormatsKHR, see
9081 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormatsKHR.html
9082 template <typename SurfaceFormatKHRAllocator,
9083 typename Dispatch,
9084 typename std::enable_if<std::is_same<typename SurfaceFormatKHRAllocator::value_type, SurfaceFormatKHR>::value, int>::type,
9085 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormatsKHR ), bool>::type>
9086 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SurfaceFormatKHR, SurfaceFormatKHRAllocator>>::type
9087 PhysicalDevice::getSurfaceFormatsKHR( SurfaceKHR surface, SurfaceFormatKHRAllocator const & surfaceFormatKHRAllocator, Dispatch const & d ) const
9088 {
9089 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9090 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9091 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceFormatsKHR && "Function <vkGetPhysicalDeviceSurfaceFormatsKHR> requires <VK_KHR_surface>" );
9092 # endif
9093
9094 std::vector<SurfaceFormatKHR, SurfaceFormatKHRAllocator> surfaceFormats( surfaceFormatKHRAllocator );
9095 uint32_t surfaceFormatCount;
9096 Result result;
9097 do
9098 {
9099 result =
9100 static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormatsKHR( m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &surfaceFormatCount, nullptr ) );
9101 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
9102 {
9103 surfaceFormats.resize( surfaceFormatCount );
9104 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormatsKHR(
9105 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &surfaceFormatCount, reinterpret_cast<VkSurfaceFormatKHR *>( surfaceFormats.data() ) ) );
9106 }
9107 } while ( result == Result::eIncomplete );
9108 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormatsKHR" );
9109 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
9110 if ( surfaceFormatCount < surfaceFormats.size() )
9111 {
9112 surfaceFormats.resize( surfaceFormatCount );
9113 }
9114 return detail::createResultValueType( result, std::move( surfaceFormats ) );
9115 }
9116 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9117
9118 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModesKHR, see
9119 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModesKHR.html
9120 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfacePresentModesKHR ), bool>::type>
9121 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfacePresentModesKHR(
9122 SurfaceKHR surface, uint32_t * pPresentModeCount, PresentModeKHR * pPresentModes, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9123 {
9124 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9125 return static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
9126 static_cast<VkSurfaceKHR>( surface ),
9127 pPresentModeCount,
9128 reinterpret_cast<VkPresentModeKHR *>( pPresentModes ) ) );
9129 }
9130
9131 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9132 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModesKHR, see
9133 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModesKHR.html
9134 template <typename PresentModeKHRAllocator,
9135 typename Dispatch,
9136 typename std::enable_if<std::is_same<typename PresentModeKHRAllocator::value_type, PresentModeKHR>::value, int>::type,
9137 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfacePresentModesKHR ), bool>::type>
9138 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PresentModeKHR, PresentModeKHRAllocator>>::type
9139 PhysicalDevice::getSurfacePresentModesKHR( SurfaceKHR surface, Dispatch const & d ) const
9140 {
9141 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9142 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9143 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfacePresentModesKHR && "Function <vkGetPhysicalDeviceSurfacePresentModesKHR> requires <VK_KHR_surface>" );
9144 # endif
9145
9146 std::vector<PresentModeKHR, PresentModeKHRAllocator> presentModes;
9147 uint32_t presentModeCount;
9148 Result result;
9149 do
9150 {
9151 result = static_cast<Result>(
9152 d.vkGetPhysicalDeviceSurfacePresentModesKHR( m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &presentModeCount, nullptr ) );
9153 if ( ( result == Result::eSuccess ) && presentModeCount )
9154 {
9155 presentModes.resize( presentModeCount );
9156 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModesKHR(
9157 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &presentModeCount, reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
9158 }
9159 } while ( result == Result::eIncomplete );
9160 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModesKHR" );
9161 VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
9162 if ( presentModeCount < presentModes.size() )
9163 {
9164 presentModes.resize( presentModeCount );
9165 }
9166 return detail::createResultValueType( result, std::move( presentModes ) );
9167 }
9168
9169 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModesKHR, see
9170 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModesKHR.html
9171 template <typename PresentModeKHRAllocator,
9172 typename Dispatch,
9173 typename std::enable_if<std::is_same<typename PresentModeKHRAllocator::value_type, PresentModeKHR>::value, int>::type,
9174 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfacePresentModesKHR ), bool>::type>
9175 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PresentModeKHR, PresentModeKHRAllocator>>::type
9176 PhysicalDevice::getSurfacePresentModesKHR( SurfaceKHR surface, PresentModeKHRAllocator const & presentModeKHRAllocator, 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.vkGetPhysicalDeviceSurfacePresentModesKHR && "Function <vkGetPhysicalDeviceSurfacePresentModesKHR> requires <VK_KHR_surface>" );
9181 # endif
9182
9183 std::vector<PresentModeKHR, PresentModeKHRAllocator> presentModes( presentModeKHRAllocator );
9184 uint32_t presentModeCount;
9185 Result result;
9186 do
9187 {
9188 result = static_cast<Result>(
9189 d.vkGetPhysicalDeviceSurfacePresentModesKHR( m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &presentModeCount, nullptr ) );
9190 if ( ( result == Result::eSuccess ) && presentModeCount )
9191 {
9192 presentModes.resize( presentModeCount );
9193 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModesKHR(
9194 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &presentModeCount, reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
9195 }
9196 } while ( result == Result::eIncomplete );
9197 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModesKHR" );
9198 VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
9199 if ( presentModeCount < presentModes.size() )
9200 {
9201 presentModes.resize( presentModeCount );
9202 }
9203 return detail::createResultValueType( result, std::move( presentModes ) );
9204 }
9205 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9206
9207 //=== VK_KHR_swapchain ===
9208
9209 // wrapper function for command vkCreateSwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSwapchainKHR.html
9210 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSwapchainKHR ), bool>::type>
9211 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createSwapchainKHR(
9212 SwapchainCreateInfoKHR const * pCreateInfo, AllocationCallbacks const * pAllocator, SwapchainKHR * pSwapchain, Dispatch const & d )
9213 const VULKAN_HPP_NOEXCEPT
9214 {
9215 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9216 return static_cast<Result>( d.vkCreateSwapchainKHR( static_cast<VkDevice>( m_device ),
9217 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( pCreateInfo ),
9218 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
9219 reinterpret_cast<VkSwapchainKHR *>( pSwapchain ) ) );
9220 }
9221
9222 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9223 // wrapper function for command vkCreateSwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSwapchainKHR.html
9224 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSwapchainKHR ), bool>::type>
9225 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SwapchainKHR>::type Device::createSwapchainKHR(
9226 SwapchainCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
9227 {
9228 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9229 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9230 VULKAN_HPP_ASSERT( d.vkCreateSwapchainKHR && "Function <vkCreateSwapchainKHR> requires <VK_KHR_swapchain>" );
9231 # endif
9232
9233 SwapchainKHR swapchain;
9234 Result result = static_cast<Result>( d.vkCreateSwapchainKHR( m_device,
9235 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( &createInfo ),
9236 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
9237 reinterpret_cast<VkSwapchainKHR *>( &swapchain ) ) );
9238 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSwapchainKHR" );
9239
9240 return detail::createResultValueType( result, std::move( swapchain ) );
9241 }
9242
9243 # ifndef VULKAN_HPP_NO_SMART_HANDLE
9244 // wrapper function for command vkCreateSwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSwapchainKHR.html
9245 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSwapchainKHR ), bool>::type>
9246 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SwapchainKHR, Dispatch>>::type Device::createSwapchainKHRUnique(
9247 SwapchainCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
9248 {
9249 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9250 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9251 VULKAN_HPP_ASSERT( d.vkCreateSwapchainKHR && "Function <vkCreateSwapchainKHR> requires <VK_KHR_swapchain>" );
9252 # endif
9253
9254 SwapchainKHR swapchain;
9255 Result result = static_cast<Result>( d.vkCreateSwapchainKHR( m_device,
9256 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( &createInfo ),
9257 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
9258 reinterpret_cast<VkSwapchainKHR *>( &swapchain ) ) );
9259 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSwapchainKHRUnique" );
9260
9261 return detail::createResultValueType( result,
9262 UniqueHandle<SwapchainKHR, Dispatch>( swapchain, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
9263 }
9264 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
9265 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9266
9267 // wrapper function for command vkDestroySwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySwapchainKHR.html
9268 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySwapchainKHR ), bool>::type>
9269 VULKAN_HPP_INLINE void Device::destroySwapchainKHR( SwapchainKHR swapchain, AllocationCallbacks const * pAllocator, Dispatch const & d )
9270 const VULKAN_HPP_NOEXCEPT
9271 {
9272 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9273 d.vkDestroySwapchainKHR(
9274 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
9275 }
9276
9277 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9278 // wrapper function for command vkDestroySwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySwapchainKHR.html
9279 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySwapchainKHR ), bool>::type>
9280 VULKAN_HPP_INLINE void Device::destroySwapchainKHR( SwapchainKHR swapchain, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
9281 const VULKAN_HPP_NOEXCEPT
9282 {
9283 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9284 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9285 VULKAN_HPP_ASSERT( d.vkDestroySwapchainKHR && "Function <vkDestroySwapchainKHR> requires <VK_KHR_swapchain>" );
9286 # endif
9287
9288 d.vkDestroySwapchainKHR( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
9289 }
9290 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9291
9292 // wrapper function for command vkDestroySwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySwapchainKHR.html
9293 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySwapchainKHR ), bool>::type>
9294 VULKAN_HPP_INLINE void Device::destroy( SwapchainKHR swapchain, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9295 {
9296 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9297 d.vkDestroySwapchainKHR(
9298 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
9299 }
9300
9301 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9302 // wrapper function for command vkDestroySwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySwapchainKHR.html
9303 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySwapchainKHR ), bool>::type>
9304 VULKAN_HPP_INLINE void Device::destroy( SwapchainKHR swapchain, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9305 {
9306 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9307 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9308 VULKAN_HPP_ASSERT( d.vkDestroySwapchainKHR && "Function <vkDestroySwapchainKHR> requires <VK_KHR_swapchain>" );
9309 # endif
9310
9311 d.vkDestroySwapchainKHR( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
9312 }
9313 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9314
9315 // wrapper function for command vkGetSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainImagesKHR.html
9316 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainImagesKHR ), bool>::type>
9317 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSwapchainImagesKHR(
9318 SwapchainKHR swapchain, uint32_t * pSwapchainImageCount, Image * pSwapchainImages, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9319 {
9320 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9321 return static_cast<Result>( d.vkGetSwapchainImagesKHR(
9322 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), pSwapchainImageCount, reinterpret_cast<VkImage *>( pSwapchainImages ) ) );
9323 }
9324
9325 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9326 // wrapper function for command vkGetSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainImagesKHR.html
9327 template <typename ImageAllocator,
9328 typename Dispatch,
9329 typename std::enable_if<std::is_same<typename ImageAllocator::value_type, Image>::value, int>::type,
9330 typename std::enable_if<IS_DISPATCHED( vkGetSwapchainImagesKHR ), bool>::type>
9331 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Image, ImageAllocator>>::type Device::getSwapchainImagesKHR(
9332 SwapchainKHR swapchain, Dispatch const & d ) const
9333 {
9334 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9335 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9336 VULKAN_HPP_ASSERT( d.vkGetSwapchainImagesKHR && "Function <vkGetSwapchainImagesKHR> requires <VK_KHR_swapchain>" );
9337 # endif
9338
9339 std::vector<Image, ImageAllocator> swapchainImages;
9340 uint32_t swapchainImageCount;
9341 Result result;
9342 do
9343 {
9344 result = static_cast<Result>( d.vkGetSwapchainImagesKHR( m_device, static_cast<VkSwapchainKHR>( swapchain ), &swapchainImageCount, nullptr ) );
9345 if ( ( result == Result::eSuccess ) && swapchainImageCount )
9346 {
9347 swapchainImages.resize( swapchainImageCount );
9348 result = static_cast<Result>( d.vkGetSwapchainImagesKHR(
9349 m_device, static_cast<VkSwapchainKHR>( swapchain ), &swapchainImageCount, reinterpret_cast<VkImage *>( swapchainImages.data() ) ) );
9350 }
9351 } while ( result == Result::eIncomplete );
9352 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainImagesKHR" );
9353 VULKAN_HPP_ASSERT( swapchainImageCount <= swapchainImages.size() );
9354 if ( swapchainImageCount < swapchainImages.size() )
9355 {
9356 swapchainImages.resize( swapchainImageCount );
9357 }
9358 return detail::createResultValueType( result, std::move( swapchainImages ) );
9359 }
9360
9361 // wrapper function for command vkGetSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainImagesKHR.html
9362 template <typename ImageAllocator,
9363 typename Dispatch,
9364 typename std::enable_if<std::is_same<typename ImageAllocator::value_type, Image>::value, int>::type,
9365 typename std::enable_if<IS_DISPATCHED( vkGetSwapchainImagesKHR ), bool>::type>
9366 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Image, ImageAllocator>>::type Device::getSwapchainImagesKHR(
9367 SwapchainKHR swapchain, ImageAllocator const & imageAllocator, Dispatch const & d ) const
9368 {
9369 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9370 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9371 VULKAN_HPP_ASSERT( d.vkGetSwapchainImagesKHR && "Function <vkGetSwapchainImagesKHR> requires <VK_KHR_swapchain>" );
9372 # endif
9373
9374 std::vector<Image, ImageAllocator> swapchainImages( imageAllocator );
9375 uint32_t swapchainImageCount;
9376 Result result;
9377 do
9378 {
9379 result = static_cast<Result>( d.vkGetSwapchainImagesKHR( m_device, static_cast<VkSwapchainKHR>( swapchain ), &swapchainImageCount, nullptr ) );
9380 if ( ( result == Result::eSuccess ) && swapchainImageCount )
9381 {
9382 swapchainImages.resize( swapchainImageCount );
9383 result = static_cast<Result>( d.vkGetSwapchainImagesKHR(
9384 m_device, static_cast<VkSwapchainKHR>( swapchain ), &swapchainImageCount, reinterpret_cast<VkImage *>( swapchainImages.data() ) ) );
9385 }
9386 } while ( result == Result::eIncomplete );
9387 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainImagesKHR" );
9388 VULKAN_HPP_ASSERT( swapchainImageCount <= swapchainImages.size() );
9389 if ( swapchainImageCount < swapchainImages.size() )
9390 {
9391 swapchainImages.resize( swapchainImageCount );
9392 }
9393 return detail::createResultValueType( result, std::move( swapchainImages ) );
9394 }
9395 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9396
9397 // wrapper function for command vkAcquireNextImageKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireNextImageKHR.html
9398 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireNextImageKHR ), bool>::type>
9399 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::acquireNextImageKHR(
9400 SwapchainKHR swapchain, uint64_t timeout, Semaphore semaphore, Fence fence, uint32_t * pImageIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9401 {
9402 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9403 return static_cast<Result>( d.vkAcquireNextImageKHR( static_cast<VkDevice>( m_device ),
9404 static_cast<VkSwapchainKHR>( swapchain ),
9405 timeout,
9406 static_cast<VkSemaphore>( semaphore ),
9407 static_cast<VkFence>( fence ),
9408 pImageIndex ) );
9409 }
9410
9411 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9412 // wrapper function for command vkAcquireNextImageKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireNextImageKHR.html
9413 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireNextImageKHR ), bool>::type>
9414 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<uint32_t> Device::acquireNextImageKHR(
9415 SwapchainKHR swapchain, uint64_t timeout, Semaphore semaphore, Fence fence, 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.vkAcquireNextImageKHR && "Function <vkAcquireNextImageKHR> requires <VK_KHR_swapchain>" );
9420 # endif
9421
9422 uint32_t imageIndex;
9423 Result result = static_cast<Result>( d.vkAcquireNextImageKHR(
9424 m_device, static_cast<VkSwapchainKHR>( swapchain ), timeout, static_cast<VkSemaphore>( semaphore ), static_cast<VkFence>( fence ), &imageIndex ) );
9425
9426 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
9427 detail::resultCheck( result,
9428 VULKAN_HPP_NAMESPACE_STRING "::Device::acquireNextImageKHR",
9429 { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
9430 # else
9431 detail::resultCheck(
9432 result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquireNextImageKHR", { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR } );
9433 # endif
9434
9435 return { result, imageIndex };
9436 }
9437 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9438
9439 // wrapper function for command vkQueuePresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueuePresentKHR.html
9440 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueuePresentKHR ), bool>::type>
9441 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::presentKHR( PresentInfoKHR const * pPresentInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9442 {
9443 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9444 return static_cast<Result>( d.vkQueuePresentKHR( static_cast<VkQueue>( m_queue ), reinterpret_cast<VkPresentInfoKHR const *>( pPresentInfo ) ) );
9445 }
9446
9447 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9448 // wrapper function for command vkQueuePresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueuePresentKHR.html
9449 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueuePresentKHR ), bool>::type>
9450 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::presentKHR( PresentInfoKHR const & presentInfo, Dispatch const & d ) const
9451 {
9452 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9453 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9454 VULKAN_HPP_ASSERT( d.vkQueuePresentKHR && "Function <vkQueuePresentKHR> requires <VK_KHR_swapchain>" );
9455 # endif
9456
9457 Result result = static_cast<Result>( d.vkQueuePresentKHR( m_queue, reinterpret_cast<VkPresentInfoKHR const *>( &presentInfo ) ) );
9458
9459 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
9460 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::presentKHR", { Result::eSuccess, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
9461 # else
9462 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::presentKHR", { Result::eSuccess, Result::eSuboptimalKHR } );
9463 # endif
9464
9465 return static_cast<Result>( result );
9466 }
9467 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9468
9469 // wrapper function for command vkGetDeviceGroupPresentCapabilitiesKHR, see
9470 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPresentCapabilitiesKHR.html
9471 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupPresentCapabilitiesKHR ), bool>::type>
9472 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getGroupPresentCapabilitiesKHR( DeviceGroupPresentCapabilitiesKHR * pDeviceGroupPresentCapabilities,
9473 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9474 {
9475 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9476 return static_cast<Result>( d.vkGetDeviceGroupPresentCapabilitiesKHR(
9477 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceGroupPresentCapabilitiesKHR *>( pDeviceGroupPresentCapabilities ) ) );
9478 }
9479
9480 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9481 // wrapper function for command vkGetDeviceGroupPresentCapabilitiesKHR, see
9482 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPresentCapabilitiesKHR.html
9483 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupPresentCapabilitiesKHR ), bool>::type>
9484 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeviceGroupPresentCapabilitiesKHR>::type Device::getGroupPresentCapabilitiesKHR(
9485 Dispatch const & d ) const
9486 {
9487 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9488 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9489 VULKAN_HPP_ASSERT( d.vkGetDeviceGroupPresentCapabilitiesKHR &&
9490 "Function <vkGetDeviceGroupPresentCapabilitiesKHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
9491 # endif
9492
9493 DeviceGroupPresentCapabilitiesKHR deviceGroupPresentCapabilities;
9494 Result result = static_cast<Result>(
9495 d.vkGetDeviceGroupPresentCapabilitiesKHR( m_device, reinterpret_cast<VkDeviceGroupPresentCapabilitiesKHR *>( &deviceGroupPresentCapabilities ) ) );
9496 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupPresentCapabilitiesKHR" );
9497
9498 return detail::createResultValueType( result, std::move( deviceGroupPresentCapabilities ) );
9499 }
9500 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9501
9502 // wrapper function for command vkGetDeviceGroupSurfacePresentModesKHR, see
9503 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupSurfacePresentModesKHR.html
9504 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupSurfacePresentModesKHR ), bool>::type>
9505 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getGroupSurfacePresentModesKHR(
9506 SurfaceKHR surface, DeviceGroupPresentModeFlagsKHR * pModes, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9507 {
9508 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9509 return static_cast<Result>( d.vkGetDeviceGroupSurfacePresentModesKHR(
9510 static_cast<VkDevice>( m_device ), static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( pModes ) ) );
9511 }
9512
9513 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9514 // wrapper function for command vkGetDeviceGroupSurfacePresentModesKHR, see
9515 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupSurfacePresentModesKHR.html
9516 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupSurfacePresentModesKHR ), bool>::type>
9517 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeviceGroupPresentModeFlagsKHR>::type Device::getGroupSurfacePresentModesKHR(
9518 SurfaceKHR surface, Dispatch const & d ) const
9519 {
9520 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9521 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9522 VULKAN_HPP_ASSERT( d.vkGetDeviceGroupSurfacePresentModesKHR &&
9523 "Function <vkGetDeviceGroupSurfacePresentModesKHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
9524 # endif
9525
9526 DeviceGroupPresentModeFlagsKHR modes;
9527 Result result = static_cast<Result>( d.vkGetDeviceGroupSurfacePresentModesKHR(
9528 m_device, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( &modes ) ) );
9529 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupSurfacePresentModesKHR" );
9530
9531 return detail::createResultValueType( result, std::move( modes ) );
9532 }
9533 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9534
9535 // wrapper function for command vkGetPhysicalDevicePresentRectanglesKHR, see
9536 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDevicePresentRectanglesKHR.html
9537 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDevicePresentRectanglesKHR ), bool>::type>
9538 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getPresentRectanglesKHR(
9539 SurfaceKHR surface, uint32_t * pRectCount, Rect2D * pRects, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9540 {
9541 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9542 return static_cast<Result>( d.vkGetPhysicalDevicePresentRectanglesKHR(
9543 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkSurfaceKHR>( surface ), pRectCount, reinterpret_cast<VkRect2D *>( pRects ) ) );
9544 }
9545
9546 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9547 // wrapper function for command vkGetPhysicalDevicePresentRectanglesKHR, see
9548 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDevicePresentRectanglesKHR.html
9549 template <typename Rect2DAllocator,
9550 typename Dispatch,
9551 typename std::enable_if<std::is_same<typename Rect2DAllocator::value_type, Rect2D>::value, int>::type,
9552 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDevicePresentRectanglesKHR ), bool>::type>
9553 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Rect2D, Rect2DAllocator>>::type PhysicalDevice::getPresentRectanglesKHR(
9554 SurfaceKHR surface, Dispatch const & d ) const
9555 {
9556 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9557 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9558 VULKAN_HPP_ASSERT( d.vkGetPhysicalDevicePresentRectanglesKHR &&
9559 "Function <vkGetPhysicalDevicePresentRectanglesKHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
9560 # endif
9561
9562 std::vector<Rect2D, Rect2DAllocator> rects;
9563 uint32_t rectCount;
9564 Result result;
9565 do
9566 {
9567 result = static_cast<Result>( d.vkGetPhysicalDevicePresentRectanglesKHR( m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &rectCount, nullptr ) );
9568 if ( ( result == Result::eSuccess ) && rectCount )
9569 {
9570 rects.resize( rectCount );
9571 result = static_cast<Result>( d.vkGetPhysicalDevicePresentRectanglesKHR(
9572 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &rectCount, reinterpret_cast<VkRect2D *>( rects.data() ) ) );
9573 }
9574 } while ( result == Result::eIncomplete );
9575 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getPresentRectanglesKHR" );
9576 VULKAN_HPP_ASSERT( rectCount <= rects.size() );
9577 if ( rectCount < rects.size() )
9578 {
9579 rects.resize( rectCount );
9580 }
9581 return detail::createResultValueType( result, std::move( rects ) );
9582 }
9583
9584 // wrapper function for command vkGetPhysicalDevicePresentRectanglesKHR, see
9585 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDevicePresentRectanglesKHR.html
9586 template <typename Rect2DAllocator,
9587 typename Dispatch,
9588 typename std::enable_if<std::is_same<typename Rect2DAllocator::value_type, Rect2D>::value, int>::type,
9589 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDevicePresentRectanglesKHR ), bool>::type>
9590 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Rect2D, Rect2DAllocator>>::type PhysicalDevice::getPresentRectanglesKHR(
9591 SurfaceKHR surface, Rect2DAllocator const & rect2DAllocator, Dispatch const & d ) const
9592 {
9593 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9594 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9595 VULKAN_HPP_ASSERT( d.vkGetPhysicalDevicePresentRectanglesKHR &&
9596 "Function <vkGetPhysicalDevicePresentRectanglesKHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
9597 # endif
9598
9599 std::vector<Rect2D, Rect2DAllocator> rects( rect2DAllocator );
9600 uint32_t rectCount;
9601 Result result;
9602 do
9603 {
9604 result = static_cast<Result>( d.vkGetPhysicalDevicePresentRectanglesKHR( m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &rectCount, nullptr ) );
9605 if ( ( result == Result::eSuccess ) && rectCount )
9606 {
9607 rects.resize( rectCount );
9608 result = static_cast<Result>( d.vkGetPhysicalDevicePresentRectanglesKHR(
9609 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &rectCount, reinterpret_cast<VkRect2D *>( rects.data() ) ) );
9610 }
9611 } while ( result == Result::eIncomplete );
9612 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getPresentRectanglesKHR" );
9613 VULKAN_HPP_ASSERT( rectCount <= rects.size() );
9614 if ( rectCount < rects.size() )
9615 {
9616 rects.resize( rectCount );
9617 }
9618 return detail::createResultValueType( result, std::move( rects ) );
9619 }
9620 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9621
9622 // wrapper function for command vkAcquireNextImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireNextImage2KHR.html
9623 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireNextImage2KHR ), bool>::type>
9624 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::acquireNextImage2KHR(
9625 AcquireNextImageInfoKHR const * pAcquireInfo, uint32_t * pImageIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9626 {
9627 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9628 return static_cast<Result>(
9629 d.vkAcquireNextImage2KHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkAcquireNextImageInfoKHR const *>( pAcquireInfo ), pImageIndex ) );
9630 }
9631
9632 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9633 // wrapper function for command vkAcquireNextImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireNextImage2KHR.html
9634 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireNextImage2KHR ), bool>::type>
9635 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<uint32_t> Device::acquireNextImage2KHR( AcquireNextImageInfoKHR const & acquireInfo, Dispatch const & d )
9636 const
9637 {
9638 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9639 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9640 VULKAN_HPP_ASSERT( d.vkAcquireNextImage2KHR && "Function <vkAcquireNextImage2KHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
9641 # endif
9642
9643 uint32_t imageIndex;
9644 Result result =
9645 static_cast<Result>( d.vkAcquireNextImage2KHR( m_device, reinterpret_cast<VkAcquireNextImageInfoKHR const *>( &acquireInfo ), &imageIndex ) );
9646
9647 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
9648 detail::resultCheck( result,
9649 VULKAN_HPP_NAMESPACE_STRING "::Device::acquireNextImage2KHR",
9650 { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
9651 # else
9652 detail::resultCheck(
9653 result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquireNextImage2KHR", { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR } );
9654 # endif
9655
9656 return { result, imageIndex };
9657 }
9658 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9659
9660 //=== VK_KHR_display ===
9661
9662 // wrapper function for command vkGetPhysicalDeviceDisplayPropertiesKHR, see
9663 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPropertiesKHR.html
9664 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPropertiesKHR ), bool>::type>
9665 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayPropertiesKHR(
9666 uint32_t * pPropertyCount, DisplayPropertiesKHR * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9667 {
9668 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9669 return static_cast<Result>( d.vkGetPhysicalDeviceDisplayPropertiesKHR(
9670 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkDisplayPropertiesKHR *>( pProperties ) ) );
9671 }
9672
9673 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9674 // wrapper function for command vkGetPhysicalDeviceDisplayPropertiesKHR, see
9675 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPropertiesKHR.html
9676 template <typename DisplayPropertiesKHRAllocator,
9677 typename Dispatch,
9678 typename std::enable_if<std::is_same<typename DisplayPropertiesKHRAllocator::value_type, DisplayPropertiesKHR>::value, int>::type,
9679 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPropertiesKHR ), bool>::type>
9680 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPropertiesKHR, DisplayPropertiesKHRAllocator>>::type
9681 PhysicalDevice::getDisplayPropertiesKHR( Dispatch const & d ) const
9682 {
9683 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9684 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9685 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayPropertiesKHR && "Function <vkGetPhysicalDeviceDisplayPropertiesKHR> requires <VK_KHR_display>" );
9686 # endif
9687
9688 std::vector<DisplayPropertiesKHR, DisplayPropertiesKHRAllocator> properties;
9689 uint32_t propertyCount;
9690 Result result;
9691 do
9692 {
9693 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
9694 if ( ( result == Result::eSuccess ) && propertyCount )
9695 {
9696 properties.resize( propertyCount );
9697 result = static_cast<Result>(
9698 d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPropertiesKHR *>( properties.data() ) ) );
9699 }
9700 } while ( result == Result::eIncomplete );
9701 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPropertiesKHR" );
9702 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
9703 if ( propertyCount < properties.size() )
9704 {
9705 properties.resize( propertyCount );
9706 }
9707 return detail::createResultValueType( result, std::move( properties ) );
9708 }
9709
9710 // wrapper function for command vkGetPhysicalDeviceDisplayPropertiesKHR, see
9711 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPropertiesKHR.html
9712 template <typename DisplayPropertiesKHRAllocator,
9713 typename Dispatch,
9714 typename std::enable_if<std::is_same<typename DisplayPropertiesKHRAllocator::value_type, DisplayPropertiesKHR>::value, int>::type,
9715 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPropertiesKHR ), bool>::type>
9716 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPropertiesKHR, DisplayPropertiesKHRAllocator>>::type
9717 PhysicalDevice::getDisplayPropertiesKHR( DisplayPropertiesKHRAllocator const & displayPropertiesKHRAllocator, Dispatch const & d ) const
9718 {
9719 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9720 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9721 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayPropertiesKHR && "Function <vkGetPhysicalDeviceDisplayPropertiesKHR> requires <VK_KHR_display>" );
9722 # endif
9723
9724 std::vector<DisplayPropertiesKHR, DisplayPropertiesKHRAllocator> properties( displayPropertiesKHRAllocator );
9725 uint32_t propertyCount;
9726 Result result;
9727 do
9728 {
9729 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
9730 if ( ( result == Result::eSuccess ) && propertyCount )
9731 {
9732 properties.resize( propertyCount );
9733 result = static_cast<Result>(
9734 d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPropertiesKHR *>( properties.data() ) ) );
9735 }
9736 } while ( result == Result::eIncomplete );
9737 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPropertiesKHR" );
9738 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
9739 if ( propertyCount < properties.size() )
9740 {
9741 properties.resize( propertyCount );
9742 }
9743 return detail::createResultValueType( result, std::move( properties ) );
9744 }
9745 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9746
9747 // wrapper function for command vkGetPhysicalDeviceDisplayPlanePropertiesKHR, see
9748 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlanePropertiesKHR.html
9749 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPlanePropertiesKHR ), bool>::type>
9750 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayPlanePropertiesKHR(
9751 uint32_t * pPropertyCount, DisplayPlanePropertiesKHR * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9752 {
9753 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9754 return static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
9755 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkDisplayPlanePropertiesKHR *>( pProperties ) ) );
9756 }
9757
9758 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9759 // wrapper function for command vkGetPhysicalDeviceDisplayPlanePropertiesKHR, see
9760 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlanePropertiesKHR.html
9761 template <typename DisplayPlanePropertiesKHRAllocator,
9762 typename Dispatch,
9763 typename std::enable_if<std::is_same<typename DisplayPlanePropertiesKHRAllocator::value_type, DisplayPlanePropertiesKHR>::value, int>::type,
9764 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPlanePropertiesKHR ), bool>::type>
9765 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPlanePropertiesKHR, DisplayPlanePropertiesKHRAllocator>>::type
9766 PhysicalDevice::getDisplayPlanePropertiesKHR( Dispatch const & d ) const
9767 {
9768 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9769 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9770 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR && "Function <vkGetPhysicalDeviceDisplayPlanePropertiesKHR> requires <VK_KHR_display>" );
9771 # endif
9772
9773 std::vector<DisplayPlanePropertiesKHR, DisplayPlanePropertiesKHRAllocator> properties;
9774 uint32_t propertyCount;
9775 Result result;
9776 do
9777 {
9778 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
9779 if ( ( result == Result::eSuccess ) && propertyCount )
9780 {
9781 properties.resize( propertyCount );
9782 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
9783 m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPlanePropertiesKHR *>( properties.data() ) ) );
9784 }
9785 } while ( result == Result::eIncomplete );
9786 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlanePropertiesKHR" );
9787 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
9788 if ( propertyCount < properties.size() )
9789 {
9790 properties.resize( propertyCount );
9791 }
9792 return detail::createResultValueType( result, std::move( properties ) );
9793 }
9794
9795 // wrapper function for command vkGetPhysicalDeviceDisplayPlanePropertiesKHR, see
9796 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlanePropertiesKHR.html
9797 template <typename DisplayPlanePropertiesKHRAllocator,
9798 typename Dispatch,
9799 typename std::enable_if<std::is_same<typename DisplayPlanePropertiesKHRAllocator::value_type, DisplayPlanePropertiesKHR>::value, int>::type,
9800 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPlanePropertiesKHR ), bool>::type>
9801 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPlanePropertiesKHR, DisplayPlanePropertiesKHRAllocator>>::type
9802 PhysicalDevice::getDisplayPlanePropertiesKHR( DisplayPlanePropertiesKHRAllocator const & displayPlanePropertiesKHRAllocator, Dispatch const & d ) const
9803 {
9804 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9805 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9806 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR && "Function <vkGetPhysicalDeviceDisplayPlanePropertiesKHR> requires <VK_KHR_display>" );
9807 # endif
9808
9809 std::vector<DisplayPlanePropertiesKHR, DisplayPlanePropertiesKHRAllocator> properties( displayPlanePropertiesKHRAllocator );
9810 uint32_t propertyCount;
9811 Result result;
9812 do
9813 {
9814 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
9815 if ( ( result == Result::eSuccess ) && propertyCount )
9816 {
9817 properties.resize( propertyCount );
9818 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
9819 m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPlanePropertiesKHR *>( properties.data() ) ) );
9820 }
9821 } while ( result == Result::eIncomplete );
9822 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlanePropertiesKHR" );
9823 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
9824 if ( propertyCount < properties.size() )
9825 {
9826 properties.resize( propertyCount );
9827 }
9828 return detail::createResultValueType( result, std::move( properties ) );
9829 }
9830 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9831
9832 // wrapper function for command vkGetDisplayPlaneSupportedDisplaysKHR, see
9833 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneSupportedDisplaysKHR.html
9834 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneSupportedDisplaysKHR ), bool>::type>
9835 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR(
9836 uint32_t planeIndex, uint32_t * pDisplayCount, DisplayKHR * pDisplays, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9837 {
9838 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9839 return static_cast<Result>( d.vkGetDisplayPlaneSupportedDisplaysKHR(
9840 static_cast<VkPhysicalDevice>( m_physicalDevice ), planeIndex, pDisplayCount, reinterpret_cast<VkDisplayKHR *>( pDisplays ) ) );
9841 }
9842
9843 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9844 // wrapper function for command vkGetDisplayPlaneSupportedDisplaysKHR, see
9845 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneSupportedDisplaysKHR.html
9846 template <typename DisplayKHRAllocator,
9847 typename Dispatch,
9848 typename std::enable_if<std::is_same<typename DisplayKHRAllocator::value_type, DisplayKHR>::value, int>::type,
9849 typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneSupportedDisplaysKHR ), bool>::type>
9850 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayKHR, DisplayKHRAllocator>>::type
9851 PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR( uint32_t planeIndex, Dispatch const & d ) const
9852 {
9853 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9854 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9855 VULKAN_HPP_ASSERT( d.vkGetDisplayPlaneSupportedDisplaysKHR && "Function <vkGetDisplayPlaneSupportedDisplaysKHR> requires <VK_KHR_display>" );
9856 # endif
9857
9858 std::vector<DisplayKHR, DisplayKHRAllocator> displays;
9859 uint32_t displayCount;
9860 Result result;
9861 do
9862 {
9863 result = static_cast<Result>( d.vkGetDisplayPlaneSupportedDisplaysKHR( m_physicalDevice, planeIndex, &displayCount, nullptr ) );
9864 if ( ( result == Result::eSuccess ) && displayCount )
9865 {
9866 displays.resize( displayCount );
9867 result = static_cast<Result>(
9868 d.vkGetDisplayPlaneSupportedDisplaysKHR( m_physicalDevice, planeIndex, &displayCount, reinterpret_cast<VkDisplayKHR *>( displays.data() ) ) );
9869 }
9870 } while ( result == Result::eIncomplete );
9871 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR" );
9872 VULKAN_HPP_ASSERT( displayCount <= displays.size() );
9873 if ( displayCount < displays.size() )
9874 {
9875 displays.resize( displayCount );
9876 }
9877 return detail::createResultValueType( result, std::move( displays ) );
9878 }
9879
9880 // wrapper function for command vkGetDisplayPlaneSupportedDisplaysKHR, see
9881 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneSupportedDisplaysKHR.html
9882 template <typename DisplayKHRAllocator,
9883 typename Dispatch,
9884 typename std::enable_if<std::is_same<typename DisplayKHRAllocator::value_type, DisplayKHR>::value, int>::type,
9885 typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneSupportedDisplaysKHR ), bool>::type>
9886 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayKHR, DisplayKHRAllocator>>::type
9887 PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR( uint32_t planeIndex, DisplayKHRAllocator const & displayKHRAllocator, Dispatch const & d ) const
9888 {
9889 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9890 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9891 VULKAN_HPP_ASSERT( d.vkGetDisplayPlaneSupportedDisplaysKHR && "Function <vkGetDisplayPlaneSupportedDisplaysKHR> requires <VK_KHR_display>" );
9892 # endif
9893
9894 std::vector<DisplayKHR, DisplayKHRAllocator> displays( displayKHRAllocator );
9895 uint32_t displayCount;
9896 Result result;
9897 do
9898 {
9899 result = static_cast<Result>( d.vkGetDisplayPlaneSupportedDisplaysKHR( m_physicalDevice, planeIndex, &displayCount, nullptr ) );
9900 if ( ( result == Result::eSuccess ) && displayCount )
9901 {
9902 displays.resize( displayCount );
9903 result = static_cast<Result>(
9904 d.vkGetDisplayPlaneSupportedDisplaysKHR( m_physicalDevice, planeIndex, &displayCount, reinterpret_cast<VkDisplayKHR *>( displays.data() ) ) );
9905 }
9906 } while ( result == Result::eIncomplete );
9907 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR" );
9908 VULKAN_HPP_ASSERT( displayCount <= displays.size() );
9909 if ( displayCount < displays.size() )
9910 {
9911 displays.resize( displayCount );
9912 }
9913 return detail::createResultValueType( result, std::move( displays ) );
9914 }
9915 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9916
9917 // wrapper function for command vkGetDisplayModePropertiesKHR, see
9918 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModePropertiesKHR.html
9919 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayModePropertiesKHR ), bool>::type>
9920 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayModePropertiesKHR(
9921 DisplayKHR display, uint32_t * pPropertyCount, DisplayModePropertiesKHR * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9922 {
9923 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9924 return static_cast<Result>( d.vkGetDisplayModePropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
9925 static_cast<VkDisplayKHR>( display ),
9926 pPropertyCount,
9927 reinterpret_cast<VkDisplayModePropertiesKHR *>( pProperties ) ) );
9928 }
9929
9930 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9931 // wrapper function for command vkGetDisplayModePropertiesKHR, see
9932 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModePropertiesKHR.html
9933 template <typename DisplayModePropertiesKHRAllocator,
9934 typename Dispatch,
9935 typename std::enable_if<std::is_same<typename DisplayModePropertiesKHRAllocator::value_type, DisplayModePropertiesKHR>::value, int>::type,
9936 typename std::enable_if<IS_DISPATCHED( vkGetDisplayModePropertiesKHR ), bool>::type>
9937 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayModePropertiesKHR, DisplayModePropertiesKHRAllocator>>::type
9938 PhysicalDevice::getDisplayModePropertiesKHR( DisplayKHR display, Dispatch const & d ) const
9939 {
9940 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9941 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9942 VULKAN_HPP_ASSERT( d.vkGetDisplayModePropertiesKHR && "Function <vkGetDisplayModePropertiesKHR> requires <VK_KHR_display>" );
9943 # endif
9944
9945 std::vector<DisplayModePropertiesKHR, DisplayModePropertiesKHRAllocator> properties;
9946 uint32_t propertyCount;
9947 Result result;
9948 do
9949 {
9950 result = static_cast<Result>( d.vkGetDisplayModePropertiesKHR( m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, nullptr ) );
9951 if ( ( result == Result::eSuccess ) && propertyCount )
9952 {
9953 properties.resize( propertyCount );
9954 result = static_cast<Result>( d.vkGetDisplayModePropertiesKHR(
9955 m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, reinterpret_cast<VkDisplayModePropertiesKHR *>( properties.data() ) ) );
9956 }
9957 } while ( result == Result::eIncomplete );
9958 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModePropertiesKHR" );
9959 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
9960 if ( propertyCount < properties.size() )
9961 {
9962 properties.resize( propertyCount );
9963 }
9964 return detail::createResultValueType( result, std::move( properties ) );
9965 }
9966
9967 // wrapper function for command vkGetDisplayModePropertiesKHR, see
9968 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModePropertiesKHR.html
9969 template <typename DisplayModePropertiesKHRAllocator,
9970 typename Dispatch,
9971 typename std::enable_if<std::is_same<typename DisplayModePropertiesKHRAllocator::value_type, DisplayModePropertiesKHR>::value, int>::type,
9972 typename std::enable_if<IS_DISPATCHED( vkGetDisplayModePropertiesKHR ), bool>::type>
9973 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayModePropertiesKHR, DisplayModePropertiesKHRAllocator>>::type
9974 PhysicalDevice::getDisplayModePropertiesKHR(
9975 DisplayKHR display, DisplayModePropertiesKHRAllocator const & displayModePropertiesKHRAllocator, Dispatch const & d ) const
9976 {
9977 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9978 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9979 VULKAN_HPP_ASSERT( d.vkGetDisplayModePropertiesKHR && "Function <vkGetDisplayModePropertiesKHR> requires <VK_KHR_display>" );
9980 # endif
9981
9982 std::vector<DisplayModePropertiesKHR, DisplayModePropertiesKHRAllocator> properties( displayModePropertiesKHRAllocator );
9983 uint32_t propertyCount;
9984 Result result;
9985 do
9986 {
9987 result = static_cast<Result>( d.vkGetDisplayModePropertiesKHR( m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, nullptr ) );
9988 if ( ( result == Result::eSuccess ) && propertyCount )
9989 {
9990 properties.resize( propertyCount );
9991 result = static_cast<Result>( d.vkGetDisplayModePropertiesKHR(
9992 m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, reinterpret_cast<VkDisplayModePropertiesKHR *>( properties.data() ) ) );
9993 }
9994 } while ( result == Result::eIncomplete );
9995 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModePropertiesKHR" );
9996 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
9997 if ( propertyCount < properties.size() )
9998 {
9999 properties.resize( propertyCount );
10000 }
10001 return detail::createResultValueType( result, std::move( properties ) );
10002 }
10003 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10004
10005 // wrapper function for command vkCreateDisplayModeKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayModeKHR.html
10006 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDisplayModeKHR ), bool>::type>
10007 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::createDisplayModeKHR(
10008 DisplayKHR display, DisplayModeCreateInfoKHR const * pCreateInfo, AllocationCallbacks const * pAllocator, DisplayModeKHR * pMode, Dispatch const & d )
10009 const VULKAN_HPP_NOEXCEPT
10010 {
10011 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10012 return static_cast<Result>( d.vkCreateDisplayModeKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
10013 static_cast<VkDisplayKHR>( display ),
10014 reinterpret_cast<VkDisplayModeCreateInfoKHR const *>( pCreateInfo ),
10015 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
10016 reinterpret_cast<VkDisplayModeKHR *>( pMode ) ) );
10017 }
10018
10019 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10020 // wrapper function for command vkCreateDisplayModeKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayModeKHR.html
10021 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDisplayModeKHR ), bool>::type>
10022 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayModeKHR>::type PhysicalDevice::createDisplayModeKHR(
10023 DisplayKHR display, DisplayModeCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10024 {
10025 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10026 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10027 VULKAN_HPP_ASSERT( d.vkCreateDisplayModeKHR && "Function <vkCreateDisplayModeKHR> requires <VK_KHR_display>" );
10028 # endif
10029
10030 DisplayModeKHR mode;
10031 Result result = static_cast<Result>( d.vkCreateDisplayModeKHR( m_physicalDevice,
10032 static_cast<VkDisplayKHR>( display ),
10033 reinterpret_cast<VkDisplayModeCreateInfoKHR const *>( &createInfo ),
10034 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10035 reinterpret_cast<VkDisplayModeKHR *>( &mode ) ) );
10036 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::createDisplayModeKHR" );
10037
10038 return detail::createResultValueType( result, std::move( mode ) );
10039 }
10040
10041 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10042 // wrapper function for command vkCreateDisplayModeKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayModeKHR.html
10043 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDisplayModeKHR ), bool>::type>
10044 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DisplayModeKHR, Dispatch>>::type PhysicalDevice::createDisplayModeKHRUnique(
10045 DisplayKHR display, DisplayModeCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10046 {
10047 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10048 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10049 VULKAN_HPP_ASSERT( d.vkCreateDisplayModeKHR && "Function <vkCreateDisplayModeKHR> requires <VK_KHR_display>" );
10050 # endif
10051
10052 DisplayModeKHR mode;
10053 Result result = static_cast<Result>( d.vkCreateDisplayModeKHR( m_physicalDevice,
10054 static_cast<VkDisplayKHR>( display ),
10055 reinterpret_cast<VkDisplayModeCreateInfoKHR const *>( &createInfo ),
10056 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10057 reinterpret_cast<VkDisplayModeKHR *>( &mode ) ) );
10058 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::createDisplayModeKHRUnique" );
10059
10060 return detail::createResultValueType(
10061 result, UniqueHandle<DisplayModeKHR, Dispatch>( mode, detail::DummyDestroy<PhysicalDevice, Dispatch>( *this, allocator, d ) ) );
10062 }
10063 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10064 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10065
10066 // wrapper function for command vkGetDisplayPlaneCapabilitiesKHR, see
10067 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneCapabilitiesKHR.html
10068 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneCapabilitiesKHR ), bool>::type>
10069 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayPlaneCapabilitiesKHR(
10070 DisplayModeKHR mode, uint32_t planeIndex, DisplayPlaneCapabilitiesKHR * pCapabilities, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10071 {
10072 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10073 return static_cast<Result>( d.vkGetDisplayPlaneCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
10074 static_cast<VkDisplayModeKHR>( mode ),
10075 planeIndex,
10076 reinterpret_cast<VkDisplayPlaneCapabilitiesKHR *>( pCapabilities ) ) );
10077 }
10078
10079 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10080 // wrapper function for command vkGetDisplayPlaneCapabilitiesKHR, see
10081 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneCapabilitiesKHR.html
10082 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneCapabilitiesKHR ), bool>::type>
10083 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayPlaneCapabilitiesKHR>::type PhysicalDevice::getDisplayPlaneCapabilitiesKHR(
10084 DisplayModeKHR mode, uint32_t planeIndex, Dispatch const & d ) const
10085 {
10086 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10087 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10088 VULKAN_HPP_ASSERT( d.vkGetDisplayPlaneCapabilitiesKHR && "Function <vkGetDisplayPlaneCapabilitiesKHR> requires <VK_KHR_display>" );
10089 # endif
10090
10091 DisplayPlaneCapabilitiesKHR capabilities;
10092 Result result = static_cast<Result>( d.vkGetDisplayPlaneCapabilitiesKHR(
10093 m_physicalDevice, static_cast<VkDisplayModeKHR>( mode ), planeIndex, reinterpret_cast<VkDisplayPlaneCapabilitiesKHR *>( &capabilities ) ) );
10094 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneCapabilitiesKHR" );
10095
10096 return detail::createResultValueType( result, std::move( capabilities ) );
10097 }
10098 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10099
10100 // wrapper function for command vkCreateDisplayPlaneSurfaceKHR, see
10101 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayPlaneSurfaceKHR.html
10102 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDisplayPlaneSurfaceKHR ), bool>::type>
10103 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createDisplayPlaneSurfaceKHR(
10104 DisplaySurfaceCreateInfoKHR const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d )
10105 const VULKAN_HPP_NOEXCEPT
10106 {
10107 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10108 return static_cast<Result>( d.vkCreateDisplayPlaneSurfaceKHR( static_cast<VkInstance>( m_instance ),
10109 reinterpret_cast<VkDisplaySurfaceCreateInfoKHR const *>( pCreateInfo ),
10110 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
10111 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
10112 }
10113
10114 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10115 // wrapper function for command vkCreateDisplayPlaneSurfaceKHR, see
10116 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayPlaneSurfaceKHR.html
10117 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDisplayPlaneSurfaceKHR ), bool>::type>
10118 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createDisplayPlaneSurfaceKHR(
10119 DisplaySurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10120 {
10121 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10122 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10123 VULKAN_HPP_ASSERT( d.vkCreateDisplayPlaneSurfaceKHR && "Function <vkCreateDisplayPlaneSurfaceKHR> requires <VK_KHR_display>" );
10124 # endif
10125
10126 SurfaceKHR surface;
10127 Result result = static_cast<Result>( d.vkCreateDisplayPlaneSurfaceKHR( m_instance,
10128 reinterpret_cast<VkDisplaySurfaceCreateInfoKHR const *>( &createInfo ),
10129 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10130 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10131 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDisplayPlaneSurfaceKHR" );
10132
10133 return detail::createResultValueType( result, std::move( surface ) );
10134 }
10135
10136 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10137 // wrapper function for command vkCreateDisplayPlaneSurfaceKHR, see
10138 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayPlaneSurfaceKHR.html
10139 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDisplayPlaneSurfaceKHR ), bool>::type>
10140 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createDisplayPlaneSurfaceKHRUnique(
10141 DisplaySurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10142 {
10143 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10144 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10145 VULKAN_HPP_ASSERT( d.vkCreateDisplayPlaneSurfaceKHR && "Function <vkCreateDisplayPlaneSurfaceKHR> requires <VK_KHR_display>" );
10146 # endif
10147
10148 SurfaceKHR surface;
10149 Result result = static_cast<Result>( d.vkCreateDisplayPlaneSurfaceKHR( m_instance,
10150 reinterpret_cast<VkDisplaySurfaceCreateInfoKHR const *>( &createInfo ),
10151 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10152 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10153 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDisplayPlaneSurfaceKHRUnique" );
10154
10155 return detail::createResultValueType( result,
10156 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10157 }
10158 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10159 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10160
10161 //=== VK_KHR_display_swapchain ===
10162
10163 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10164 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10165 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createSharedSwapchainsKHR( uint32_t swapchainCount,
10166 SwapchainCreateInfoKHR const * pCreateInfos,
10167 AllocationCallbacks const * pAllocator,
10168 SwapchainKHR * pSwapchains,
10169 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10170 {
10171 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10172 return static_cast<Result>( d.vkCreateSharedSwapchainsKHR( static_cast<VkDevice>( m_device ),
10173 swapchainCount,
10174 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( pCreateInfos ),
10175 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
10176 reinterpret_cast<VkSwapchainKHR *>( pSwapchains ) ) );
10177 }
10178
10179 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10180 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10181 template <typename SwapchainKHRAllocator,
10182 typename Dispatch,
10183 typename std::enable_if<std::is_same<typename SwapchainKHRAllocator::value_type, SwapchainKHR>::value, int>::type,
10184 typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10185 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SwapchainKHR, SwapchainKHRAllocator>>::type Device::createSharedSwapchainsKHR(
10186 ArrayProxy<SwapchainCreateInfoKHR const> const & createInfos, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10187 {
10188 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10189 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10190 VULKAN_HPP_ASSERT( d.vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
10191 # endif
10192
10193 std::vector<SwapchainKHR, SwapchainKHRAllocator> swapchains( createInfos.size() );
10194 Result result = static_cast<Result>( d.vkCreateSharedSwapchainsKHR( m_device,
10195 createInfos.size(),
10196 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( createInfos.data() ),
10197 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10198 reinterpret_cast<VkSwapchainKHR *>( swapchains.data() ) ) );
10199 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHR" );
10200
10201 return detail::createResultValueType( result, std::move( swapchains ) );
10202 }
10203
10204 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10205 template <typename SwapchainKHRAllocator,
10206 typename Dispatch,
10207 typename std::enable_if<std::is_same<typename SwapchainKHRAllocator::value_type, SwapchainKHR>::value, int>::type,
10208 typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10209 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SwapchainKHR, SwapchainKHRAllocator>>::type Device::createSharedSwapchainsKHR(
10210 ArrayProxy<SwapchainCreateInfoKHR const> const & createInfos,
10211 Optional<AllocationCallbacks const> allocator,
10212 SwapchainKHRAllocator const & swapchainKHRAllocator,
10213 Dispatch const & d ) const
10214 {
10215 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10216 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10217 VULKAN_HPP_ASSERT( d.vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
10218 # endif
10219
10220 std::vector<SwapchainKHR, SwapchainKHRAllocator> swapchains( createInfos.size(), {}, swapchainKHRAllocator );
10221 Result result = static_cast<Result>( d.vkCreateSharedSwapchainsKHR( m_device,
10222 createInfos.size(),
10223 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( createInfos.data() ),
10224 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10225 reinterpret_cast<VkSwapchainKHR *>( swapchains.data() ) ) );
10226 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHR" );
10227
10228 return detail::createResultValueType( result, std::move( swapchains ) );
10229 }
10230
10231 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10232 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10233 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SwapchainKHR>::type Device::createSharedSwapchainKHR(
10234 SwapchainCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10235 {
10236 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10237 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10238 VULKAN_HPP_ASSERT( d.vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
10239 # endif
10240
10241 SwapchainKHR swapchain;
10242 Result result = static_cast<Result>( d.vkCreateSharedSwapchainsKHR( m_device,
10243 1,
10244 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( &createInfo ),
10245 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10246 reinterpret_cast<VkSwapchainKHR *>( &swapchain ) ) );
10247 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainKHR" );
10248
10249 return detail::createResultValueType( result, std::move( swapchain ) );
10250 }
10251
10252 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10253 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10254 template <typename Dispatch,
10255 typename SwapchainKHRAllocator,
10256 typename std::enable_if<std::is_same<typename SwapchainKHRAllocator::value_type, UniqueHandle<SwapchainKHR, Dispatch>>::value, int>::type,
10257 typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10258 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<UniqueHandle<SwapchainKHR, Dispatch>, SwapchainKHRAllocator>>::type
10259 Device::createSharedSwapchainsKHRUnique(
10260 ArrayProxy<SwapchainCreateInfoKHR const> const & createInfos, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10261 {
10262 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10263 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10264 VULKAN_HPP_ASSERT( d.vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
10265 # endif
10266
10267 std::vector<SwapchainKHR> swapchains( createInfos.size() );
10268 Result result = static_cast<Result>( d.vkCreateSharedSwapchainsKHR( m_device,
10269 createInfos.size(),
10270 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( createInfos.data() ),
10271 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10272 reinterpret_cast<VkSwapchainKHR *>( swapchains.data() ) ) );
10273 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHRUnique" );
10274 std::vector<UniqueHandle<SwapchainKHR, Dispatch>, SwapchainKHRAllocator> uniqueSwapchains;
10275 uniqueSwapchains.reserve( createInfos.size() );
10276 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
10277 for ( auto const & swapchain : swapchains )
10278 {
10279 uniqueSwapchains.push_back( UniqueHandle<SwapchainKHR, Dispatch>( swapchain, deleter ) );
10280 }
10281 return detail::createResultValueType( result, std::move( uniqueSwapchains ) );
10282 }
10283
10284 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10285 template <typename Dispatch,
10286 typename SwapchainKHRAllocator,
10287 typename std::enable_if<std::is_same<typename SwapchainKHRAllocator::value_type, UniqueHandle<SwapchainKHR, Dispatch>>::value, int>::type,
10288 typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10289 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<UniqueHandle<SwapchainKHR, Dispatch>, SwapchainKHRAllocator>>::type
10290 Device::createSharedSwapchainsKHRUnique( ArrayProxy<SwapchainCreateInfoKHR const> const & createInfos,
10291 Optional<AllocationCallbacks const> allocator,
10292 SwapchainKHRAllocator const & swapchainKHRAllocator,
10293 Dispatch const & d ) const
10294 {
10295 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10296 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10297 VULKAN_HPP_ASSERT( d.vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
10298 # endif
10299
10300 std::vector<SwapchainKHR> swapchains( createInfos.size() );
10301 Result result = static_cast<Result>( d.vkCreateSharedSwapchainsKHR( m_device,
10302 createInfos.size(),
10303 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( createInfos.data() ),
10304 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10305 reinterpret_cast<VkSwapchainKHR *>( swapchains.data() ) ) );
10306 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHRUnique" );
10307 std::vector<UniqueHandle<SwapchainKHR, Dispatch>, SwapchainKHRAllocator> uniqueSwapchains( swapchainKHRAllocator );
10308 uniqueSwapchains.reserve( createInfos.size() );
10309 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
10310 for ( auto const & swapchain : swapchains )
10311 {
10312 uniqueSwapchains.push_back( UniqueHandle<SwapchainKHR, Dispatch>( swapchain, deleter ) );
10313 }
10314 return detail::createResultValueType( result, std::move( uniqueSwapchains ) );
10315 }
10316
10317 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10318 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10319 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SwapchainKHR, Dispatch>>::type Device::createSharedSwapchainKHRUnique(
10320 SwapchainCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10321 {
10322 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10323 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10324 VULKAN_HPP_ASSERT( d.vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
10325 # endif
10326
10327 SwapchainKHR swapchain;
10328 Result result = static_cast<Result>( d.vkCreateSharedSwapchainsKHR( m_device,
10329 1,
10330 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( &createInfo ),
10331 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10332 reinterpret_cast<VkSwapchainKHR *>( &swapchain ) ) );
10333 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainKHRUnique" );
10334
10335 return detail::createResultValueType( result,
10336 UniqueHandle<SwapchainKHR, Dispatch>( swapchain, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
10337 }
10338 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10339 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10340
10341 #if defined( VK_USE_PLATFORM_XLIB_KHR )
10342 //=== VK_KHR_xlib_surface ===
10343
10344 // wrapper function for command vkCreateXlibSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXlibSurfaceKHR.html
10345 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateXlibSurfaceKHR ), bool>::type>
10346 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createXlibSurfaceKHR(
10347 XlibSurfaceCreateInfoKHR const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10348 {
10349 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10350 return static_cast<Result>( d.vkCreateXlibSurfaceKHR( static_cast<VkInstance>( m_instance ),
10351 reinterpret_cast<VkXlibSurfaceCreateInfoKHR const *>( pCreateInfo ),
10352 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
10353 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
10354 }
10355
10356 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10357 // wrapper function for command vkCreateXlibSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXlibSurfaceKHR.html
10358 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateXlibSurfaceKHR ), bool>::type>
10359 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createXlibSurfaceKHR(
10360 XlibSurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10361 {
10362 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10363 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10364 VULKAN_HPP_ASSERT( d.vkCreateXlibSurfaceKHR && "Function <vkCreateXlibSurfaceKHR> requires <VK_KHR_xlib_surface>" );
10365 # endif
10366
10367 SurfaceKHR surface;
10368 Result result = static_cast<Result>( d.vkCreateXlibSurfaceKHR( m_instance,
10369 reinterpret_cast<VkXlibSurfaceCreateInfoKHR const *>( &createInfo ),
10370 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10371 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10372 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createXlibSurfaceKHR" );
10373
10374 return detail::createResultValueType( result, std::move( surface ) );
10375 }
10376
10377 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10378 // wrapper function for command vkCreateXlibSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXlibSurfaceKHR.html
10379 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateXlibSurfaceKHR ), bool>::type>
10380 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createXlibSurfaceKHRUnique(
10381 XlibSurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10382 {
10383 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10384 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10385 VULKAN_HPP_ASSERT( d.vkCreateXlibSurfaceKHR && "Function <vkCreateXlibSurfaceKHR> requires <VK_KHR_xlib_surface>" );
10386 # endif
10387
10388 SurfaceKHR surface;
10389 Result result = static_cast<Result>( d.vkCreateXlibSurfaceKHR( m_instance,
10390 reinterpret_cast<VkXlibSurfaceCreateInfoKHR const *>( &createInfo ),
10391 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10392 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10393 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createXlibSurfaceKHRUnique" );
10394
10395 return detail::createResultValueType( result,
10396 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10397 }
10398 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10399 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10400
10401 // wrapper function for command vkGetPhysicalDeviceXlibPresentationSupportKHR, see
10402 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceXlibPresentationSupportKHR.html
10403 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceXlibPresentationSupportKHR ), bool>::type>
10404 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getXlibPresentationSupportKHR( uint32_t queueFamilyIndex, Display * dpy, VisualID visualID, Dispatch const & d )
10405 const VULKAN_HPP_NOEXCEPT
10406 {
10407 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10408 return static_cast<Bool32>(
10409 d.vkGetPhysicalDeviceXlibPresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, dpy, visualID ) );
10410 }
10411
10412 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10413 // wrapper function for command vkGetPhysicalDeviceXlibPresentationSupportKHR, see
10414 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceXlibPresentationSupportKHR.html
10415 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceXlibPresentationSupportKHR ), bool>::type>
10416 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getXlibPresentationSupportKHR( uint32_t queueFamilyIndex, Display & dpy, VisualID visualID, Dispatch const & d )
10417 const VULKAN_HPP_NOEXCEPT
10418 {
10419 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10420 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10421 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceXlibPresentationSupportKHR &&
10422 "Function <vkGetPhysicalDeviceXlibPresentationSupportKHR> requires <VK_KHR_xlib_surface>" );
10423 # endif
10424
10425 VkBool32 result = d.vkGetPhysicalDeviceXlibPresentationSupportKHR( m_physicalDevice, queueFamilyIndex, &dpy, visualID );
10426
10427 return static_cast<Bool32>( result );
10428 }
10429 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10430 #endif /*VK_USE_PLATFORM_XLIB_KHR*/
10431
10432 #if defined( VK_USE_PLATFORM_XCB_KHR )
10433 //=== VK_KHR_xcb_surface ===
10434
10435 // wrapper function for command vkCreateXcbSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXcbSurfaceKHR.html
10436 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateXcbSurfaceKHR ), bool>::type>
10437 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createXcbSurfaceKHR(
10438 XcbSurfaceCreateInfoKHR const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10439 {
10440 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10441 return static_cast<Result>( d.vkCreateXcbSurfaceKHR( static_cast<VkInstance>( m_instance ),
10442 reinterpret_cast<VkXcbSurfaceCreateInfoKHR const *>( pCreateInfo ),
10443 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
10444 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
10445 }
10446
10447 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10448 // wrapper function for command vkCreateXcbSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXcbSurfaceKHR.html
10449 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateXcbSurfaceKHR ), bool>::type>
10450 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createXcbSurfaceKHR(
10451 XcbSurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10452 {
10453 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10454 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10455 VULKAN_HPP_ASSERT( d.vkCreateXcbSurfaceKHR && "Function <vkCreateXcbSurfaceKHR> requires <VK_KHR_xcb_surface>" );
10456 # endif
10457
10458 SurfaceKHR surface;
10459 Result result = static_cast<Result>( d.vkCreateXcbSurfaceKHR( m_instance,
10460 reinterpret_cast<VkXcbSurfaceCreateInfoKHR const *>( &createInfo ),
10461 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10462 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10463 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createXcbSurfaceKHR" );
10464
10465 return detail::createResultValueType( result, std::move( surface ) );
10466 }
10467
10468 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10469 // wrapper function for command vkCreateXcbSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXcbSurfaceKHR.html
10470 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateXcbSurfaceKHR ), bool>::type>
10471 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createXcbSurfaceKHRUnique(
10472 XcbSurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10473 {
10474 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10475 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10476 VULKAN_HPP_ASSERT( d.vkCreateXcbSurfaceKHR && "Function <vkCreateXcbSurfaceKHR> requires <VK_KHR_xcb_surface>" );
10477 # endif
10478
10479 SurfaceKHR surface;
10480 Result result = static_cast<Result>( d.vkCreateXcbSurfaceKHR( m_instance,
10481 reinterpret_cast<VkXcbSurfaceCreateInfoKHR const *>( &createInfo ),
10482 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10483 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10484 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createXcbSurfaceKHRUnique" );
10485
10486 return detail::createResultValueType( result,
10487 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10488 }
10489 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10490 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10491
10492 // wrapper function for command vkGetPhysicalDeviceXcbPresentationSupportKHR, see
10493 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceXcbPresentationSupportKHR.html
10494 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceXcbPresentationSupportKHR ), bool>::type>
10495 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getXcbPresentationSupportKHR(
10496 uint32_t queueFamilyIndex, xcb_connection_t * connection, xcb_visualid_t visual_id, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10497 {
10498 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10499 return static_cast<Bool32>(
10500 d.vkGetPhysicalDeviceXcbPresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, connection, visual_id ) );
10501 }
10502
10503 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10504 // wrapper function for command vkGetPhysicalDeviceXcbPresentationSupportKHR, see
10505 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceXcbPresentationSupportKHR.html
10506 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceXcbPresentationSupportKHR ), bool>::type>
10507 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getXcbPresentationSupportKHR(
10508 uint32_t queueFamilyIndex, xcb_connection_t & connection, xcb_visualid_t visual_id, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10509 {
10510 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10511 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10512 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceXcbPresentationSupportKHR &&
10513 "Function <vkGetPhysicalDeviceXcbPresentationSupportKHR> requires <VK_KHR_xcb_surface>" );
10514 # endif
10515
10516 VkBool32 result = d.vkGetPhysicalDeviceXcbPresentationSupportKHR( m_physicalDevice, queueFamilyIndex, &connection, visual_id );
10517
10518 return static_cast<Bool32>( result );
10519 }
10520 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10521 #endif /*VK_USE_PLATFORM_XCB_KHR*/
10522
10523 #if defined( VK_USE_PLATFORM_WAYLAND_KHR )
10524 //=== VK_KHR_wayland_surface ===
10525
10526 // wrapper function for command vkCreateWaylandSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWaylandSurfaceKHR.html
10527 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateWaylandSurfaceKHR ), bool>::type>
10528 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createWaylandSurfaceKHR(
10529 WaylandSurfaceCreateInfoKHR const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d )
10530 const VULKAN_HPP_NOEXCEPT
10531 {
10532 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10533 return static_cast<Result>( d.vkCreateWaylandSurfaceKHR( static_cast<VkInstance>( m_instance ),
10534 reinterpret_cast<VkWaylandSurfaceCreateInfoKHR const *>( pCreateInfo ),
10535 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
10536 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
10537 }
10538
10539 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10540 // wrapper function for command vkCreateWaylandSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWaylandSurfaceKHR.html
10541 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateWaylandSurfaceKHR ), bool>::type>
10542 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createWaylandSurfaceKHR(
10543 WaylandSurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10544 {
10545 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10546 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10547 VULKAN_HPP_ASSERT( d.vkCreateWaylandSurfaceKHR && "Function <vkCreateWaylandSurfaceKHR> requires <VK_KHR_wayland_surface>" );
10548 # endif
10549
10550 SurfaceKHR surface;
10551 Result result = static_cast<Result>( d.vkCreateWaylandSurfaceKHR( m_instance,
10552 reinterpret_cast<VkWaylandSurfaceCreateInfoKHR const *>( &createInfo ),
10553 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10554 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10555 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createWaylandSurfaceKHR" );
10556
10557 return detail::createResultValueType( result, std::move( surface ) );
10558 }
10559
10560 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10561 // wrapper function for command vkCreateWaylandSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWaylandSurfaceKHR.html
10562 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateWaylandSurfaceKHR ), bool>::type>
10563 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createWaylandSurfaceKHRUnique(
10564 WaylandSurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10565 {
10566 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10567 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10568 VULKAN_HPP_ASSERT( d.vkCreateWaylandSurfaceKHR && "Function <vkCreateWaylandSurfaceKHR> requires <VK_KHR_wayland_surface>" );
10569 # endif
10570
10571 SurfaceKHR surface;
10572 Result result = static_cast<Result>( d.vkCreateWaylandSurfaceKHR( m_instance,
10573 reinterpret_cast<VkWaylandSurfaceCreateInfoKHR const *>( &createInfo ),
10574 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10575 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10576 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createWaylandSurfaceKHRUnique" );
10577
10578 return detail::createResultValueType( result,
10579 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10580 }
10581 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10582 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10583
10584 // wrapper function for command vkGetPhysicalDeviceWaylandPresentationSupportKHR, see
10585 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceWaylandPresentationSupportKHR.html
10586 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceWaylandPresentationSupportKHR ), bool>::type>
10587 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getWaylandPresentationSupportKHR( uint32_t queueFamilyIndex, struct wl_display * display, Dispatch const & d )
10588 const VULKAN_HPP_NOEXCEPT
10589 {
10590 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10591 return static_cast<Bool32>(
10592 d.vkGetPhysicalDeviceWaylandPresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, display ) );
10593 }
10594
10595 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10596 // wrapper function for command vkGetPhysicalDeviceWaylandPresentationSupportKHR, see
10597 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceWaylandPresentationSupportKHR.html
10598 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceWaylandPresentationSupportKHR ), bool>::type>
10599 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getWaylandPresentationSupportKHR( uint32_t queueFamilyIndex, struct wl_display & display, Dispatch const & d )
10600 const VULKAN_HPP_NOEXCEPT
10601 {
10602 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10603 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10604 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceWaylandPresentationSupportKHR &&
10605 "Function <vkGetPhysicalDeviceWaylandPresentationSupportKHR> requires <VK_KHR_wayland_surface>" );
10606 # endif
10607
10608 VkBool32 result = d.vkGetPhysicalDeviceWaylandPresentationSupportKHR( m_physicalDevice, queueFamilyIndex, &display );
10609
10610 return static_cast<Bool32>( result );
10611 }
10612 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10613 #endif /*VK_USE_PLATFORM_WAYLAND_KHR*/
10614
10615 #if defined( VK_USE_PLATFORM_ANDROID_KHR )
10616 //=== VK_KHR_android_surface ===
10617
10618 // wrapper function for command vkCreateAndroidSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAndroidSurfaceKHR.html
10619 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAndroidSurfaceKHR ), bool>::type>
10620 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createAndroidSurfaceKHR(
10621 AndroidSurfaceCreateInfoKHR const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d )
10622 const VULKAN_HPP_NOEXCEPT
10623 {
10624 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10625 return static_cast<Result>( d.vkCreateAndroidSurfaceKHR( static_cast<VkInstance>( m_instance ),
10626 reinterpret_cast<VkAndroidSurfaceCreateInfoKHR const *>( pCreateInfo ),
10627 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
10628 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
10629 }
10630
10631 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10632 // wrapper function for command vkCreateAndroidSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAndroidSurfaceKHR.html
10633 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAndroidSurfaceKHR ), bool>::type>
10634 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createAndroidSurfaceKHR(
10635 AndroidSurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10636 {
10637 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10638 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10639 VULKAN_HPP_ASSERT( d.vkCreateAndroidSurfaceKHR && "Function <vkCreateAndroidSurfaceKHR> requires <VK_KHR_android_surface>" );
10640 # endif
10641
10642 SurfaceKHR surface;
10643 Result result = static_cast<Result>( d.vkCreateAndroidSurfaceKHR( m_instance,
10644 reinterpret_cast<VkAndroidSurfaceCreateInfoKHR const *>( &createInfo ),
10645 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10646 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10647 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createAndroidSurfaceKHR" );
10648
10649 return detail::createResultValueType( result, std::move( surface ) );
10650 }
10651
10652 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10653 // wrapper function for command vkCreateAndroidSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAndroidSurfaceKHR.html
10654 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAndroidSurfaceKHR ), bool>::type>
10655 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createAndroidSurfaceKHRUnique(
10656 AndroidSurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10657 {
10658 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10659 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10660 VULKAN_HPP_ASSERT( d.vkCreateAndroidSurfaceKHR && "Function <vkCreateAndroidSurfaceKHR> requires <VK_KHR_android_surface>" );
10661 # endif
10662
10663 SurfaceKHR surface;
10664 Result result = static_cast<Result>( d.vkCreateAndroidSurfaceKHR( m_instance,
10665 reinterpret_cast<VkAndroidSurfaceCreateInfoKHR const *>( &createInfo ),
10666 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10667 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10668 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createAndroidSurfaceKHRUnique" );
10669
10670 return detail::createResultValueType( result,
10671 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10672 }
10673 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10674 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10675 #endif /*VK_USE_PLATFORM_ANDROID_KHR*/
10676
10677 #if defined( VK_USE_PLATFORM_WIN32_KHR )
10678 //=== VK_KHR_win32_surface ===
10679
10680 // wrapper function for command vkCreateWin32SurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWin32SurfaceKHR.html
10681 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateWin32SurfaceKHR ), bool>::type>
10682 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createWin32SurfaceKHR(
10683 Win32SurfaceCreateInfoKHR const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10684 {
10685 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10686 return static_cast<Result>( d.vkCreateWin32SurfaceKHR( static_cast<VkInstance>( m_instance ),
10687 reinterpret_cast<VkWin32SurfaceCreateInfoKHR const *>( pCreateInfo ),
10688 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
10689 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
10690 }
10691
10692 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10693 // wrapper function for command vkCreateWin32SurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWin32SurfaceKHR.html
10694 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateWin32SurfaceKHR ), bool>::type>
10695 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createWin32SurfaceKHR(
10696 Win32SurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10697 {
10698 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10699 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10700 VULKAN_HPP_ASSERT( d.vkCreateWin32SurfaceKHR && "Function <vkCreateWin32SurfaceKHR> requires <VK_KHR_win32_surface>" );
10701 # endif
10702
10703 SurfaceKHR surface;
10704 Result result = static_cast<Result>( d.vkCreateWin32SurfaceKHR( m_instance,
10705 reinterpret_cast<VkWin32SurfaceCreateInfoKHR const *>( &createInfo ),
10706 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10707 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10708 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createWin32SurfaceKHR" );
10709
10710 return detail::createResultValueType( result, std::move( surface ) );
10711 }
10712
10713 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10714 // wrapper function for command vkCreateWin32SurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWin32SurfaceKHR.html
10715 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateWin32SurfaceKHR ), bool>::type>
10716 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createWin32SurfaceKHRUnique(
10717 Win32SurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10718 {
10719 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10720 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10721 VULKAN_HPP_ASSERT( d.vkCreateWin32SurfaceKHR && "Function <vkCreateWin32SurfaceKHR> requires <VK_KHR_win32_surface>" );
10722 # endif
10723
10724 SurfaceKHR surface;
10725 Result result = static_cast<Result>( d.vkCreateWin32SurfaceKHR( m_instance,
10726 reinterpret_cast<VkWin32SurfaceCreateInfoKHR const *>( &createInfo ),
10727 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10728 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10729 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createWin32SurfaceKHRUnique" );
10730
10731 return detail::createResultValueType( result,
10732 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10733 }
10734 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10735 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10736
10737 // wrapper function for command vkGetPhysicalDeviceWin32PresentationSupportKHR, see
10738 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceWin32PresentationSupportKHR.html
10739 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceWin32PresentationSupportKHR ), bool>::type>
10740 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getWin32PresentationSupportKHR( uint32_t queueFamilyIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10741 {
10742 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10743 return static_cast<Bool32>( d.vkGetPhysicalDeviceWin32PresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex ) );
10744 }
10745 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
10746
10747 //=== VK_EXT_debug_report ===
10748
10749 // wrapper function for command vkCreateDebugReportCallbackEXT, see
10750 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugReportCallbackEXT.html
10751 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDebugReportCallbackEXT ), bool>::type>
10752 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createDebugReportCallbackEXT(
10753 DebugReportCallbackCreateInfoEXT const * pCreateInfo, AllocationCallbacks const * pAllocator, DebugReportCallbackEXT * pCallback, Dispatch const & d )
10754 const VULKAN_HPP_NOEXCEPT
10755 {
10756 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10757 return static_cast<Result>( d.vkCreateDebugReportCallbackEXT( static_cast<VkInstance>( m_instance ),
10758 reinterpret_cast<VkDebugReportCallbackCreateInfoEXT const *>( pCreateInfo ),
10759 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
10760 reinterpret_cast<VkDebugReportCallbackEXT *>( pCallback ) ) );
10761 }
10762
10763 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10764 // wrapper function for command vkCreateDebugReportCallbackEXT, see
10765 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugReportCallbackEXT.html
10766 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDebugReportCallbackEXT ), bool>::type>
10767 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DebugReportCallbackEXT>::type Instance::createDebugReportCallbackEXT(
10768 DebugReportCallbackCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10769 {
10770 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10771 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10772 VULKAN_HPP_ASSERT( d.vkCreateDebugReportCallbackEXT && "Function <vkCreateDebugReportCallbackEXT> requires <VK_EXT_debug_report>" );
10773 # endif
10774
10775 DebugReportCallbackEXT callback;
10776 Result result = static_cast<Result>( d.vkCreateDebugReportCallbackEXT( m_instance,
10777 reinterpret_cast<VkDebugReportCallbackCreateInfoEXT const *>( &createInfo ),
10778 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10779 reinterpret_cast<VkDebugReportCallbackEXT *>( &callback ) ) );
10780 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDebugReportCallbackEXT" );
10781
10782 return detail::createResultValueType( result, std::move( callback ) );
10783 }
10784
10785 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10786 // wrapper function for command vkCreateDebugReportCallbackEXT, see
10787 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugReportCallbackEXT.html
10788 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDebugReportCallbackEXT ), bool>::type>
10789 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DebugReportCallbackEXT, Dispatch>>::type
10790 Instance::createDebugReportCallbackEXTUnique(
10791 DebugReportCallbackCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
10792 {
10793 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10794 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10795 VULKAN_HPP_ASSERT( d.vkCreateDebugReportCallbackEXT && "Function <vkCreateDebugReportCallbackEXT> requires <VK_EXT_debug_report>" );
10796 # endif
10797
10798 DebugReportCallbackEXT callback;
10799 Result result = static_cast<Result>( d.vkCreateDebugReportCallbackEXT( m_instance,
10800 reinterpret_cast<VkDebugReportCallbackCreateInfoEXT const *>( &createInfo ),
10801 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
10802 reinterpret_cast<VkDebugReportCallbackEXT *>( &callback ) ) );
10803 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDebugReportCallbackEXTUnique" );
10804
10805 return detail::createResultValueType(
10806 result, UniqueHandle<DebugReportCallbackEXT, Dispatch>( callback, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10807 }
10808 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10809 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10810
10811 // wrapper function for command vkDestroyDebugReportCallbackEXT, see
10812 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugReportCallbackEXT.html
10813 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugReportCallbackEXT ), bool>::type>
10814 VULKAN_HPP_INLINE void Instance::destroyDebugReportCallbackEXT( DebugReportCallbackEXT callback, AllocationCallbacks const * pAllocator, Dispatch const & d )
10815 const VULKAN_HPP_NOEXCEPT
10816 {
10817 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10818 d.vkDestroyDebugReportCallbackEXT(
10819 static_cast<VkInstance>( m_instance ), static_cast<VkDebugReportCallbackEXT>( callback ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
10820 }
10821
10822 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10823 // wrapper function for command vkDestroyDebugReportCallbackEXT, see
10824 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugReportCallbackEXT.html
10825 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugReportCallbackEXT ), bool>::type>
10826 VULKAN_HPP_INLINE void Instance::destroyDebugReportCallbackEXT(
10827 DebugReportCallbackEXT callback, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10828 {
10829 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10830 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10831 VULKAN_HPP_ASSERT( d.vkDestroyDebugReportCallbackEXT && "Function <vkDestroyDebugReportCallbackEXT> requires <VK_EXT_debug_report>" );
10832 # endif
10833
10834 d.vkDestroyDebugReportCallbackEXT(
10835 m_instance, static_cast<VkDebugReportCallbackEXT>( callback ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
10836 }
10837 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10838
10839 // wrapper function for command vkDestroyDebugReportCallbackEXT, see
10840 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugReportCallbackEXT.html
10841 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugReportCallbackEXT ), bool>::type>
10842 VULKAN_HPP_INLINE void Instance::destroy( DebugReportCallbackEXT callback, AllocationCallbacks const * pAllocator, Dispatch const & d )
10843 const VULKAN_HPP_NOEXCEPT
10844 {
10845 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10846 d.vkDestroyDebugReportCallbackEXT(
10847 static_cast<VkInstance>( m_instance ), static_cast<VkDebugReportCallbackEXT>( callback ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
10848 }
10849
10850 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10851 // wrapper function for command vkDestroyDebugReportCallbackEXT, see
10852 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugReportCallbackEXT.html
10853 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugReportCallbackEXT ), bool>::type>
10854 VULKAN_HPP_INLINE void Instance::destroy( DebugReportCallbackEXT callback, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
10855 const VULKAN_HPP_NOEXCEPT
10856 {
10857 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10858 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10859 VULKAN_HPP_ASSERT( d.vkDestroyDebugReportCallbackEXT && "Function <vkDestroyDebugReportCallbackEXT> requires <VK_EXT_debug_report>" );
10860 # endif
10861
10862 d.vkDestroyDebugReportCallbackEXT(
10863 m_instance, static_cast<VkDebugReportCallbackEXT>( callback ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
10864 }
10865 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10866
10867 // wrapper function for command vkDebugReportMessageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugReportMessageEXT.html
10868 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDebugReportMessageEXT ), bool>::type>
10869 VULKAN_HPP_INLINE void Instance::debugReportMessageEXT( DebugReportFlagsEXT flags,
10870 DebugReportObjectTypeEXT objectType_,
10871 uint64_t object,
10872 size_t location,
10873 int32_t messageCode,
10874 char const * pLayerPrefix,
10875 char const * pMessage,
10876 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10877 {
10878 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10879 d.vkDebugReportMessageEXT( static_cast<VkInstance>( m_instance ),
10880 static_cast<VkDebugReportFlagsEXT>( flags ),
10881 static_cast<VkDebugReportObjectTypeEXT>( objectType_ ),
10882 object,
10883 location,
10884 messageCode,
10885 pLayerPrefix,
10886 pMessage );
10887 }
10888
10889 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10890 // wrapper function for command vkDebugReportMessageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugReportMessageEXT.html
10891 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDebugReportMessageEXT ), bool>::type>
10892 VULKAN_HPP_INLINE void Instance::debugReportMessageEXT( DebugReportFlagsEXT flags,
10893 DebugReportObjectTypeEXT objectType_,
10894 uint64_t object,
10895 size_t location,
10896 int32_t messageCode,
10897 std::string const & layerPrefix,
10898 std::string const & message,
10899 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10900 {
10901 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10902 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10903 VULKAN_HPP_ASSERT( d.vkDebugReportMessageEXT && "Function <vkDebugReportMessageEXT> requires <VK_EXT_debug_report>" );
10904 # endif
10905
10906 d.vkDebugReportMessageEXT( m_instance,
10907 static_cast<VkDebugReportFlagsEXT>( flags ),
10908 static_cast<VkDebugReportObjectTypeEXT>( objectType_ ),
10909 object,
10910 location,
10911 messageCode,
10912 layerPrefix.c_str(),
10913 message.c_str() );
10914 }
10915 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10916
10917 //=== VK_EXT_debug_marker ===
10918
10919 // wrapper function for command vkDebugMarkerSetObjectTagEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugMarkerSetObjectTagEXT.html
10920 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDebugMarkerSetObjectTagEXT ), bool>::type>
10921 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::debugMarkerSetObjectTagEXT( DebugMarkerObjectTagInfoEXT const * pTagInfo, Dispatch const & d )
10922 const VULKAN_HPP_NOEXCEPT
10923 {
10924 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10925 return static_cast<Result>(
10926 d.vkDebugMarkerSetObjectTagEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkDebugMarkerObjectTagInfoEXT const *>( pTagInfo ) ) );
10927 }
10928
10929 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10930 // wrapper function for command vkDebugMarkerSetObjectTagEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugMarkerSetObjectTagEXT.html
10931 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDebugMarkerSetObjectTagEXT ), bool>::type>
10932 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::debugMarkerSetObjectTagEXT(
10933 DebugMarkerObjectTagInfoEXT const & tagInfo, Dispatch const & d ) const
10934 {
10935 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10936 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10937 VULKAN_HPP_ASSERT( d.vkDebugMarkerSetObjectTagEXT && "Function <vkDebugMarkerSetObjectTagEXT> requires <VK_EXT_debug_marker>" );
10938 # endif
10939
10940 Result result = static_cast<Result>( d.vkDebugMarkerSetObjectTagEXT( m_device, reinterpret_cast<VkDebugMarkerObjectTagInfoEXT const *>( &tagInfo ) ) );
10941 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::debugMarkerSetObjectTagEXT" );
10942
10943 return detail::createResultValueType( result );
10944 }
10945 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10946
10947 // wrapper function for command vkDebugMarkerSetObjectNameEXT, see
10948 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugMarkerSetObjectNameEXT.html
10949 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDebugMarkerSetObjectNameEXT ), bool>::type>
10950 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::debugMarkerSetObjectNameEXT( DebugMarkerObjectNameInfoEXT const * pNameInfo, Dispatch const & d )
10951 const VULKAN_HPP_NOEXCEPT
10952 {
10953 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10954 return static_cast<Result>(
10955 d.vkDebugMarkerSetObjectNameEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkDebugMarkerObjectNameInfoEXT const *>( pNameInfo ) ) );
10956 }
10957
10958 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10959 // wrapper function for command vkDebugMarkerSetObjectNameEXT, see
10960 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugMarkerSetObjectNameEXT.html
10961 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDebugMarkerSetObjectNameEXT ), bool>::type>
10962 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::debugMarkerSetObjectNameEXT(
10963 DebugMarkerObjectNameInfoEXT const & nameInfo, Dispatch const & d ) const
10964 {
10965 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10966 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10967 VULKAN_HPP_ASSERT( d.vkDebugMarkerSetObjectNameEXT && "Function <vkDebugMarkerSetObjectNameEXT> requires <VK_EXT_debug_marker>" );
10968 # endif
10969
10970 Result result = static_cast<Result>( d.vkDebugMarkerSetObjectNameEXT( m_device, reinterpret_cast<VkDebugMarkerObjectNameInfoEXT const *>( &nameInfo ) ) );
10971 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::debugMarkerSetObjectNameEXT" );
10972
10973 return detail::createResultValueType( result );
10974 }
10975 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10976
10977 // wrapper function for command vkCmdDebugMarkerBeginEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerBeginEXT.html
10978 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDebugMarkerBeginEXT ), bool>::type>
10979 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerBeginEXT( DebugMarkerMarkerInfoEXT const * pMarkerInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10980 {
10981 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10982 d.vkCmdDebugMarkerBeginEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDebugMarkerMarkerInfoEXT const *>( pMarkerInfo ) );
10983 }
10984
10985 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10986 // wrapper function for command vkCmdDebugMarkerBeginEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerBeginEXT.html
10987 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDebugMarkerBeginEXT ), bool>::type>
10988 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerBeginEXT( DebugMarkerMarkerInfoEXT const & markerInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10989 {
10990 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10991 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10992 VULKAN_HPP_ASSERT( d.vkCmdDebugMarkerBeginEXT && "Function <vkCmdDebugMarkerBeginEXT> requires <VK_EXT_debug_marker>" );
10993 # endif
10994
10995 d.vkCmdDebugMarkerBeginEXT( m_commandBuffer, reinterpret_cast<VkDebugMarkerMarkerInfoEXT const *>( &markerInfo ) );
10996 }
10997 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10998
10999 // wrapper function for command vkCmdDebugMarkerEndEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerEndEXT.html
11000 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDebugMarkerEndEXT ), bool>::type>
11001 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerEndEXT( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11002 {
11003 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11004 d.vkCmdDebugMarkerEndEXT( static_cast<VkCommandBuffer>( m_commandBuffer ) );
11005 }
11006
11007 // wrapper function for command vkCmdDebugMarkerInsertEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerInsertEXT.html
11008 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDebugMarkerInsertEXT ), bool>::type>
11009 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerInsertEXT( DebugMarkerMarkerInfoEXT const * pMarkerInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11010 {
11011 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11012 d.vkCmdDebugMarkerInsertEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDebugMarkerMarkerInfoEXT const *>( pMarkerInfo ) );
11013 }
11014
11015 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11016 // wrapper function for command vkCmdDebugMarkerInsertEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerInsertEXT.html
11017 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDebugMarkerInsertEXT ), bool>::type>
11018 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerInsertEXT( DebugMarkerMarkerInfoEXT const & markerInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11019 {
11020 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11021 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11022 VULKAN_HPP_ASSERT( d.vkCmdDebugMarkerInsertEXT && "Function <vkCmdDebugMarkerInsertEXT> requires <VK_EXT_debug_marker>" );
11023 # endif
11024
11025 d.vkCmdDebugMarkerInsertEXT( m_commandBuffer, reinterpret_cast<VkDebugMarkerMarkerInfoEXT const *>( &markerInfo ) );
11026 }
11027 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11028
11029 //=== VK_KHR_video_queue ===
11030
11031 // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see
11032 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html
11033 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoCapabilitiesKHR ), bool>::type>
11034 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getVideoCapabilitiesKHR(
11035 VideoProfileInfoKHR const * pVideoProfile, VideoCapabilitiesKHR * pCapabilities, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11036 {
11037 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11038 return static_cast<Result>( d.vkGetPhysicalDeviceVideoCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
11039 reinterpret_cast<VkVideoProfileInfoKHR const *>( pVideoProfile ),
11040 reinterpret_cast<VkVideoCapabilitiesKHR *>( pCapabilities ) ) );
11041 }
11042
11043 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11044 // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see
11045 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html
11046 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoCapabilitiesKHR ), bool>::type>
11047 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VideoCapabilitiesKHR>::type PhysicalDevice::getVideoCapabilitiesKHR(
11048 VideoProfileInfoKHR const & videoProfile, Dispatch const & d ) const
11049 {
11050 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11051 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11052 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoCapabilitiesKHR && "Function <vkGetPhysicalDeviceVideoCapabilitiesKHR> requires <VK_KHR_video_queue>" );
11053 # endif
11054
11055 VideoCapabilitiesKHR capabilities;
11056 Result result = static_cast<Result>( d.vkGetPhysicalDeviceVideoCapabilitiesKHR(
11057 m_physicalDevice, reinterpret_cast<VkVideoProfileInfoKHR const *>( &videoProfile ), reinterpret_cast<VkVideoCapabilitiesKHR *>( &capabilities ) ) );
11058 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" );
11059
11060 return detail::createResultValueType( result, std::move( capabilities ) );
11061 }
11062
11063 // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see
11064 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html
11065 template <typename X,
11066 typename Y,
11067 typename... Z,
11068 typename Dispatch,
11069 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoCapabilitiesKHR ), bool>::type>
11070 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type PhysicalDevice::getVideoCapabilitiesKHR(
11071 VideoProfileInfoKHR const & videoProfile, Dispatch const & d ) const
11072 {
11073 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11074 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11075 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoCapabilitiesKHR && "Function <vkGetPhysicalDeviceVideoCapabilitiesKHR> requires <VK_KHR_video_queue>" );
11076 # endif
11077
11078 StructureChain<X, Y, Z...> structureChain;
11079 VideoCapabilitiesKHR & capabilities = structureChain.template get<VideoCapabilitiesKHR>();
11080 Result result = static_cast<Result>( d.vkGetPhysicalDeviceVideoCapabilitiesKHR(
11081 m_physicalDevice, reinterpret_cast<VkVideoProfileInfoKHR const *>( &videoProfile ), reinterpret_cast<VkVideoCapabilitiesKHR *>( &capabilities ) ) );
11082 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" );
11083
11084 return detail::createResultValueType( result, std::move( structureChain ) );
11085 }
11086 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11087
11088 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
11089 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
11090 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoFormatPropertiesKHR ), bool>::type>
11091 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getVideoFormatPropertiesKHR( PhysicalDeviceVideoFormatInfoKHR const * pVideoFormatInfo,
11092 uint32_t * pVideoFormatPropertyCount,
11093 VideoFormatPropertiesKHR * pVideoFormatProperties,
11094 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11095 {
11096 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11097 return static_cast<Result>( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
11098 reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( pVideoFormatInfo ),
11099 pVideoFormatPropertyCount,
11100 reinterpret_cast<VkVideoFormatPropertiesKHR *>( pVideoFormatProperties ) ) );
11101 }
11102
11103 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11104 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
11105 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
11106 template <typename VideoFormatPropertiesKHRAllocator,
11107 typename Dispatch,
11108 typename std::enable_if<std::is_same<typename VideoFormatPropertiesKHRAllocator::value_type, VideoFormatPropertiesKHR>::value, int>::type,
11109 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoFormatPropertiesKHR ), bool>::type>
11110 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<VideoFormatPropertiesKHR, VideoFormatPropertiesKHRAllocator>>::type
11111 PhysicalDevice::getVideoFormatPropertiesKHR( PhysicalDeviceVideoFormatInfoKHR const & videoFormatInfo, Dispatch const & d ) const
11112 {
11113 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11114 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11115 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR &&
11116 "Function <vkGetPhysicalDeviceVideoFormatPropertiesKHR> requires <VK_KHR_video_queue>" );
11117 # endif
11118
11119 std::vector<VideoFormatPropertiesKHR, VideoFormatPropertiesKHRAllocator> videoFormatProperties;
11120 uint32_t videoFormatPropertyCount;
11121 Result result;
11122 do
11123 {
11124 result = static_cast<Result>( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR(
11125 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( &videoFormatInfo ), &videoFormatPropertyCount, nullptr ) );
11126 if ( ( result == Result::eSuccess ) && videoFormatPropertyCount )
11127 {
11128 videoFormatProperties.resize( videoFormatPropertyCount );
11129 result = static_cast<Result>(
11130 d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( m_physicalDevice,
11131 reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( &videoFormatInfo ),
11132 &videoFormatPropertyCount,
11133 reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
11134 }
11135 } while ( result == Result::eIncomplete );
11136 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
11137 VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
11138 if ( videoFormatPropertyCount < videoFormatProperties.size() )
11139 {
11140 videoFormatProperties.resize( videoFormatPropertyCount );
11141 }
11142 return detail::createResultValueType( result, std::move( videoFormatProperties ) );
11143 }
11144
11145 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
11146 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
11147 template <typename VideoFormatPropertiesKHRAllocator,
11148 typename Dispatch,
11149 typename std::enable_if<std::is_same<typename VideoFormatPropertiesKHRAllocator::value_type, VideoFormatPropertiesKHR>::value, int>::type,
11150 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoFormatPropertiesKHR ), bool>::type>
11151 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<VideoFormatPropertiesKHR, VideoFormatPropertiesKHRAllocator>>::type
11152 PhysicalDevice::getVideoFormatPropertiesKHR( PhysicalDeviceVideoFormatInfoKHR const & videoFormatInfo,
11153 VideoFormatPropertiesKHRAllocator const & videoFormatPropertiesKHRAllocator,
11154 Dispatch const & d ) const
11155 {
11156 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11157 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11158 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR &&
11159 "Function <vkGetPhysicalDeviceVideoFormatPropertiesKHR> requires <VK_KHR_video_queue>" );
11160 # endif
11161
11162 std::vector<VideoFormatPropertiesKHR, VideoFormatPropertiesKHRAllocator> videoFormatProperties( videoFormatPropertiesKHRAllocator );
11163 uint32_t videoFormatPropertyCount;
11164 Result result;
11165 do
11166 {
11167 result = static_cast<Result>( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR(
11168 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( &videoFormatInfo ), &videoFormatPropertyCount, nullptr ) );
11169 if ( ( result == Result::eSuccess ) && videoFormatPropertyCount )
11170 {
11171 videoFormatProperties.resize( videoFormatPropertyCount );
11172 result = static_cast<Result>(
11173 d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( m_physicalDevice,
11174 reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( &videoFormatInfo ),
11175 &videoFormatPropertyCount,
11176 reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
11177 }
11178 } while ( result == Result::eIncomplete );
11179 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
11180 VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
11181 if ( videoFormatPropertyCount < videoFormatProperties.size() )
11182 {
11183 videoFormatProperties.resize( videoFormatPropertyCount );
11184 }
11185 return detail::createResultValueType( result, std::move( videoFormatProperties ) );
11186 }
11187
11188 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
11189 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
11190 template <typename StructureChain,
11191 typename StructureChainAllocator,
11192 typename Dispatch,
11193 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
11194 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoFormatPropertiesKHR ), bool>::type>
11195 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain, StructureChainAllocator>>::type
11196 PhysicalDevice::getVideoFormatPropertiesKHR( PhysicalDeviceVideoFormatInfoKHR const & videoFormatInfo, Dispatch const & d ) const
11197 {
11198 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11199 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11200 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR &&
11201 "Function <vkGetPhysicalDeviceVideoFormatPropertiesKHR> requires <VK_KHR_video_queue>" );
11202 # endif
11203
11204 std::vector<StructureChain, StructureChainAllocator> structureChains;
11205 std::vector<VideoFormatPropertiesKHR> videoFormatProperties;
11206 uint32_t videoFormatPropertyCount;
11207 Result result;
11208 do
11209 {
11210 result = static_cast<Result>( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR(
11211 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( &videoFormatInfo ), &videoFormatPropertyCount, nullptr ) );
11212 if ( ( result == Result::eSuccess ) && videoFormatPropertyCount )
11213 {
11214 structureChains.resize( videoFormatPropertyCount );
11215 videoFormatProperties.resize( videoFormatPropertyCount );
11216 for ( uint32_t i = 0; i < videoFormatPropertyCount; i++ )
11217 {
11218 videoFormatProperties[i].pNext = structureChains[i].template get<VideoFormatPropertiesKHR>().pNext;
11219 }
11220 result = static_cast<Result>(
11221 d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( m_physicalDevice,
11222 reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( &videoFormatInfo ),
11223 &videoFormatPropertyCount,
11224 reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
11225 }
11226 } while ( result == Result::eIncomplete );
11227 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
11228 VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
11229 if ( videoFormatPropertyCount < videoFormatProperties.size() )
11230 {
11231 structureChains.resize( videoFormatPropertyCount );
11232 }
11233 for ( uint32_t i = 0; i < videoFormatPropertyCount; i++ )
11234 {
11235 structureChains[i].template get<VideoFormatPropertiesKHR>() = videoFormatProperties[i];
11236 }
11237 return detail::createResultValueType( result, std::move( structureChains ) );
11238 }
11239
11240 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
11241 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
11242 template <typename StructureChain,
11243 typename StructureChainAllocator,
11244 typename Dispatch,
11245 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
11246 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoFormatPropertiesKHR ), bool>::type>
11247 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain, StructureChainAllocator>>::type
11248 PhysicalDevice::getVideoFormatPropertiesKHR(
11249 PhysicalDeviceVideoFormatInfoKHR const & videoFormatInfo, StructureChainAllocator const & structureChainAllocator, Dispatch const & d ) const
11250 {
11251 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11252 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11253 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR &&
11254 "Function <vkGetPhysicalDeviceVideoFormatPropertiesKHR> requires <VK_KHR_video_queue>" );
11255 # endif
11256
11257 std::vector<StructureChain, StructureChainAllocator> structureChains( structureChainAllocator );
11258 std::vector<VideoFormatPropertiesKHR> videoFormatProperties;
11259 uint32_t videoFormatPropertyCount;
11260 Result result;
11261 do
11262 {
11263 result = static_cast<Result>( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR(
11264 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( &videoFormatInfo ), &videoFormatPropertyCount, nullptr ) );
11265 if ( ( result == Result::eSuccess ) && videoFormatPropertyCount )
11266 {
11267 structureChains.resize( videoFormatPropertyCount );
11268 videoFormatProperties.resize( videoFormatPropertyCount );
11269 for ( uint32_t i = 0; i < videoFormatPropertyCount; i++ )
11270 {
11271 videoFormatProperties[i].pNext = structureChains[i].template get<VideoFormatPropertiesKHR>().pNext;
11272 }
11273 result = static_cast<Result>(
11274 d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( m_physicalDevice,
11275 reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( &videoFormatInfo ),
11276 &videoFormatPropertyCount,
11277 reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
11278 }
11279 } while ( result == Result::eIncomplete );
11280 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
11281 VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
11282 if ( videoFormatPropertyCount < videoFormatProperties.size() )
11283 {
11284 structureChains.resize( videoFormatPropertyCount );
11285 }
11286 for ( uint32_t i = 0; i < videoFormatPropertyCount; i++ )
11287 {
11288 structureChains[i].template get<VideoFormatPropertiesKHR>() = videoFormatProperties[i];
11289 }
11290 return detail::createResultValueType( result, std::move( structureChains ) );
11291 }
11292 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11293
11294 // wrapper function for command vkCreateVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionKHR.html
11295 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateVideoSessionKHR ), bool>::type>
11296 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createVideoSessionKHR(
11297 VideoSessionCreateInfoKHR const * pCreateInfo, AllocationCallbacks const * pAllocator, VideoSessionKHR * pVideoSession, Dispatch const & d )
11298 const VULKAN_HPP_NOEXCEPT
11299 {
11300 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11301 return static_cast<Result>( d.vkCreateVideoSessionKHR( static_cast<VkDevice>( m_device ),
11302 reinterpret_cast<VkVideoSessionCreateInfoKHR const *>( pCreateInfo ),
11303 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
11304 reinterpret_cast<VkVideoSessionKHR *>( pVideoSession ) ) );
11305 }
11306
11307 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11308 // wrapper function for command vkCreateVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionKHR.html
11309 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateVideoSessionKHR ), bool>::type>
11310 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VideoSessionKHR>::type Device::createVideoSessionKHR(
11311 VideoSessionCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
11312 {
11313 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11314 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11315 VULKAN_HPP_ASSERT( d.vkCreateVideoSessionKHR && "Function <vkCreateVideoSessionKHR> requires <VK_KHR_video_queue>" );
11316 # endif
11317
11318 VideoSessionKHR videoSession;
11319 Result result = static_cast<Result>( d.vkCreateVideoSessionKHR( m_device,
11320 reinterpret_cast<VkVideoSessionCreateInfoKHR const *>( &createInfo ),
11321 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
11322 reinterpret_cast<VkVideoSessionKHR *>( &videoSession ) ) );
11323 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createVideoSessionKHR" );
11324
11325 return detail::createResultValueType( result, std::move( videoSession ) );
11326 }
11327
11328 # ifndef VULKAN_HPP_NO_SMART_HANDLE
11329 // wrapper function for command vkCreateVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionKHR.html
11330 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateVideoSessionKHR ), bool>::type>
11331 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<VideoSessionKHR, Dispatch>>::type Device::createVideoSessionKHRUnique(
11332 VideoSessionCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
11333 {
11334 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11335 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11336 VULKAN_HPP_ASSERT( d.vkCreateVideoSessionKHR && "Function <vkCreateVideoSessionKHR> requires <VK_KHR_video_queue>" );
11337 # endif
11338
11339 VideoSessionKHR videoSession;
11340 Result result = static_cast<Result>( d.vkCreateVideoSessionKHR( m_device,
11341 reinterpret_cast<VkVideoSessionCreateInfoKHR const *>( &createInfo ),
11342 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
11343 reinterpret_cast<VkVideoSessionKHR *>( &videoSession ) ) );
11344 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createVideoSessionKHRUnique" );
11345
11346 return detail::createResultValueType(
11347 result, UniqueHandle<VideoSessionKHR, Dispatch>( videoSession, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
11348 }
11349 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
11350 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11351
11352 // wrapper function for command vkDestroyVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionKHR.html
11353 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionKHR ), bool>::type>
11354 VULKAN_HPP_INLINE void Device::destroyVideoSessionKHR( VideoSessionKHR videoSession, AllocationCallbacks const * pAllocator, Dispatch const & d )
11355 const VULKAN_HPP_NOEXCEPT
11356 {
11357 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11358 d.vkDestroyVideoSessionKHR(
11359 static_cast<VkDevice>( m_device ), static_cast<VkVideoSessionKHR>( videoSession ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
11360 }
11361
11362 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11363 // wrapper function for command vkDestroyVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionKHR.html
11364 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionKHR ), bool>::type>
11365 VULKAN_HPP_INLINE void Device::destroyVideoSessionKHR( VideoSessionKHR videoSession, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
11366 const VULKAN_HPP_NOEXCEPT
11367 {
11368 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11369 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11370 VULKAN_HPP_ASSERT( d.vkDestroyVideoSessionKHR && "Function <vkDestroyVideoSessionKHR> requires <VK_KHR_video_queue>" );
11371 # endif
11372
11373 d.vkDestroyVideoSessionKHR( m_device, static_cast<VkVideoSessionKHR>( videoSession ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
11374 }
11375 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11376
11377 // wrapper function for command vkDestroyVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionKHR.html
11378 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionKHR ), bool>::type>
11379 VULKAN_HPP_INLINE void Device::destroy( VideoSessionKHR videoSession, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11380 {
11381 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11382 d.vkDestroyVideoSessionKHR(
11383 static_cast<VkDevice>( m_device ), static_cast<VkVideoSessionKHR>( videoSession ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
11384 }
11385
11386 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11387 // wrapper function for command vkDestroyVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionKHR.html
11388 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionKHR ), bool>::type>
11389 VULKAN_HPP_INLINE void Device::destroy( VideoSessionKHR videoSession, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
11390 const VULKAN_HPP_NOEXCEPT
11391 {
11392 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11393 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11394 VULKAN_HPP_ASSERT( d.vkDestroyVideoSessionKHR && "Function <vkDestroyVideoSessionKHR> requires <VK_KHR_video_queue>" );
11395 # endif
11396
11397 d.vkDestroyVideoSessionKHR( m_device, static_cast<VkVideoSessionKHR>( videoSession ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
11398 }
11399 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11400
11401 // wrapper function for command vkGetVideoSessionMemoryRequirementsKHR, see
11402 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetVideoSessionMemoryRequirementsKHR.html
11403 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetVideoSessionMemoryRequirementsKHR ), bool>::type>
11404 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getVideoSessionMemoryRequirementsKHR(
11405 VideoSessionKHR videoSession, uint32_t * pMemoryRequirementsCount, VideoSessionMemoryRequirementsKHR * pMemoryRequirements, Dispatch const & d )
11406 const VULKAN_HPP_NOEXCEPT
11407 {
11408 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11409 return static_cast<Result>( d.vkGetVideoSessionMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
11410 static_cast<VkVideoSessionKHR>( videoSession ),
11411 pMemoryRequirementsCount,
11412 reinterpret_cast<VkVideoSessionMemoryRequirementsKHR *>( pMemoryRequirements ) ) );
11413 }
11414
11415 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11416 // wrapper function for command vkGetVideoSessionMemoryRequirementsKHR, see
11417 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetVideoSessionMemoryRequirementsKHR.html
11418 template <
11419 typename VideoSessionMemoryRequirementsKHRAllocator,
11420 typename Dispatch,
11421 typename std::enable_if<std::is_same<typename VideoSessionMemoryRequirementsKHRAllocator::value_type, VideoSessionMemoryRequirementsKHR>::value, int>::type,
11422 typename std::enable_if<IS_DISPATCHED( vkGetVideoSessionMemoryRequirementsKHR ), bool>::type>
11423 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
11424 typename ResultValueType<std::vector<VideoSessionMemoryRequirementsKHR, VideoSessionMemoryRequirementsKHRAllocator>>::type
11425 Device::getVideoSessionMemoryRequirementsKHR( VideoSessionKHR videoSession, Dispatch const & d ) const
11426 {
11427 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11428 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11429 VULKAN_HPP_ASSERT( d.vkGetVideoSessionMemoryRequirementsKHR && "Function <vkGetVideoSessionMemoryRequirementsKHR> requires <VK_KHR_video_queue>" );
11430 # endif
11431
11432 std::vector<VideoSessionMemoryRequirementsKHR, VideoSessionMemoryRequirementsKHRAllocator> memoryRequirements;
11433 uint32_t memoryRequirementsCount;
11434 Result result;
11435 do
11436 {
11437 result = static_cast<Result>(
11438 d.vkGetVideoSessionMemoryRequirementsKHR( m_device, static_cast<VkVideoSessionKHR>( videoSession ), &memoryRequirementsCount, nullptr ) );
11439 if ( ( result == Result::eSuccess ) && memoryRequirementsCount )
11440 {
11441 memoryRequirements.resize( memoryRequirementsCount );
11442 result = static_cast<Result>(
11443 d.vkGetVideoSessionMemoryRequirementsKHR( m_device,
11444 static_cast<VkVideoSessionKHR>( videoSession ),
11445 &memoryRequirementsCount,
11446 reinterpret_cast<VkVideoSessionMemoryRequirementsKHR *>( memoryRequirements.data() ) ) );
11447 }
11448 } while ( result == Result::eIncomplete );
11449 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getVideoSessionMemoryRequirementsKHR" );
11450 VULKAN_HPP_ASSERT( memoryRequirementsCount <= memoryRequirements.size() );
11451 if ( memoryRequirementsCount < memoryRequirements.size() )
11452 {
11453 memoryRequirements.resize( memoryRequirementsCount );
11454 }
11455 return detail::createResultValueType( result, std::move( memoryRequirements ) );
11456 }
11457
11458 // wrapper function for command vkGetVideoSessionMemoryRequirementsKHR, see
11459 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetVideoSessionMemoryRequirementsKHR.html
11460 template <
11461 typename VideoSessionMemoryRequirementsKHRAllocator,
11462 typename Dispatch,
11463 typename std::enable_if<std::is_same<typename VideoSessionMemoryRequirementsKHRAllocator::value_type, VideoSessionMemoryRequirementsKHR>::value, int>::type,
11464 typename std::enable_if<IS_DISPATCHED( vkGetVideoSessionMemoryRequirementsKHR ), bool>::type>
11465 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
11466 typename ResultValueType<std::vector<VideoSessionMemoryRequirementsKHR, VideoSessionMemoryRequirementsKHRAllocator>>::type
11467 Device::getVideoSessionMemoryRequirementsKHR(
11468 VideoSessionKHR videoSession, VideoSessionMemoryRequirementsKHRAllocator const & videoSessionMemoryRequirementsKHRAllocator, Dispatch const & d ) const
11469 {
11470 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11471 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11472 VULKAN_HPP_ASSERT( d.vkGetVideoSessionMemoryRequirementsKHR && "Function <vkGetVideoSessionMemoryRequirementsKHR> requires <VK_KHR_video_queue>" );
11473 # endif
11474
11475 std::vector<VideoSessionMemoryRequirementsKHR, VideoSessionMemoryRequirementsKHRAllocator> memoryRequirements( videoSessionMemoryRequirementsKHRAllocator );
11476 uint32_t memoryRequirementsCount;
11477 Result result;
11478 do
11479 {
11480 result = static_cast<Result>(
11481 d.vkGetVideoSessionMemoryRequirementsKHR( m_device, static_cast<VkVideoSessionKHR>( videoSession ), &memoryRequirementsCount, nullptr ) );
11482 if ( ( result == Result::eSuccess ) && memoryRequirementsCount )
11483 {
11484 memoryRequirements.resize( memoryRequirementsCount );
11485 result = static_cast<Result>(
11486 d.vkGetVideoSessionMemoryRequirementsKHR( m_device,
11487 static_cast<VkVideoSessionKHR>( videoSession ),
11488 &memoryRequirementsCount,
11489 reinterpret_cast<VkVideoSessionMemoryRequirementsKHR *>( memoryRequirements.data() ) ) );
11490 }
11491 } while ( result == Result::eIncomplete );
11492 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getVideoSessionMemoryRequirementsKHR" );
11493 VULKAN_HPP_ASSERT( memoryRequirementsCount <= memoryRequirements.size() );
11494 if ( memoryRequirementsCount < memoryRequirements.size() )
11495 {
11496 memoryRequirements.resize( memoryRequirementsCount );
11497 }
11498 return detail::createResultValueType( result, std::move( memoryRequirements ) );
11499 }
11500 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11501
11502 // wrapper function for command vkBindVideoSessionMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindVideoSessionMemoryKHR.html
11503 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindVideoSessionMemoryKHR ), bool>::type>
11504 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindVideoSessionMemoryKHR(
11505 VideoSessionKHR videoSession, uint32_t bindSessionMemoryInfoCount, BindVideoSessionMemoryInfoKHR const * pBindSessionMemoryInfos, Dispatch const & d )
11506 const VULKAN_HPP_NOEXCEPT
11507 {
11508 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11509 return static_cast<Result>( d.vkBindVideoSessionMemoryKHR( static_cast<VkDevice>( m_device ),
11510 static_cast<VkVideoSessionKHR>( videoSession ),
11511 bindSessionMemoryInfoCount,
11512 reinterpret_cast<VkBindVideoSessionMemoryInfoKHR const *>( pBindSessionMemoryInfos ) ) );
11513 }
11514
11515 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11516 // wrapper function for command vkBindVideoSessionMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindVideoSessionMemoryKHR.html
11517 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindVideoSessionMemoryKHR ), bool>::type>
11518 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindVideoSessionMemoryKHR(
11519 VideoSessionKHR videoSession, ArrayProxy<BindVideoSessionMemoryInfoKHR const> const & bindSessionMemoryInfos, Dispatch const & d ) const
11520 {
11521 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11522 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11523 VULKAN_HPP_ASSERT( d.vkBindVideoSessionMemoryKHR && "Function <vkBindVideoSessionMemoryKHR> requires <VK_KHR_video_queue>" );
11524 # endif
11525
11526 Result result =
11527 static_cast<Result>( d.vkBindVideoSessionMemoryKHR( m_device,
11528 static_cast<VkVideoSessionKHR>( videoSession ),
11529 bindSessionMemoryInfos.size(),
11530 reinterpret_cast<VkBindVideoSessionMemoryInfoKHR const *>( bindSessionMemoryInfos.data() ) ) );
11531 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindVideoSessionMemoryKHR" );
11532
11533 return detail::createResultValueType( result );
11534 }
11535 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11536
11537 // wrapper function for command vkCreateVideoSessionParametersKHR, see
11538 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionParametersKHR.html
11539 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateVideoSessionParametersKHR ), bool>::type>
11540 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createVideoSessionParametersKHR( VideoSessionParametersCreateInfoKHR const * pCreateInfo,
11541 AllocationCallbacks const * pAllocator,
11542 VideoSessionParametersKHR * pVideoSessionParameters,
11543 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11544 {
11545 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11546 return static_cast<Result>( d.vkCreateVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
11547 reinterpret_cast<VkVideoSessionParametersCreateInfoKHR const *>( pCreateInfo ),
11548 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
11549 reinterpret_cast<VkVideoSessionParametersKHR *>( pVideoSessionParameters ) ) );
11550 }
11551
11552 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11553 // wrapper function for command vkCreateVideoSessionParametersKHR, see
11554 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionParametersKHR.html
11555 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateVideoSessionParametersKHR ), bool>::type>
11556 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VideoSessionParametersKHR>::type Device::createVideoSessionParametersKHR(
11557 VideoSessionParametersCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
11558 {
11559 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11560 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11561 VULKAN_HPP_ASSERT( d.vkCreateVideoSessionParametersKHR && "Function <vkCreateVideoSessionParametersKHR> requires <VK_KHR_video_queue>" );
11562 # endif
11563
11564 VideoSessionParametersKHR videoSessionParameters;
11565 Result result = static_cast<Result>( d.vkCreateVideoSessionParametersKHR( m_device,
11566 reinterpret_cast<VkVideoSessionParametersCreateInfoKHR const *>( &createInfo ),
11567 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
11568 reinterpret_cast<VkVideoSessionParametersKHR *>( &videoSessionParameters ) ) );
11569 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createVideoSessionParametersKHR" );
11570
11571 return detail::createResultValueType( result, std::move( videoSessionParameters ) );
11572 }
11573
11574 # ifndef VULKAN_HPP_NO_SMART_HANDLE
11575 // wrapper function for command vkCreateVideoSessionParametersKHR, see
11576 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionParametersKHR.html
11577 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateVideoSessionParametersKHR ), bool>::type>
11578 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<VideoSessionParametersKHR, Dispatch>>::type
11579 Device::createVideoSessionParametersKHRUnique(
11580 VideoSessionParametersCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
11581 {
11582 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11583 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11584 VULKAN_HPP_ASSERT( d.vkCreateVideoSessionParametersKHR && "Function <vkCreateVideoSessionParametersKHR> requires <VK_KHR_video_queue>" );
11585 # endif
11586
11587 VideoSessionParametersKHR videoSessionParameters;
11588 Result result = static_cast<Result>( d.vkCreateVideoSessionParametersKHR( m_device,
11589 reinterpret_cast<VkVideoSessionParametersCreateInfoKHR const *>( &createInfo ),
11590 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
11591 reinterpret_cast<VkVideoSessionParametersKHR *>( &videoSessionParameters ) ) );
11592 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createVideoSessionParametersKHRUnique" );
11593
11594 return detail::createResultValueType(
11595 result, UniqueHandle<VideoSessionParametersKHR, Dispatch>( videoSessionParameters, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
11596 }
11597 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
11598 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11599
11600 // wrapper function for command vkUpdateVideoSessionParametersKHR, see
11601 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateVideoSessionParametersKHR.html
11602 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateVideoSessionParametersKHR ), bool>::type>
11603 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::updateVideoSessionParametersKHR(
11604 VideoSessionParametersKHR videoSessionParameters, VideoSessionParametersUpdateInfoKHR const * pUpdateInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11605 {
11606 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11607 return static_cast<Result>( d.vkUpdateVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
11608 static_cast<VkVideoSessionParametersKHR>( videoSessionParameters ),
11609 reinterpret_cast<VkVideoSessionParametersUpdateInfoKHR const *>( pUpdateInfo ) ) );
11610 }
11611
11612 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11613 // wrapper function for command vkUpdateVideoSessionParametersKHR, see
11614 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateVideoSessionParametersKHR.html
11615 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateVideoSessionParametersKHR ), bool>::type>
11616 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::updateVideoSessionParametersKHR(
11617 VideoSessionParametersKHR videoSessionParameters, VideoSessionParametersUpdateInfoKHR const & updateInfo, Dispatch const & d ) const
11618 {
11619 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11620 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11621 VULKAN_HPP_ASSERT( d.vkUpdateVideoSessionParametersKHR && "Function <vkUpdateVideoSessionParametersKHR> requires <VK_KHR_video_queue>" );
11622 # endif
11623
11624 Result result =
11625 static_cast<Result>( d.vkUpdateVideoSessionParametersKHR( m_device,
11626 static_cast<VkVideoSessionParametersKHR>( videoSessionParameters ),
11627 reinterpret_cast<VkVideoSessionParametersUpdateInfoKHR const *>( &updateInfo ) ) );
11628 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::updateVideoSessionParametersKHR" );
11629
11630 return detail::createResultValueType( result );
11631 }
11632 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11633
11634 // wrapper function for command vkDestroyVideoSessionParametersKHR, see
11635 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionParametersKHR.html
11636 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionParametersKHR ), bool>::type>
11637 VULKAN_HPP_INLINE void Device::destroyVideoSessionParametersKHR(
11638 VideoSessionParametersKHR videoSessionParameters, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11639 {
11640 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11641 d.vkDestroyVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
11642 static_cast<VkVideoSessionParametersKHR>( videoSessionParameters ),
11643 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
11644 }
11645
11646 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11647 // wrapper function for command vkDestroyVideoSessionParametersKHR, see
11648 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionParametersKHR.html
11649 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionParametersKHR ), bool>::type>
11650 VULKAN_HPP_INLINE void Device::destroyVideoSessionParametersKHR(
11651 VideoSessionParametersKHR videoSessionParameters, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11652 {
11653 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11654 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11655 VULKAN_HPP_ASSERT( d.vkDestroyVideoSessionParametersKHR && "Function <vkDestroyVideoSessionParametersKHR> requires <VK_KHR_video_queue>" );
11656 # endif
11657
11658 d.vkDestroyVideoSessionParametersKHR(
11659 m_device, static_cast<VkVideoSessionParametersKHR>( videoSessionParameters ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
11660 }
11661 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11662
11663 // wrapper function for command vkDestroyVideoSessionParametersKHR, see
11664 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionParametersKHR.html
11665 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionParametersKHR ), bool>::type>
11666 VULKAN_HPP_INLINE void Device::destroy( VideoSessionParametersKHR videoSessionParameters, AllocationCallbacks const * pAllocator, Dispatch const & d )
11667 const VULKAN_HPP_NOEXCEPT
11668 {
11669 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11670 d.vkDestroyVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
11671 static_cast<VkVideoSessionParametersKHR>( videoSessionParameters ),
11672 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
11673 }
11674
11675 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11676 // wrapper function for command vkDestroyVideoSessionParametersKHR, see
11677 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionParametersKHR.html
11678 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionParametersKHR ), bool>::type>
11679 VULKAN_HPP_INLINE void Device::destroy( VideoSessionParametersKHR videoSessionParameters, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
11680 const VULKAN_HPP_NOEXCEPT
11681 {
11682 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11683 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11684 VULKAN_HPP_ASSERT( d.vkDestroyVideoSessionParametersKHR && "Function <vkDestroyVideoSessionParametersKHR> requires <VK_KHR_video_queue>" );
11685 # endif
11686
11687 d.vkDestroyVideoSessionParametersKHR(
11688 m_device, static_cast<VkVideoSessionParametersKHR>( videoSessionParameters ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
11689 }
11690 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11691
11692 // wrapper function for command vkCmdBeginVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginVideoCodingKHR.html
11693 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginVideoCodingKHR ), bool>::type>
11694 VULKAN_HPP_INLINE void CommandBuffer::beginVideoCodingKHR( VideoBeginCodingInfoKHR const * pBeginInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11695 {
11696 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11697 d.vkCmdBeginVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkVideoBeginCodingInfoKHR const *>( pBeginInfo ) );
11698 }
11699
11700 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11701 // wrapper function for command vkCmdBeginVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginVideoCodingKHR.html
11702 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginVideoCodingKHR ), bool>::type>
11703 VULKAN_HPP_INLINE void CommandBuffer::beginVideoCodingKHR( VideoBeginCodingInfoKHR const & beginInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11704 {
11705 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11706 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11707 VULKAN_HPP_ASSERT( d.vkCmdBeginVideoCodingKHR && "Function <vkCmdBeginVideoCodingKHR> requires <VK_KHR_video_queue>" );
11708 # endif
11709
11710 d.vkCmdBeginVideoCodingKHR( m_commandBuffer, reinterpret_cast<VkVideoBeginCodingInfoKHR const *>( &beginInfo ) );
11711 }
11712 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11713
11714 // wrapper function for command vkCmdEndVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndVideoCodingKHR.html
11715 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndVideoCodingKHR ), bool>::type>
11716 VULKAN_HPP_INLINE void CommandBuffer::endVideoCodingKHR( VideoEndCodingInfoKHR const * pEndCodingInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11717 {
11718 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11719 d.vkCmdEndVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkVideoEndCodingInfoKHR const *>( pEndCodingInfo ) );
11720 }
11721
11722 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11723 // wrapper function for command vkCmdEndVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndVideoCodingKHR.html
11724 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndVideoCodingKHR ), bool>::type>
11725 VULKAN_HPP_INLINE void CommandBuffer::endVideoCodingKHR( VideoEndCodingInfoKHR const & endCodingInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11726 {
11727 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11728 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11729 VULKAN_HPP_ASSERT( d.vkCmdEndVideoCodingKHR && "Function <vkCmdEndVideoCodingKHR> requires <VK_KHR_video_queue>" );
11730 # endif
11731
11732 d.vkCmdEndVideoCodingKHR( m_commandBuffer, reinterpret_cast<VkVideoEndCodingInfoKHR const *>( &endCodingInfo ) );
11733 }
11734 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11735
11736 // wrapper function for command vkCmdControlVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdControlVideoCodingKHR.html
11737 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdControlVideoCodingKHR ), bool>::type>
11738 VULKAN_HPP_INLINE void CommandBuffer::controlVideoCodingKHR( VideoCodingControlInfoKHR const * pCodingControlInfo, Dispatch const & d )
11739 const VULKAN_HPP_NOEXCEPT
11740 {
11741 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11742 d.vkCmdControlVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
11743 reinterpret_cast<VkVideoCodingControlInfoKHR const *>( pCodingControlInfo ) );
11744 }
11745
11746 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11747 // wrapper function for command vkCmdControlVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdControlVideoCodingKHR.html
11748 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdControlVideoCodingKHR ), bool>::type>
11749 VULKAN_HPP_INLINE void CommandBuffer::controlVideoCodingKHR( VideoCodingControlInfoKHR const & codingControlInfo, Dispatch const & d )
11750 const VULKAN_HPP_NOEXCEPT
11751 {
11752 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11753 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11754 VULKAN_HPP_ASSERT( d.vkCmdControlVideoCodingKHR && "Function <vkCmdControlVideoCodingKHR> requires <VK_KHR_video_queue>" );
11755 # endif
11756
11757 d.vkCmdControlVideoCodingKHR( m_commandBuffer, reinterpret_cast<VkVideoCodingControlInfoKHR const *>( &codingControlInfo ) );
11758 }
11759 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11760
11761 //=== VK_KHR_video_decode_queue ===
11762
11763 // wrapper function for command vkCmdDecodeVideoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecodeVideoKHR.html
11764 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecodeVideoKHR ), bool>::type>
11765 VULKAN_HPP_INLINE void CommandBuffer::decodeVideoKHR( VideoDecodeInfoKHR const * pDecodeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11766 {
11767 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11768 d.vkCmdDecodeVideoKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkVideoDecodeInfoKHR const *>( pDecodeInfo ) );
11769 }
11770
11771 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11772 // wrapper function for command vkCmdDecodeVideoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecodeVideoKHR.html
11773 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecodeVideoKHR ), bool>::type>
11774 VULKAN_HPP_INLINE void CommandBuffer::decodeVideoKHR( VideoDecodeInfoKHR const & decodeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11775 {
11776 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11777 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11778 VULKAN_HPP_ASSERT( d.vkCmdDecodeVideoKHR && "Function <vkCmdDecodeVideoKHR> requires <VK_KHR_video_decode_queue>" );
11779 # endif
11780
11781 d.vkCmdDecodeVideoKHR( m_commandBuffer, reinterpret_cast<VkVideoDecodeInfoKHR const *>( &decodeInfo ) );
11782 }
11783 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11784
11785 //=== VK_EXT_transform_feedback ===
11786
11787 // wrapper function for command vkCmdBindTransformFeedbackBuffersEXT, see
11788 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTransformFeedbackBuffersEXT.html
11789 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindTransformFeedbackBuffersEXT ), bool>::type>
11790 VULKAN_HPP_INLINE void CommandBuffer::bindTransformFeedbackBuffersEXT(
11791 uint32_t firstBinding, uint32_t bindingCount, Buffer const * pBuffers, DeviceSize const * pOffsets, DeviceSize const * pSizes, Dispatch const & d )
11792 const VULKAN_HPP_NOEXCEPT
11793 {
11794 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11795 d.vkCmdBindTransformFeedbackBuffersEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
11796 firstBinding,
11797 bindingCount,
11798 reinterpret_cast<VkBuffer const *>( pBuffers ),
11799 reinterpret_cast<VkDeviceSize const *>( pOffsets ),
11800 reinterpret_cast<VkDeviceSize const *>( pSizes ) );
11801 }
11802
11803 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11804 // wrapper function for command vkCmdBindTransformFeedbackBuffersEXT, see
11805 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTransformFeedbackBuffersEXT.html
11806 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindTransformFeedbackBuffersEXT ), bool>::type>
11807 VULKAN_HPP_INLINE void CommandBuffer::bindTransformFeedbackBuffersEXT( uint32_t firstBinding,
11808 ArrayProxy<Buffer const> const & buffers,
11809 ArrayProxy<DeviceSize const> const & offsets,
11810 ArrayProxy<DeviceSize const> const & sizes,
11811 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
11812 {
11813 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11814 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11815 VULKAN_HPP_ASSERT( d.vkCmdBindTransformFeedbackBuffersEXT && "Function <vkCmdBindTransformFeedbackBuffersEXT> requires <VK_EXT_transform_feedback>" );
11816 # endif
11817 # ifdef VULKAN_HPP_NO_EXCEPTIONS
11818 VULKAN_HPP_ASSERT( buffers.size() == offsets.size() );
11819 VULKAN_HPP_ASSERT( sizes.empty() || buffers.size() == sizes.size() );
11820 # else
11821 if ( buffers.size() != offsets.size() )
11822 {
11823 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindTransformFeedbackBuffersEXT: buffers.size() != offsets.size()" );
11824 }
11825 if ( !sizes.empty() && buffers.size() != sizes.size() )
11826 {
11827 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindTransformFeedbackBuffersEXT: buffers.size() != sizes.size()" );
11828 }
11829 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
11830
11831 d.vkCmdBindTransformFeedbackBuffersEXT( m_commandBuffer,
11832 firstBinding,
11833 buffers.size(),
11834 reinterpret_cast<VkBuffer const *>( buffers.data() ),
11835 reinterpret_cast<VkDeviceSize const *>( offsets.data() ),
11836 reinterpret_cast<VkDeviceSize const *>( sizes.data() ) );
11837 }
11838 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11839
11840 // wrapper function for command vkCmdBeginTransformFeedbackEXT, see
11841 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginTransformFeedbackEXT.html
11842 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginTransformFeedbackEXT ), bool>::type>
11843 VULKAN_HPP_INLINE void CommandBuffer::beginTransformFeedbackEXT(
11844 uint32_t firstCounterBuffer, uint32_t counterBufferCount, Buffer const * pCounterBuffers, DeviceSize const * pCounterBufferOffsets, Dispatch const & d )
11845 const VULKAN_HPP_NOEXCEPT
11846 {
11847 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11848 d.vkCmdBeginTransformFeedbackEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
11849 firstCounterBuffer,
11850 counterBufferCount,
11851 reinterpret_cast<VkBuffer const *>( pCounterBuffers ),
11852 reinterpret_cast<VkDeviceSize const *>( pCounterBufferOffsets ) );
11853 }
11854
11855 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11856 // wrapper function for command vkCmdBeginTransformFeedbackEXT, see
11857 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginTransformFeedbackEXT.html
11858 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginTransformFeedbackEXT ), bool>::type>
11859 VULKAN_HPP_INLINE void CommandBuffer::beginTransformFeedbackEXT( uint32_t firstCounterBuffer,
11860 ArrayProxy<Buffer const> const & counterBuffers,
11861 ArrayProxy<DeviceSize const> const & counterBufferOffsets,
11862 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
11863 {
11864 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11865 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11866 VULKAN_HPP_ASSERT( d.vkCmdBeginTransformFeedbackEXT && "Function <vkCmdBeginTransformFeedbackEXT> requires <VK_EXT_transform_feedback>" );
11867 # endif
11868 # ifdef VULKAN_HPP_NO_EXCEPTIONS
11869 VULKAN_HPP_ASSERT( counterBufferOffsets.empty() || counterBuffers.size() == counterBufferOffsets.size() );
11870 # else
11871 if ( !counterBufferOffsets.empty() && counterBuffers.size() != counterBufferOffsets.size() )
11872 {
11873 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::beginTransformFeedbackEXT: counterBuffers.size() != counterBufferOffsets.size()" );
11874 }
11875 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
11876
11877 d.vkCmdBeginTransformFeedbackEXT( m_commandBuffer,
11878 firstCounterBuffer,
11879 counterBuffers.size(),
11880 reinterpret_cast<VkBuffer const *>( counterBuffers.data() ),
11881 reinterpret_cast<VkDeviceSize const *>( counterBufferOffsets.data() ) );
11882 }
11883 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11884
11885 // wrapper function for command vkCmdEndTransformFeedbackEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndTransformFeedbackEXT.html
11886 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndTransformFeedbackEXT ), bool>::type>
11887 VULKAN_HPP_INLINE void CommandBuffer::endTransformFeedbackEXT(
11888 uint32_t firstCounterBuffer, uint32_t counterBufferCount, Buffer const * pCounterBuffers, DeviceSize const * pCounterBufferOffsets, Dispatch const & d )
11889 const VULKAN_HPP_NOEXCEPT
11890 {
11891 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11892 d.vkCmdEndTransformFeedbackEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
11893 firstCounterBuffer,
11894 counterBufferCount,
11895 reinterpret_cast<VkBuffer const *>( pCounterBuffers ),
11896 reinterpret_cast<VkDeviceSize const *>( pCounterBufferOffsets ) );
11897 }
11898
11899 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11900 // wrapper function for command vkCmdEndTransformFeedbackEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndTransformFeedbackEXT.html
11901 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndTransformFeedbackEXT ), bool>::type>
11902 VULKAN_HPP_INLINE void CommandBuffer::endTransformFeedbackEXT( uint32_t firstCounterBuffer,
11903 ArrayProxy<Buffer const> const & counterBuffers,
11904 ArrayProxy<DeviceSize const> const & counterBufferOffsets,
11905 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
11906 {
11907 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11908 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11909 VULKAN_HPP_ASSERT( d.vkCmdEndTransformFeedbackEXT && "Function <vkCmdEndTransformFeedbackEXT> requires <VK_EXT_transform_feedback>" );
11910 # endif
11911 # ifdef VULKAN_HPP_NO_EXCEPTIONS
11912 VULKAN_HPP_ASSERT( counterBufferOffsets.empty() || counterBuffers.size() == counterBufferOffsets.size() );
11913 # else
11914 if ( !counterBufferOffsets.empty() && counterBuffers.size() != counterBufferOffsets.size() )
11915 {
11916 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::endTransformFeedbackEXT: counterBuffers.size() != counterBufferOffsets.size()" );
11917 }
11918 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
11919
11920 d.vkCmdEndTransformFeedbackEXT( m_commandBuffer,
11921 firstCounterBuffer,
11922 counterBuffers.size(),
11923 reinterpret_cast<VkBuffer const *>( counterBuffers.data() ),
11924 reinterpret_cast<VkDeviceSize const *>( counterBufferOffsets.data() ) );
11925 }
11926 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11927
11928 // wrapper function for command vkCmdBeginQueryIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginQueryIndexedEXT.html
11929 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginQueryIndexedEXT ), bool>::type>
11930 VULKAN_HPP_INLINE void CommandBuffer::beginQueryIndexedEXT( QueryPool queryPool, uint32_t query, QueryControlFlags flags, uint32_t index, Dispatch const & d )
11931 const VULKAN_HPP_NOEXCEPT
11932 {
11933 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11934 d.vkCmdBeginQueryIndexedEXT(
11935 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), query, static_cast<VkQueryControlFlags>( flags ), index );
11936 }
11937
11938 // wrapper function for command vkCmdEndQueryIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndQueryIndexedEXT.html
11939 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndQueryIndexedEXT ), bool>::type>
11940 VULKAN_HPP_INLINE void CommandBuffer::endQueryIndexedEXT( QueryPool queryPool, uint32_t query, uint32_t index, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11941 {
11942 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11943 d.vkCmdEndQueryIndexedEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), query, index );
11944 }
11945
11946 // wrapper function for command vkCmdDrawIndirectByteCountEXT, see
11947 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectByteCountEXT.html
11948 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirectByteCountEXT ), bool>::type>
11949 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectByteCountEXT( uint32_t instanceCount,
11950 uint32_t firstInstance,
11951 Buffer counterBuffer,
11952 DeviceSize counterBufferOffset,
11953 uint32_t counterOffset,
11954 uint32_t vertexStride,
11955 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11956 {
11957 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11958 d.vkCmdDrawIndirectByteCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
11959 instanceCount,
11960 firstInstance,
11961 static_cast<VkBuffer>( counterBuffer ),
11962 static_cast<VkDeviceSize>( counterBufferOffset ),
11963 counterOffset,
11964 vertexStride );
11965 }
11966
11967 //=== VK_NVX_binary_import ===
11968
11969 // wrapper function for command vkCreateCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuModuleNVX.html
11970 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCuModuleNVX ), bool>::type>
11971 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createCuModuleNVX(
11972 CuModuleCreateInfoNVX const * pCreateInfo, AllocationCallbacks const * pAllocator, CuModuleNVX * pModule, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11973 {
11974 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11975 return static_cast<Result>( d.vkCreateCuModuleNVX( static_cast<VkDevice>( m_device ),
11976 reinterpret_cast<VkCuModuleCreateInfoNVX const *>( pCreateInfo ),
11977 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
11978 reinterpret_cast<VkCuModuleNVX *>( pModule ) ) );
11979 }
11980
11981 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11982 // wrapper function for command vkCreateCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuModuleNVX.html
11983 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCuModuleNVX ), bool>::type>
11984 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CuModuleNVX>::type Device::createCuModuleNVX(
11985 CuModuleCreateInfoNVX const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
11986 {
11987 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11988 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11989 VULKAN_HPP_ASSERT( d.vkCreateCuModuleNVX && "Function <vkCreateCuModuleNVX> requires <VK_NVX_binary_import>" );
11990 # endif
11991
11992 CuModuleNVX module;
11993 Result result = static_cast<Result>( d.vkCreateCuModuleNVX( m_device,
11994 reinterpret_cast<VkCuModuleCreateInfoNVX const *>( &createInfo ),
11995 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
11996 reinterpret_cast<VkCuModuleNVX *>( &module ) ) );
11997 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCuModuleNVX" );
11998
11999 return detail::createResultValueType( result, std::move( module ) );
12000 }
12001
12002 # ifndef VULKAN_HPP_NO_SMART_HANDLE
12003 // wrapper function for command vkCreateCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuModuleNVX.html
12004 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCuModuleNVX ), bool>::type>
12005 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<CuModuleNVX, Dispatch>>::type Device::createCuModuleNVXUnique(
12006 CuModuleCreateInfoNVX const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
12007 {
12008 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12009 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12010 VULKAN_HPP_ASSERT( d.vkCreateCuModuleNVX && "Function <vkCreateCuModuleNVX> requires <VK_NVX_binary_import>" );
12011 # endif
12012
12013 CuModuleNVX module;
12014 Result result = static_cast<Result>( d.vkCreateCuModuleNVX( m_device,
12015 reinterpret_cast<VkCuModuleCreateInfoNVX const *>( &createInfo ),
12016 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
12017 reinterpret_cast<VkCuModuleNVX *>( &module ) ) );
12018 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCuModuleNVXUnique" );
12019
12020 return detail::createResultValueType( result,
12021 UniqueHandle<CuModuleNVX, Dispatch>( module, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
12022 }
12023 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
12024 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12025
12026 // wrapper function for command vkCreateCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuFunctionNVX.html
12027 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCuFunctionNVX ), bool>::type>
12028 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createCuFunctionNVX(
12029 CuFunctionCreateInfoNVX const * pCreateInfo, AllocationCallbacks const * pAllocator, CuFunctionNVX * pFunction, Dispatch const & d )
12030 const VULKAN_HPP_NOEXCEPT
12031 {
12032 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12033 return static_cast<Result>( d.vkCreateCuFunctionNVX( static_cast<VkDevice>( m_device ),
12034 reinterpret_cast<VkCuFunctionCreateInfoNVX const *>( pCreateInfo ),
12035 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
12036 reinterpret_cast<VkCuFunctionNVX *>( pFunction ) ) );
12037 }
12038
12039 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12040 // wrapper function for command vkCreateCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuFunctionNVX.html
12041 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCuFunctionNVX ), bool>::type>
12042 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CuFunctionNVX>::type Device::createCuFunctionNVX(
12043 CuFunctionCreateInfoNVX const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
12044 {
12045 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12046 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12047 VULKAN_HPP_ASSERT( d.vkCreateCuFunctionNVX && "Function <vkCreateCuFunctionNVX> requires <VK_NVX_binary_import>" );
12048 # endif
12049
12050 CuFunctionNVX function;
12051 Result result = static_cast<Result>( d.vkCreateCuFunctionNVX( m_device,
12052 reinterpret_cast<VkCuFunctionCreateInfoNVX const *>( &createInfo ),
12053 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
12054 reinterpret_cast<VkCuFunctionNVX *>( &function ) ) );
12055 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCuFunctionNVX" );
12056
12057 return detail::createResultValueType( result, std::move( function ) );
12058 }
12059
12060 # ifndef VULKAN_HPP_NO_SMART_HANDLE
12061 // wrapper function for command vkCreateCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuFunctionNVX.html
12062 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCuFunctionNVX ), bool>::type>
12063 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<CuFunctionNVX, Dispatch>>::type Device::createCuFunctionNVXUnique(
12064 CuFunctionCreateInfoNVX const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
12065 {
12066 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12067 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12068 VULKAN_HPP_ASSERT( d.vkCreateCuFunctionNVX && "Function <vkCreateCuFunctionNVX> requires <VK_NVX_binary_import>" );
12069 # endif
12070
12071 CuFunctionNVX function;
12072 Result result = static_cast<Result>( d.vkCreateCuFunctionNVX( m_device,
12073 reinterpret_cast<VkCuFunctionCreateInfoNVX const *>( &createInfo ),
12074 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
12075 reinterpret_cast<VkCuFunctionNVX *>( &function ) ) );
12076 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCuFunctionNVXUnique" );
12077
12078 return detail::createResultValueType( result,
12079 UniqueHandle<CuFunctionNVX, Dispatch>( function, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
12080 }
12081 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
12082 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12083
12084 // wrapper function for command vkDestroyCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuModuleNVX.html
12085 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuModuleNVX ), bool>::type>
12086 VULKAN_HPP_INLINE void Device::destroyCuModuleNVX( CuModuleNVX module, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12087 {
12088 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12089 d.vkDestroyCuModuleNVX(
12090 static_cast<VkDevice>( m_device ), static_cast<VkCuModuleNVX>( module ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
12091 }
12092
12093 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12094 // wrapper function for command vkDestroyCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuModuleNVX.html
12095 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuModuleNVX ), bool>::type>
12096 VULKAN_HPP_INLINE void Device::destroyCuModuleNVX( CuModuleNVX module, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
12097 const VULKAN_HPP_NOEXCEPT
12098 {
12099 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12100 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12101 VULKAN_HPP_ASSERT( d.vkDestroyCuModuleNVX && "Function <vkDestroyCuModuleNVX> requires <VK_NVX_binary_import>" );
12102 # endif
12103
12104 d.vkDestroyCuModuleNVX( m_device, static_cast<VkCuModuleNVX>( module ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
12105 }
12106 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12107
12108 // wrapper function for command vkDestroyCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuModuleNVX.html
12109 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuModuleNVX ), bool>::type>
12110 VULKAN_HPP_INLINE void Device::destroy( CuModuleNVX module, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12111 {
12112 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12113 d.vkDestroyCuModuleNVX(
12114 static_cast<VkDevice>( m_device ), static_cast<VkCuModuleNVX>( module ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
12115 }
12116
12117 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12118 // wrapper function for command vkDestroyCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuModuleNVX.html
12119 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuModuleNVX ), bool>::type>
12120 VULKAN_HPP_INLINE void Device::destroy( CuModuleNVX module, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12121 {
12122 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12123 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12124 VULKAN_HPP_ASSERT( d.vkDestroyCuModuleNVX && "Function <vkDestroyCuModuleNVX> requires <VK_NVX_binary_import>" );
12125 # endif
12126
12127 d.vkDestroyCuModuleNVX( m_device, static_cast<VkCuModuleNVX>( module ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
12128 }
12129 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12130
12131 // wrapper function for command vkDestroyCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuFunctionNVX.html
12132 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuFunctionNVX ), bool>::type>
12133 VULKAN_HPP_INLINE void Device::destroyCuFunctionNVX( CuFunctionNVX function, AllocationCallbacks const * pAllocator, Dispatch const & d )
12134 const VULKAN_HPP_NOEXCEPT
12135 {
12136 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12137 d.vkDestroyCuFunctionNVX(
12138 static_cast<VkDevice>( m_device ), static_cast<VkCuFunctionNVX>( function ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
12139 }
12140
12141 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12142 // wrapper function for command vkDestroyCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuFunctionNVX.html
12143 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuFunctionNVX ), bool>::type>
12144 VULKAN_HPP_INLINE void Device::destroyCuFunctionNVX( CuFunctionNVX function, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
12145 const VULKAN_HPP_NOEXCEPT
12146 {
12147 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12148 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12149 VULKAN_HPP_ASSERT( d.vkDestroyCuFunctionNVX && "Function <vkDestroyCuFunctionNVX> requires <VK_NVX_binary_import>" );
12150 # endif
12151
12152 d.vkDestroyCuFunctionNVX( m_device, static_cast<VkCuFunctionNVX>( function ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
12153 }
12154 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12155
12156 // wrapper function for command vkDestroyCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuFunctionNVX.html
12157 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuFunctionNVX ), bool>::type>
12158 VULKAN_HPP_INLINE void Device::destroy( CuFunctionNVX function, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12159 {
12160 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12161 d.vkDestroyCuFunctionNVX(
12162 static_cast<VkDevice>( m_device ), static_cast<VkCuFunctionNVX>( function ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
12163 }
12164
12165 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12166 // wrapper function for command vkDestroyCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuFunctionNVX.html
12167 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuFunctionNVX ), bool>::type>
12168 VULKAN_HPP_INLINE void Device::destroy( CuFunctionNVX function, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12169 {
12170 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12171 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12172 VULKAN_HPP_ASSERT( d.vkDestroyCuFunctionNVX && "Function <vkDestroyCuFunctionNVX> requires <VK_NVX_binary_import>" );
12173 # endif
12174
12175 d.vkDestroyCuFunctionNVX( m_device, static_cast<VkCuFunctionNVX>( function ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
12176 }
12177 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12178
12179 // wrapper function for command vkCmdCuLaunchKernelNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCuLaunchKernelNVX.html
12180 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCuLaunchKernelNVX ), bool>::type>
12181 VULKAN_HPP_INLINE void CommandBuffer::cuLaunchKernelNVX( CuLaunchInfoNVX const * pLaunchInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12182 {
12183 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12184 d.vkCmdCuLaunchKernelNVX( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCuLaunchInfoNVX const *>( pLaunchInfo ) );
12185 }
12186
12187 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12188 // wrapper function for command vkCmdCuLaunchKernelNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCuLaunchKernelNVX.html
12189 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCuLaunchKernelNVX ), bool>::type>
12190 VULKAN_HPP_INLINE void CommandBuffer::cuLaunchKernelNVX( CuLaunchInfoNVX const & launchInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12191 {
12192 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12193 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12194 VULKAN_HPP_ASSERT( d.vkCmdCuLaunchKernelNVX && "Function <vkCmdCuLaunchKernelNVX> requires <VK_NVX_binary_import>" );
12195 # endif
12196
12197 d.vkCmdCuLaunchKernelNVX( m_commandBuffer, reinterpret_cast<VkCuLaunchInfoNVX const *>( &launchInfo ) );
12198 }
12199 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12200
12201 //=== VK_NVX_image_view_handle ===
12202
12203 // wrapper function for command vkGetImageViewHandleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewHandleNVX.html
12204 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewHandleNVX ), bool>::type>
12205 VULKAN_HPP_INLINE uint32_t Device::getImageViewHandleNVX( ImageViewHandleInfoNVX const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12206 {
12207 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12208 return d.vkGetImageViewHandleNVX( static_cast<VkDevice>( m_device ), reinterpret_cast<VkImageViewHandleInfoNVX const *>( pInfo ) );
12209 }
12210
12211 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12212 // wrapper function for command vkGetImageViewHandleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewHandleNVX.html
12213 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewHandleNVX ), bool>::type>
12214 VULKAN_HPP_INLINE uint32_t Device::getImageViewHandleNVX( ImageViewHandleInfoNVX const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12215 {
12216 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12217 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12218 VULKAN_HPP_ASSERT( d.vkGetImageViewHandleNVX && "Function <vkGetImageViewHandleNVX> requires <VK_NVX_image_view_handle>" );
12219 # endif
12220
12221 uint32_t result = d.vkGetImageViewHandleNVX( m_device, reinterpret_cast<VkImageViewHandleInfoNVX const *>( &info ) );
12222
12223 return result;
12224 }
12225 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12226
12227 // wrapper function for command vkGetImageViewHandle64NVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewHandle64NVX.html
12228 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewHandle64NVX ), bool>::type>
12229 VULKAN_HPP_INLINE uint64_t Device::getImageViewHandle64NVX( ImageViewHandleInfoNVX const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12230 {
12231 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12232 return d.vkGetImageViewHandle64NVX( static_cast<VkDevice>( m_device ), reinterpret_cast<VkImageViewHandleInfoNVX const *>( pInfo ) );
12233 }
12234
12235 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12236 // wrapper function for command vkGetImageViewHandle64NVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewHandle64NVX.html
12237 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewHandle64NVX ), bool>::type>
12238 VULKAN_HPP_INLINE uint64_t Device::getImageViewHandle64NVX( ImageViewHandleInfoNVX const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12239 {
12240 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12241 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12242 VULKAN_HPP_ASSERT( d.vkGetImageViewHandle64NVX && "Function <vkGetImageViewHandle64NVX> requires <VK_NVX_image_view_handle>" );
12243 # endif
12244
12245 uint64_t result = d.vkGetImageViewHandle64NVX( m_device, reinterpret_cast<VkImageViewHandleInfoNVX const *>( &info ) );
12246
12247 return result;
12248 }
12249 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12250
12251 // wrapper function for command vkGetImageViewAddressNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewAddressNVX.html
12252 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewAddressNVX ), bool>::type>
12253 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getImageViewAddressNVX(
12254 ImageView imageView, ImageViewAddressPropertiesNVX * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12255 {
12256 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12257 return static_cast<Result>( d.vkGetImageViewAddressNVX(
12258 static_cast<VkDevice>( m_device ), static_cast<VkImageView>( imageView ), reinterpret_cast<VkImageViewAddressPropertiesNVX *>( pProperties ) ) );
12259 }
12260
12261 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12262 // wrapper function for command vkGetImageViewAddressNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewAddressNVX.html
12263 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewAddressNVX ), bool>::type>
12264 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageViewAddressPropertiesNVX>::type Device::getImageViewAddressNVX(
12265 ImageView imageView, Dispatch const & d ) const
12266 {
12267 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12268 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12269 VULKAN_HPP_ASSERT( d.vkGetImageViewAddressNVX && "Function <vkGetImageViewAddressNVX> requires <VK_NVX_image_view_handle>" );
12270 # endif
12271
12272 ImageViewAddressPropertiesNVX properties;
12273 Result result = static_cast<Result>(
12274 d.vkGetImageViewAddressNVX( m_device, static_cast<VkImageView>( imageView ), reinterpret_cast<VkImageViewAddressPropertiesNVX *>( &properties ) ) );
12275 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageViewAddressNVX" );
12276
12277 return detail::createResultValueType( result, std::move( properties ) );
12278 }
12279 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12280
12281 // wrapper function for command vkGetDeviceCombinedImageSamplerIndexNVX, see
12282 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceCombinedImageSamplerIndexNVX.html
12283 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceCombinedImageSamplerIndexNVX ), bool>::type>
12284 VULKAN_HPP_INLINE uint64_t Device::getCombinedImageSamplerIndexNVX( uint64_t imageViewIndex, uint64_t samplerIndex, Dispatch const & d )
12285 const VULKAN_HPP_NOEXCEPT
12286 {
12287 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12288 return d.vkGetDeviceCombinedImageSamplerIndexNVX( static_cast<VkDevice>( m_device ), imageViewIndex, samplerIndex );
12289 }
12290
12291 //=== VK_AMD_draw_indirect_count ===
12292
12293 // wrapper function for command vkCmdDrawIndirectCountAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCountAMD.html
12294 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirectCountAMD ), bool>::type>
12295 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectCountAMD(
12296 Buffer buffer, DeviceSize offset, Buffer countBuffer, DeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride, Dispatch const & d )
12297 const VULKAN_HPP_NOEXCEPT
12298 {
12299 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12300 d.vkCmdDrawIndirectCountAMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
12301 static_cast<VkBuffer>( buffer ),
12302 static_cast<VkDeviceSize>( offset ),
12303 static_cast<VkBuffer>( countBuffer ),
12304 static_cast<VkDeviceSize>( countBufferOffset ),
12305 maxDrawCount,
12306 stride );
12307 }
12308
12309 // wrapper function for command vkCmdDrawIndexedIndirectCountAMD, see
12310 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCountAMD.html
12311 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexedIndirectCountAMD ), bool>::type>
12312 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirectCountAMD(
12313 Buffer buffer, DeviceSize offset, Buffer countBuffer, DeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride, Dispatch const & d )
12314 const VULKAN_HPP_NOEXCEPT
12315 {
12316 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12317 d.vkCmdDrawIndexedIndirectCountAMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
12318 static_cast<VkBuffer>( buffer ),
12319 static_cast<VkDeviceSize>( offset ),
12320 static_cast<VkBuffer>( countBuffer ),
12321 static_cast<VkDeviceSize>( countBufferOffset ),
12322 maxDrawCount,
12323 stride );
12324 }
12325
12326 //=== VK_AMD_shader_info ===
12327
12328 // wrapper function for command vkGetShaderInfoAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderInfoAMD.html
12329 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderInfoAMD ), bool>::type>
12330 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getShaderInfoAMD(
12331 Pipeline pipeline, ShaderStageFlagBits shaderStage, ShaderInfoTypeAMD infoType, size_t * pInfoSize, void * pInfo, Dispatch const & d )
12332 const VULKAN_HPP_NOEXCEPT
12333 {
12334 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12335 return static_cast<Result>( d.vkGetShaderInfoAMD( static_cast<VkDevice>( m_device ),
12336 static_cast<VkPipeline>( pipeline ),
12337 static_cast<VkShaderStageFlagBits>( shaderStage ),
12338 static_cast<VkShaderInfoTypeAMD>( infoType ),
12339 pInfoSize,
12340 pInfo ) );
12341 }
12342
12343 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12344 // wrapper function for command vkGetShaderInfoAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderInfoAMD.html
12345 template <typename Uint8_tAllocator,
12346 typename Dispatch,
12347 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
12348 typename std::enable_if<IS_DISPATCHED( vkGetShaderInfoAMD ), bool>::type>
12349 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type Device::getShaderInfoAMD(
12350 Pipeline pipeline, ShaderStageFlagBits shaderStage, ShaderInfoTypeAMD infoType, Dispatch const & d ) const
12351 {
12352 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12353 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12354 VULKAN_HPP_ASSERT( d.vkGetShaderInfoAMD && "Function <vkGetShaderInfoAMD> requires <VK_AMD_shader_info>" );
12355 # endif
12356
12357 std::vector<uint8_t, Uint8_tAllocator> info;
12358 size_t infoSize;
12359 Result result;
12360 do
12361 {
12362 result = static_cast<Result>( d.vkGetShaderInfoAMD( m_device,
12363 static_cast<VkPipeline>( pipeline ),
12364 static_cast<VkShaderStageFlagBits>( shaderStage ),
12365 static_cast<VkShaderInfoTypeAMD>( infoType ),
12366 &infoSize,
12367 nullptr ) );
12368 if ( ( result == Result::eSuccess ) && infoSize )
12369 {
12370 info.resize( infoSize );
12371 result = static_cast<Result>( d.vkGetShaderInfoAMD( m_device,
12372 static_cast<VkPipeline>( pipeline ),
12373 static_cast<VkShaderStageFlagBits>( shaderStage ),
12374 static_cast<VkShaderInfoTypeAMD>( infoType ),
12375 &infoSize,
12376 reinterpret_cast<void *>( info.data() ) ) );
12377 }
12378 } while ( result == Result::eIncomplete );
12379 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getShaderInfoAMD" );
12380 VULKAN_HPP_ASSERT( infoSize <= info.size() );
12381 if ( infoSize < info.size() )
12382 {
12383 info.resize( infoSize );
12384 }
12385 return detail::createResultValueType( result, std::move( info ) );
12386 }
12387
12388 // wrapper function for command vkGetShaderInfoAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderInfoAMD.html
12389 template <typename Uint8_tAllocator,
12390 typename Dispatch,
12391 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
12392 typename std::enable_if<IS_DISPATCHED( vkGetShaderInfoAMD ), bool>::type>
12393 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type Device::getShaderInfoAMD(
12394 Pipeline pipeline, ShaderStageFlagBits shaderStage, ShaderInfoTypeAMD infoType, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
12395 {
12396 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12397 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12398 VULKAN_HPP_ASSERT( d.vkGetShaderInfoAMD && "Function <vkGetShaderInfoAMD> requires <VK_AMD_shader_info>" );
12399 # endif
12400
12401 std::vector<uint8_t, Uint8_tAllocator> info( uint8_tAllocator );
12402 size_t infoSize;
12403 Result result;
12404 do
12405 {
12406 result = static_cast<Result>( d.vkGetShaderInfoAMD( m_device,
12407 static_cast<VkPipeline>( pipeline ),
12408 static_cast<VkShaderStageFlagBits>( shaderStage ),
12409 static_cast<VkShaderInfoTypeAMD>( infoType ),
12410 &infoSize,
12411 nullptr ) );
12412 if ( ( result == Result::eSuccess ) && infoSize )
12413 {
12414 info.resize( infoSize );
12415 result = static_cast<Result>( d.vkGetShaderInfoAMD( m_device,
12416 static_cast<VkPipeline>( pipeline ),
12417 static_cast<VkShaderStageFlagBits>( shaderStage ),
12418 static_cast<VkShaderInfoTypeAMD>( infoType ),
12419 &infoSize,
12420 reinterpret_cast<void *>( info.data() ) ) );
12421 }
12422 } while ( result == Result::eIncomplete );
12423 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getShaderInfoAMD" );
12424 VULKAN_HPP_ASSERT( infoSize <= info.size() );
12425 if ( infoSize < info.size() )
12426 {
12427 info.resize( infoSize );
12428 }
12429 return detail::createResultValueType( result, std::move( info ) );
12430 }
12431 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12432
12433 //=== VK_KHR_dynamic_rendering ===
12434
12435 // wrapper function for command vkCmdBeginRenderingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderingKHR.html
12436 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderingKHR ), bool>::type>
12437 VULKAN_HPP_INLINE void CommandBuffer::beginRenderingKHR( RenderingInfo const * pRenderingInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12438 {
12439 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12440 d.vkCmdBeginRenderingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkRenderingInfo const *>( pRenderingInfo ) );
12441 }
12442
12443 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12444 // wrapper function for command vkCmdBeginRenderingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderingKHR.html
12445 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderingKHR ), bool>::type>
12446 VULKAN_HPP_INLINE void CommandBuffer::beginRenderingKHR( RenderingInfo const & renderingInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12447 {
12448 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12449 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12450 VULKAN_HPP_ASSERT( d.vkCmdBeginRenderingKHR && "Function <vkCmdBeginRenderingKHR> requires <VK_KHR_dynamic_rendering> or <VK_VERSION_1_3>" );
12451 # endif
12452
12453 d.vkCmdBeginRenderingKHR( m_commandBuffer, reinterpret_cast<VkRenderingInfo const *>( &renderingInfo ) );
12454 }
12455 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12456
12457 // wrapper function for command vkCmdEndRenderingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderingKHR.html
12458 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRenderingKHR ), bool>::type>
12459 VULKAN_HPP_INLINE void CommandBuffer::endRenderingKHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12460 {
12461 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12462 d.vkCmdEndRenderingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ) );
12463 }
12464
12465 #if defined( VK_USE_PLATFORM_GGP )
12466 //=== VK_GGP_stream_descriptor_surface ===
12467
12468 // wrapper function for command vkCreateStreamDescriptorSurfaceGGP, see
12469 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateStreamDescriptorSurfaceGGP.html
12470 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateStreamDescriptorSurfaceGGP ), bool>::type>
12471 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createStreamDescriptorSurfaceGGP(
12472 StreamDescriptorSurfaceCreateInfoGGP const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d )
12473 const VULKAN_HPP_NOEXCEPT
12474 {
12475 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12476 return static_cast<Result>( d.vkCreateStreamDescriptorSurfaceGGP( static_cast<VkInstance>( m_instance ),
12477 reinterpret_cast<VkStreamDescriptorSurfaceCreateInfoGGP const *>( pCreateInfo ),
12478 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
12479 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
12480 }
12481
12482 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12483 // wrapper function for command vkCreateStreamDescriptorSurfaceGGP, see
12484 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateStreamDescriptorSurfaceGGP.html
12485 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateStreamDescriptorSurfaceGGP ), bool>::type>
12486 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createStreamDescriptorSurfaceGGP(
12487 StreamDescriptorSurfaceCreateInfoGGP const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
12488 {
12489 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12490 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12491 VULKAN_HPP_ASSERT( d.vkCreateStreamDescriptorSurfaceGGP && "Function <vkCreateStreamDescriptorSurfaceGGP> requires <VK_GGP_stream_descriptor_surface>" );
12492 # endif
12493
12494 SurfaceKHR surface;
12495 Result result = static_cast<Result>( d.vkCreateStreamDescriptorSurfaceGGP( m_instance,
12496 reinterpret_cast<VkStreamDescriptorSurfaceCreateInfoGGP const *>( &createInfo ),
12497 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
12498 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
12499 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createStreamDescriptorSurfaceGGP" );
12500
12501 return detail::createResultValueType( result, std::move( surface ) );
12502 }
12503
12504 # ifndef VULKAN_HPP_NO_SMART_HANDLE
12505 // wrapper function for command vkCreateStreamDescriptorSurfaceGGP, see
12506 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateStreamDescriptorSurfaceGGP.html
12507 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateStreamDescriptorSurfaceGGP ), bool>::type>
12508 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createStreamDescriptorSurfaceGGPUnique(
12509 StreamDescriptorSurfaceCreateInfoGGP const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
12510 {
12511 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12512 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12513 VULKAN_HPP_ASSERT( d.vkCreateStreamDescriptorSurfaceGGP && "Function <vkCreateStreamDescriptorSurfaceGGP> requires <VK_GGP_stream_descriptor_surface>" );
12514 # endif
12515
12516 SurfaceKHR surface;
12517 Result result = static_cast<Result>( d.vkCreateStreamDescriptorSurfaceGGP( m_instance,
12518 reinterpret_cast<VkStreamDescriptorSurfaceCreateInfoGGP const *>( &createInfo ),
12519 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
12520 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
12521 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createStreamDescriptorSurfaceGGPUnique" );
12522
12523 return detail::createResultValueType( result,
12524 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
12525 }
12526 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
12527 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12528 #endif /*VK_USE_PLATFORM_GGP*/
12529
12530 //=== VK_NV_external_memory_capabilities ===
12531
12532 // wrapper function for command vkGetPhysicalDeviceExternalImageFormatPropertiesNV, see
12533 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalImageFormatPropertiesNV.html
12534 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalImageFormatPropertiesNV ), bool>::type>
12535 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getExternalImageFormatPropertiesNV( Format format,
12536 ImageType type,
12537 ImageTiling tiling,
12538 ImageUsageFlags usage,
12539 ImageCreateFlags flags,
12540 ExternalMemoryHandleTypeFlagsNV externalHandleType,
12541 ExternalImageFormatPropertiesNV *
12542 pExternalImageFormatProperties,
12543 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12544 {
12545 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12546 return static_cast<Result>(
12547 d.vkGetPhysicalDeviceExternalImageFormatPropertiesNV( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12548 static_cast<VkFormat>( format ),
12549 static_cast<VkImageType>( type ),
12550 static_cast<VkImageTiling>( tiling ),
12551 static_cast<VkImageUsageFlags>( usage ),
12552 static_cast<VkImageCreateFlags>( flags ),
12553 static_cast<VkExternalMemoryHandleTypeFlagsNV>( externalHandleType ),
12554 reinterpret_cast<VkExternalImageFormatPropertiesNV *>( pExternalImageFormatProperties ) ) );
12555 }
12556
12557 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12558 // wrapper function for command vkGetPhysicalDeviceExternalImageFormatPropertiesNV, see
12559 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalImageFormatPropertiesNV.html
12560 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalImageFormatPropertiesNV ), bool>::type>
12561 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ExternalImageFormatPropertiesNV>::type PhysicalDevice::getExternalImageFormatPropertiesNV(
12562 Format format,
12563 ImageType type,
12564 ImageTiling tiling,
12565 ImageUsageFlags usage,
12566 ImageCreateFlags flags,
12567 ExternalMemoryHandleTypeFlagsNV externalHandleType,
12568 Dispatch const & d ) const
12569 {
12570 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12571 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12572 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalImageFormatPropertiesNV &&
12573 "Function <vkGetPhysicalDeviceExternalImageFormatPropertiesNV> requires <VK_NV_external_memory_capabilities>" );
12574 # endif
12575
12576 ExternalImageFormatPropertiesNV externalImageFormatProperties;
12577 Result result = static_cast<Result>(
12578 d.vkGetPhysicalDeviceExternalImageFormatPropertiesNV( m_physicalDevice,
12579 static_cast<VkFormat>( format ),
12580 static_cast<VkImageType>( type ),
12581 static_cast<VkImageTiling>( tiling ),
12582 static_cast<VkImageUsageFlags>( usage ),
12583 static_cast<VkImageCreateFlags>( flags ),
12584 static_cast<VkExternalMemoryHandleTypeFlagsNV>( externalHandleType ),
12585 reinterpret_cast<VkExternalImageFormatPropertiesNV *>( &externalImageFormatProperties ) ) );
12586 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getExternalImageFormatPropertiesNV" );
12587
12588 return detail::createResultValueType( result, std::move( externalImageFormatProperties ) );
12589 }
12590 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12591
12592 #if defined( VK_USE_PLATFORM_WIN32_KHR )
12593 //=== VK_NV_external_memory_win32 ===
12594
12595 // wrapper function for command vkGetMemoryWin32HandleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandleNV.html
12596 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryWin32HandleNV ), bool>::type>
12597 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryWin32HandleNV(
12598 DeviceMemory memory, ExternalMemoryHandleTypeFlagsNV handleType, HANDLE * pHandle, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12599 {
12600 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12601 return static_cast<Result>( d.vkGetMemoryWin32HandleNV(
12602 static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( memory ), static_cast<VkExternalMemoryHandleTypeFlagsNV>( handleType ), pHandle ) );
12603 }
12604
12605 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12606 // wrapper function for command vkGetMemoryWin32HandleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandleNV.html
12607 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryWin32HandleNV ), bool>::type>
12608 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HANDLE>::type Device::getMemoryWin32HandleNV(
12609 DeviceMemory memory, ExternalMemoryHandleTypeFlagsNV handleType, Dispatch const & d ) const
12610 {
12611 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12612 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12613 VULKAN_HPP_ASSERT( d.vkGetMemoryWin32HandleNV && "Function <vkGetMemoryWin32HandleNV> requires <VK_NV_external_memory_win32>" );
12614 # endif
12615
12616 HANDLE handle;
12617 Result result = static_cast<Result>(
12618 d.vkGetMemoryWin32HandleNV( m_device, static_cast<VkDeviceMemory>( memory ), static_cast<VkExternalMemoryHandleTypeFlagsNV>( handleType ), &handle ) );
12619 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryWin32HandleNV" );
12620
12621 return detail::createResultValueType( result, std::move( handle ) );
12622 }
12623 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12624 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
12625
12626 //=== VK_KHR_get_physical_device_properties2 ===
12627
12628 // wrapper function for command vkGetPhysicalDeviceFeatures2KHR, see
12629 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2KHR.html
12630 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures2KHR ), bool>::type>
12631 VULKAN_HPP_INLINE void PhysicalDevice::getFeatures2KHR( PhysicalDeviceFeatures2 * pFeatures, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12632 {
12633 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12634 d.vkGetPhysicalDeviceFeatures2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), reinterpret_cast<VkPhysicalDeviceFeatures2 *>( pFeatures ) );
12635 }
12636
12637 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12638 // wrapper function for command vkGetPhysicalDeviceFeatures2KHR, see
12639 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2KHR.html
12640 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures2KHR ), bool>::type>
12641 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceFeatures2 PhysicalDevice::getFeatures2KHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12642 {
12643 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12644 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12645 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFeatures2KHR &&
12646 "Function <vkGetPhysicalDeviceFeatures2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12647 # endif
12648
12649 PhysicalDeviceFeatures2 features;
12650 d.vkGetPhysicalDeviceFeatures2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
12651
12652 return features;
12653 }
12654
12655 // wrapper function for command vkGetPhysicalDeviceFeatures2KHR, see
12656 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2KHR.html
12657 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures2KHR ), bool>::type>
12658 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFeatures2KHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12659 {
12660 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12661 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12662 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFeatures2KHR &&
12663 "Function <vkGetPhysicalDeviceFeatures2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12664 # endif
12665
12666 StructureChain<X, Y, Z...> structureChain;
12667 PhysicalDeviceFeatures2 & features = structureChain.template get<PhysicalDeviceFeatures2>();
12668 d.vkGetPhysicalDeviceFeatures2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
12669
12670 return structureChain;
12671 }
12672 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12673
12674 // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see
12675 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html
12676 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties2KHR ), bool>::type>
12677 VULKAN_HPP_INLINE void PhysicalDevice::getProperties2KHR( PhysicalDeviceProperties2 * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12678 {
12679 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12680 d.vkGetPhysicalDeviceProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), reinterpret_cast<VkPhysicalDeviceProperties2 *>( pProperties ) );
12681 }
12682
12683 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12684 // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see
12685 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html
12686 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties2KHR ), bool>::type>
12687 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceProperties2 PhysicalDevice::getProperties2KHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12688 {
12689 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12690 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12691 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceProperties2KHR &&
12692 "Function <vkGetPhysicalDeviceProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12693 # endif
12694
12695 PhysicalDeviceProperties2 properties;
12696 d.vkGetPhysicalDeviceProperties2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
12697
12698 return properties;
12699 }
12700
12701 // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see
12702 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html
12703 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties2KHR ), bool>::type>
12704 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getProperties2KHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12705 {
12706 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12707 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12708 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceProperties2KHR &&
12709 "Function <vkGetPhysicalDeviceProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12710 # endif
12711
12712 StructureChain<X, Y, Z...> structureChain;
12713 PhysicalDeviceProperties2 & properties = structureChain.template get<PhysicalDeviceProperties2>();
12714 d.vkGetPhysicalDeviceProperties2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
12715
12716 return structureChain;
12717 }
12718 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12719
12720 // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see
12721 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html
12722 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties2KHR ), bool>::type>
12723 VULKAN_HPP_INLINE void PhysicalDevice::getFormatProperties2KHR( Format format, FormatProperties2 * pFormatProperties, Dispatch const & d )
12724 const VULKAN_HPP_NOEXCEPT
12725 {
12726 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12727 d.vkGetPhysicalDeviceFormatProperties2KHR(
12728 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( pFormatProperties ) );
12729 }
12730
12731 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12732 // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see
12733 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html
12734 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties2KHR ), bool>::type>
12735 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE FormatProperties2 PhysicalDevice::getFormatProperties2KHR( Format format, Dispatch const & d )
12736 const VULKAN_HPP_NOEXCEPT
12737 {
12738 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12739 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12740 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFormatProperties2KHR &&
12741 "Function <vkGetPhysicalDeviceFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12742 # endif
12743
12744 FormatProperties2 formatProperties;
12745 d.vkGetPhysicalDeviceFormatProperties2KHR(
12746 m_physicalDevice, static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
12747
12748 return formatProperties;
12749 }
12750
12751 // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see
12752 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html
12753 template <typename X,
12754 typename Y,
12755 typename... Z,
12756 typename Dispatch,
12757 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties2KHR ), bool>::type>
12758 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFormatProperties2KHR( Format format, Dispatch const & d )
12759 const VULKAN_HPP_NOEXCEPT
12760 {
12761 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12762 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12763 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFormatProperties2KHR &&
12764 "Function <vkGetPhysicalDeviceFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12765 # endif
12766
12767 StructureChain<X, Y, Z...> structureChain;
12768 FormatProperties2 & formatProperties = structureChain.template get<FormatProperties2>();
12769 d.vkGetPhysicalDeviceFormatProperties2KHR(
12770 m_physicalDevice, static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
12771
12772 return structureChain;
12773 }
12774 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12775
12776 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see
12777 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html
12778 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties2KHR ), bool>::type>
12779 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getImageFormatProperties2KHR(
12780 PhysicalDeviceImageFormatInfo2 const * pImageFormatInfo, ImageFormatProperties2 * pImageFormatProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12781 {
12782 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12783 return static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12784 reinterpret_cast<VkPhysicalDeviceImageFormatInfo2 const *>( pImageFormatInfo ),
12785 reinterpret_cast<VkImageFormatProperties2 *>( pImageFormatProperties ) ) );
12786 }
12787
12788 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12789 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see
12790 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html
12791 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties2KHR ), bool>::type>
12792 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageFormatProperties2>::type PhysicalDevice::getImageFormatProperties2KHR(
12793 PhysicalDeviceImageFormatInfo2 const & imageFormatInfo, Dispatch const & d ) const
12794 {
12795 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12796 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12797 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceImageFormatProperties2KHR &&
12798 "Function <vkGetPhysicalDeviceImageFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12799 # endif
12800
12801 ImageFormatProperties2 imageFormatProperties;
12802 Result result =
12803 static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2KHR( m_physicalDevice,
12804 reinterpret_cast<VkPhysicalDeviceImageFormatInfo2 const *>( &imageFormatInfo ),
12805 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) );
12806 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2KHR" );
12807
12808 return detail::createResultValueType( result, std::move( imageFormatProperties ) );
12809 }
12810
12811 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see
12812 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html
12813 template <typename X,
12814 typename Y,
12815 typename... Z,
12816 typename Dispatch,
12817 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties2KHR ), bool>::type>
12818 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type PhysicalDevice::getImageFormatProperties2KHR(
12819 PhysicalDeviceImageFormatInfo2 const & imageFormatInfo, Dispatch const & d ) const
12820 {
12821 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12822 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12823 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceImageFormatProperties2KHR &&
12824 "Function <vkGetPhysicalDeviceImageFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12825 # endif
12826
12827 StructureChain<X, Y, Z...> structureChain;
12828 ImageFormatProperties2 & imageFormatProperties = structureChain.template get<ImageFormatProperties2>();
12829 Result result =
12830 static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2KHR( m_physicalDevice,
12831 reinterpret_cast<VkPhysicalDeviceImageFormatInfo2 const *>( &imageFormatInfo ),
12832 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) );
12833 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2KHR" );
12834
12835 return detail::createResultValueType( result, std::move( structureChain ) );
12836 }
12837 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12838
12839 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
12840 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
12841 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2KHR ), bool>::type>
12842 VULKAN_HPP_INLINE void PhysicalDevice::getQueueFamilyProperties2KHR(
12843 uint32_t * pQueueFamilyPropertyCount, QueueFamilyProperties2 * pQueueFamilyProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12844 {
12845 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12846 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR(
12847 static_cast<VkPhysicalDevice>( m_physicalDevice ), pQueueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( pQueueFamilyProperties ) );
12848 }
12849
12850 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12851 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
12852 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
12853 template <typename QueueFamilyProperties2Allocator,
12854 typename Dispatch,
12855 typename std::enable_if<std::is_same<typename QueueFamilyProperties2Allocator::value_type, QueueFamilyProperties2>::value, int>::type,
12856 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2KHR ), bool>::type>
12857 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator> PhysicalDevice::getQueueFamilyProperties2KHR(
12858 Dispatch const & d ) const
12859 {
12860 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12861 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12862 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2KHR &&
12863 "Function <vkGetPhysicalDeviceQueueFamilyProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12864 # endif
12865
12866 std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator> queueFamilyProperties;
12867 uint32_t queueFamilyPropertyCount;
12868 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
12869 queueFamilyProperties.resize( queueFamilyPropertyCount );
12870 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR(
12871 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
12872
12873 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
12874 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
12875 {
12876 queueFamilyProperties.resize( queueFamilyPropertyCount );
12877 }
12878 return queueFamilyProperties;
12879 }
12880
12881 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
12882 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
12883 template <typename QueueFamilyProperties2Allocator,
12884 typename Dispatch,
12885 typename std::enable_if<std::is_same<typename QueueFamilyProperties2Allocator::value_type, QueueFamilyProperties2>::value, int>::type,
12886 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2KHR ), bool>::type>
12887 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator> PhysicalDevice::getQueueFamilyProperties2KHR(
12888 QueueFamilyProperties2Allocator const & queueFamilyProperties2Allocator, Dispatch const & d ) const
12889 {
12890 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12891 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12892 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2KHR &&
12893 "Function <vkGetPhysicalDeviceQueueFamilyProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12894 # endif
12895
12896 std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator> queueFamilyProperties( queueFamilyProperties2Allocator );
12897 uint32_t queueFamilyPropertyCount;
12898 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
12899 queueFamilyProperties.resize( queueFamilyPropertyCount );
12900 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR(
12901 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
12902
12903 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
12904 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
12905 {
12906 queueFamilyProperties.resize( queueFamilyPropertyCount );
12907 }
12908 return queueFamilyProperties;
12909 }
12910
12911 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
12912 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
12913 template <typename StructureChain,
12914 typename StructureChainAllocator,
12915 typename Dispatch,
12916 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
12917 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2KHR ), bool>::type>
12918 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<StructureChain, StructureChainAllocator> PhysicalDevice::getQueueFamilyProperties2KHR( Dispatch const & d )
12919 const
12920 {
12921 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12922 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12923 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2KHR &&
12924 "Function <vkGetPhysicalDeviceQueueFamilyProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12925 # endif
12926
12927 std::vector<StructureChain, StructureChainAllocator> structureChains;
12928 std::vector<QueueFamilyProperties2> queueFamilyProperties;
12929 uint32_t queueFamilyPropertyCount;
12930 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
12931 structureChains.resize( queueFamilyPropertyCount );
12932 queueFamilyProperties.resize( queueFamilyPropertyCount );
12933 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
12934 {
12935 queueFamilyProperties[i].pNext = structureChains[i].template get<QueueFamilyProperties2>().pNext;
12936 }
12937 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR(
12938 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
12939
12940 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
12941 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
12942 {
12943 structureChains.resize( queueFamilyPropertyCount );
12944 }
12945 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
12946 {
12947 structureChains[i].template get<QueueFamilyProperties2>() = queueFamilyProperties[i];
12948 }
12949 return structureChains;
12950 }
12951
12952 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
12953 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
12954 template <typename StructureChain,
12955 typename StructureChainAllocator,
12956 typename Dispatch,
12957 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
12958 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2KHR ), bool>::type>
12959 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<StructureChain, StructureChainAllocator> PhysicalDevice::getQueueFamilyProperties2KHR(
12960 StructureChainAllocator const & structureChainAllocator, Dispatch const & d ) const
12961 {
12962 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12963 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12964 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2KHR &&
12965 "Function <vkGetPhysicalDeviceQueueFamilyProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12966 # endif
12967
12968 std::vector<StructureChain, StructureChainAllocator> structureChains( structureChainAllocator );
12969 std::vector<QueueFamilyProperties2> queueFamilyProperties;
12970 uint32_t queueFamilyPropertyCount;
12971 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
12972 structureChains.resize( queueFamilyPropertyCount );
12973 queueFamilyProperties.resize( queueFamilyPropertyCount );
12974 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
12975 {
12976 queueFamilyProperties[i].pNext = structureChains[i].template get<QueueFamilyProperties2>().pNext;
12977 }
12978 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR(
12979 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
12980
12981 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
12982 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
12983 {
12984 structureChains.resize( queueFamilyPropertyCount );
12985 }
12986 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
12987 {
12988 structureChains[i].template get<QueueFamilyProperties2>() = queueFamilyProperties[i];
12989 }
12990 return structureChains;
12991 }
12992 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12993
12994 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2KHR, see
12995 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2KHR.html
12996 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties2KHR ), bool>::type>
12997 VULKAN_HPP_INLINE void PhysicalDevice::getMemoryProperties2KHR( PhysicalDeviceMemoryProperties2 * pMemoryProperties, Dispatch const & d )
12998 const VULKAN_HPP_NOEXCEPT
12999 {
13000 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13001 d.vkGetPhysicalDeviceMemoryProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13002 reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( pMemoryProperties ) );
13003 }
13004
13005 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13006 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2KHR, see
13007 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2KHR.html
13008 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties2KHR ), bool>::type>
13009 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceMemoryProperties2 PhysicalDevice::getMemoryProperties2KHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13010 {
13011 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13012 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13013 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceMemoryProperties2KHR &&
13014 "Function <vkGetPhysicalDeviceMemoryProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13015 # endif
13016
13017 PhysicalDeviceMemoryProperties2 memoryProperties;
13018 d.vkGetPhysicalDeviceMemoryProperties2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
13019
13020 return memoryProperties;
13021 }
13022
13023 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2KHR, see
13024 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2KHR.html
13025 template <typename X,
13026 typename Y,
13027 typename... Z,
13028 typename Dispatch,
13029 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties2KHR ), bool>::type>
13030 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getMemoryProperties2KHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13031 {
13032 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13033 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13034 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceMemoryProperties2KHR &&
13035 "Function <vkGetPhysicalDeviceMemoryProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13036 # endif
13037
13038 StructureChain<X, Y, Z...> structureChain;
13039 PhysicalDeviceMemoryProperties2 & memoryProperties = structureChain.template get<PhysicalDeviceMemoryProperties2>();
13040 d.vkGetPhysicalDeviceMemoryProperties2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
13041
13042 return structureChain;
13043 }
13044 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13045
13046 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2KHR, see
13047 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2KHR.html
13048 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties2KHR ), bool>::type>
13049 VULKAN_HPP_INLINE void PhysicalDevice::getSparseImageFormatProperties2KHR(
13050 PhysicalDeviceSparseImageFormatInfo2 const * pFormatInfo, uint32_t * pPropertyCount, SparseImageFormatProperties2 * pProperties, Dispatch const & d )
13051 const VULKAN_HPP_NOEXCEPT
13052 {
13053 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13054 d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13055 reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( pFormatInfo ),
13056 pPropertyCount,
13057 reinterpret_cast<VkSparseImageFormatProperties2 *>( pProperties ) );
13058 }
13059
13060 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13061 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2KHR, see
13062 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2KHR.html
13063 template <typename SparseImageFormatProperties2Allocator,
13064 typename Dispatch,
13065 typename std::enable_if<std::is_same<typename SparseImageFormatProperties2Allocator::value_type, SparseImageFormatProperties2>::value, int>::type,
13066 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties2KHR ), bool>::type>
13067 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator>
13068 PhysicalDevice::getSparseImageFormatProperties2KHR( PhysicalDeviceSparseImageFormatInfo2 const & formatInfo, Dispatch const & d ) const
13069 {
13070 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13071 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13072 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR &&
13073 "Function <vkGetPhysicalDeviceSparseImageFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13074 # endif
13075
13076 std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator> properties;
13077 uint32_t propertyCount;
13078 d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR(
13079 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( &formatInfo ), &propertyCount, nullptr );
13080 properties.resize( propertyCount );
13081 d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( m_physicalDevice,
13082 reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( &formatInfo ),
13083 &propertyCount,
13084 reinterpret_cast<VkSparseImageFormatProperties2 *>( properties.data() ) );
13085
13086 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
13087 if ( propertyCount < properties.size() )
13088 {
13089 properties.resize( propertyCount );
13090 }
13091 return properties;
13092 }
13093
13094 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2KHR, see
13095 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2KHR.html
13096 template <typename SparseImageFormatProperties2Allocator,
13097 typename Dispatch,
13098 typename std::enable_if<std::is_same<typename SparseImageFormatProperties2Allocator::value_type, SparseImageFormatProperties2>::value, int>::type,
13099 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties2KHR ), bool>::type>
13100 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator>
13101 PhysicalDevice::getSparseImageFormatProperties2KHR( PhysicalDeviceSparseImageFormatInfo2 const & formatInfo,
13102 SparseImageFormatProperties2Allocator const & sparseImageFormatProperties2Allocator,
13103 Dispatch const & d ) const
13104 {
13105 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13106 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13107 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR &&
13108 "Function <vkGetPhysicalDeviceSparseImageFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13109 # endif
13110
13111 std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator> properties( sparseImageFormatProperties2Allocator );
13112 uint32_t propertyCount;
13113 d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR(
13114 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( &formatInfo ), &propertyCount, nullptr );
13115 properties.resize( propertyCount );
13116 d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( m_physicalDevice,
13117 reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( &formatInfo ),
13118 &propertyCount,
13119 reinterpret_cast<VkSparseImageFormatProperties2 *>( properties.data() ) );
13120
13121 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
13122 if ( propertyCount < properties.size() )
13123 {
13124 properties.resize( propertyCount );
13125 }
13126 return properties;
13127 }
13128 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13129
13130 //=== VK_KHR_device_group ===
13131
13132 // wrapper function for command vkGetDeviceGroupPeerMemoryFeaturesKHR, see
13133 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPeerMemoryFeaturesKHR.html
13134 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupPeerMemoryFeaturesKHR ), bool>::type>
13135 VULKAN_HPP_INLINE void Device::getGroupPeerMemoryFeaturesKHR(
13136 uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex, PeerMemoryFeatureFlags * pPeerMemoryFeatures, Dispatch const & d )
13137 const VULKAN_HPP_NOEXCEPT
13138 {
13139 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13140 d.vkGetDeviceGroupPeerMemoryFeaturesKHR(
13141 static_cast<VkDevice>( m_device ), heapIndex, localDeviceIndex, remoteDeviceIndex, reinterpret_cast<VkPeerMemoryFeatureFlags *>( pPeerMemoryFeatures ) );
13142 }
13143
13144 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13145 // wrapper function for command vkGetDeviceGroupPeerMemoryFeaturesKHR, see
13146 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPeerMemoryFeaturesKHR.html
13147 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupPeerMemoryFeaturesKHR ), bool>::type>
13148 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PeerMemoryFeatureFlags Device::getGroupPeerMemoryFeaturesKHR(
13149 uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13150 {
13151 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13152 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13153 VULKAN_HPP_ASSERT( d.vkGetDeviceGroupPeerMemoryFeaturesKHR &&
13154 "Function <vkGetDeviceGroupPeerMemoryFeaturesKHR> requires <VK_KHR_device_group> or <VK_VERSION_1_1>" );
13155 # endif
13156
13157 PeerMemoryFeatureFlags peerMemoryFeatures;
13158 d.vkGetDeviceGroupPeerMemoryFeaturesKHR(
13159 m_device, heapIndex, localDeviceIndex, remoteDeviceIndex, reinterpret_cast<VkPeerMemoryFeatureFlags *>( &peerMemoryFeatures ) );
13160
13161 return peerMemoryFeatures;
13162 }
13163 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13164
13165 // wrapper function for command vkCmdSetDeviceMaskKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDeviceMaskKHR.html
13166 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDeviceMaskKHR ), bool>::type>
13167 VULKAN_HPP_INLINE void CommandBuffer::setDeviceMaskKHR( uint32_t deviceMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13168 {
13169 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13170 d.vkCmdSetDeviceMaskKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), deviceMask );
13171 }
13172
13173 // wrapper function for command vkCmdDispatchBaseKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchBaseKHR.html
13174 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchBaseKHR ), bool>::type>
13175 VULKAN_HPP_INLINE void CommandBuffer::dispatchBaseKHR(
13176 uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ, Dispatch const & d )
13177 const VULKAN_HPP_NOEXCEPT
13178 {
13179 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13180 d.vkCmdDispatchBaseKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ );
13181 }
13182
13183 #if defined( VK_USE_PLATFORM_VI_NN )
13184 //=== VK_NN_vi_surface ===
13185
13186 // wrapper function for command vkCreateViSurfaceNN, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateViSurfaceNN.html
13187 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateViSurfaceNN ), bool>::type>
13188 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createViSurfaceNN(
13189 ViSurfaceCreateInfoNN const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13190 {
13191 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13192 return static_cast<Result>( d.vkCreateViSurfaceNN( static_cast<VkInstance>( m_instance ),
13193 reinterpret_cast<VkViSurfaceCreateInfoNN const *>( pCreateInfo ),
13194 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
13195 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
13196 }
13197
13198 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13199 // wrapper function for command vkCreateViSurfaceNN, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateViSurfaceNN.html
13200 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateViSurfaceNN ), bool>::type>
13201 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createViSurfaceNN(
13202 ViSurfaceCreateInfoNN const & createInfo, Optional<AllocationCallbacks const> allocator, 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.vkCreateViSurfaceNN && "Function <vkCreateViSurfaceNN> requires <VK_NN_vi_surface>" );
13207 # endif
13208
13209 SurfaceKHR surface;
13210 Result result = static_cast<Result>( d.vkCreateViSurfaceNN( m_instance,
13211 reinterpret_cast<VkViSurfaceCreateInfoNN const *>( &createInfo ),
13212 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
13213 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
13214 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createViSurfaceNN" );
13215
13216 return detail::createResultValueType( result, std::move( surface ) );
13217 }
13218
13219 # ifndef VULKAN_HPP_NO_SMART_HANDLE
13220 // wrapper function for command vkCreateViSurfaceNN, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateViSurfaceNN.html
13221 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateViSurfaceNN ), bool>::type>
13222 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createViSurfaceNNUnique(
13223 ViSurfaceCreateInfoNN const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
13224 {
13225 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13226 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13227 VULKAN_HPP_ASSERT( d.vkCreateViSurfaceNN && "Function <vkCreateViSurfaceNN> requires <VK_NN_vi_surface>" );
13228 # endif
13229
13230 SurfaceKHR surface;
13231 Result result = static_cast<Result>( d.vkCreateViSurfaceNN( m_instance,
13232 reinterpret_cast<VkViSurfaceCreateInfoNN const *>( &createInfo ),
13233 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
13234 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
13235 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createViSurfaceNNUnique" );
13236
13237 return detail::createResultValueType( result,
13238 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
13239 }
13240 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
13241 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13242 #endif /*VK_USE_PLATFORM_VI_NN*/
13243
13244 //=== VK_KHR_maintenance1 ===
13245
13246 // wrapper function for command vkTrimCommandPoolKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTrimCommandPoolKHR.html
13247 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkTrimCommandPoolKHR ), bool>::type>
13248 VULKAN_HPP_INLINE void Device::trimCommandPoolKHR( CommandPool commandPool, CommandPoolTrimFlags flags, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13249 {
13250 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13251 d.vkTrimCommandPoolKHR( static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( commandPool ), static_cast<VkCommandPoolTrimFlags>( flags ) );
13252 }
13253
13254 //=== VK_KHR_device_group_creation ===
13255
13256 // wrapper function for command vkEnumeratePhysicalDeviceGroupsKHR, see
13257 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroupsKHR.html
13258 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceGroupsKHR ), bool>::type>
13259 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::enumeratePhysicalDeviceGroupsKHR(
13260 uint32_t * pPhysicalDeviceGroupCount, PhysicalDeviceGroupProperties * pPhysicalDeviceGroupProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13261 {
13262 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13263 return static_cast<Result>( d.vkEnumeratePhysicalDeviceGroupsKHR( static_cast<VkInstance>( m_instance ),
13264 pPhysicalDeviceGroupCount,
13265 reinterpret_cast<VkPhysicalDeviceGroupProperties *>( pPhysicalDeviceGroupProperties ) ) );
13266 }
13267
13268 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13269 // wrapper function for command vkEnumeratePhysicalDeviceGroupsKHR, see
13270 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroupsKHR.html
13271 template <typename PhysicalDeviceGroupPropertiesAllocator,
13272 typename Dispatch,
13273 typename std::enable_if<std::is_same<typename PhysicalDeviceGroupPropertiesAllocator::value_type, PhysicalDeviceGroupProperties>::value, int>::type,
13274 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceGroupsKHR ), bool>::type>
13275 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator>>::type
13276 Instance::enumeratePhysicalDeviceGroupsKHR( Dispatch const & d ) const
13277 {
13278 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13279 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13280 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceGroupsKHR &&
13281 "Function <vkEnumeratePhysicalDeviceGroupsKHR> requires <VK_KHR_device_group_creation> or <VK_VERSION_1_1>" );
13282 # endif
13283
13284 std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator> physicalDeviceGroupProperties;
13285 uint32_t physicalDeviceGroupCount;
13286 Result result;
13287 do
13288 {
13289 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroupsKHR( m_instance, &physicalDeviceGroupCount, nullptr ) );
13290 if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount )
13291 {
13292 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
13293 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroupsKHR(
13294 m_instance, &physicalDeviceGroupCount, reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
13295 }
13296 } while ( result == Result::eIncomplete );
13297 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroupsKHR" );
13298 VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
13299 if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
13300 {
13301 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
13302 }
13303 return detail::createResultValueType( result, std::move( physicalDeviceGroupProperties ) );
13304 }
13305
13306 // wrapper function for command vkEnumeratePhysicalDeviceGroupsKHR, see
13307 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroupsKHR.html
13308 template <typename PhysicalDeviceGroupPropertiesAllocator,
13309 typename Dispatch,
13310 typename std::enable_if<std::is_same<typename PhysicalDeviceGroupPropertiesAllocator::value_type, PhysicalDeviceGroupProperties>::value, int>::type,
13311 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceGroupsKHR ), bool>::type>
13312 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator>>::type
13313 Instance::enumeratePhysicalDeviceGroupsKHR( PhysicalDeviceGroupPropertiesAllocator const & physicalDeviceGroupPropertiesAllocator, Dispatch const & d )
13314 const
13315 {
13316 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13317 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13318 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceGroupsKHR &&
13319 "Function <vkEnumeratePhysicalDeviceGroupsKHR> requires <VK_KHR_device_group_creation> or <VK_VERSION_1_1>" );
13320 # endif
13321
13322 std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator> physicalDeviceGroupProperties( physicalDeviceGroupPropertiesAllocator );
13323 uint32_t physicalDeviceGroupCount;
13324 Result result;
13325 do
13326 {
13327 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroupsKHR( m_instance, &physicalDeviceGroupCount, nullptr ) );
13328 if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount )
13329 {
13330 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
13331 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroupsKHR(
13332 m_instance, &physicalDeviceGroupCount, reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
13333 }
13334 } while ( result == Result::eIncomplete );
13335 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroupsKHR" );
13336 VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
13337 if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
13338 {
13339 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
13340 }
13341 return detail::createResultValueType( result, std::move( physicalDeviceGroupProperties ) );
13342 }
13343 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13344
13345 //=== VK_KHR_external_memory_capabilities ===
13346
13347 // wrapper function for command vkGetPhysicalDeviceExternalBufferPropertiesKHR, see
13348 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalBufferPropertiesKHR.html
13349 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalBufferPropertiesKHR ), bool>::type>
13350 VULKAN_HPP_INLINE void PhysicalDevice::getExternalBufferPropertiesKHR(
13351 PhysicalDeviceExternalBufferInfo const * pExternalBufferInfo, ExternalBufferProperties * pExternalBufferProperties, Dispatch const & d )
13352 const VULKAN_HPP_NOEXCEPT
13353 {
13354 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13355 d.vkGetPhysicalDeviceExternalBufferPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13356 reinterpret_cast<VkPhysicalDeviceExternalBufferInfo const *>( pExternalBufferInfo ),
13357 reinterpret_cast<VkExternalBufferProperties *>( pExternalBufferProperties ) );
13358 }
13359
13360 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13361 // wrapper function for command vkGetPhysicalDeviceExternalBufferPropertiesKHR, see
13362 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalBufferPropertiesKHR.html
13363 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalBufferPropertiesKHR ), bool>::type>
13364 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalBufferProperties PhysicalDevice::getExternalBufferPropertiesKHR(
13365 PhysicalDeviceExternalBufferInfo const & externalBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13366 {
13367 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13368 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13369 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalBufferPropertiesKHR &&
13370 "Function <vkGetPhysicalDeviceExternalBufferPropertiesKHR> requires <VK_KHR_external_memory_capabilities> or <VK_VERSION_1_1>" );
13371 # endif
13372
13373 ExternalBufferProperties externalBufferProperties;
13374 d.vkGetPhysicalDeviceExternalBufferPropertiesKHR( m_physicalDevice,
13375 reinterpret_cast<VkPhysicalDeviceExternalBufferInfo const *>( &externalBufferInfo ),
13376 reinterpret_cast<VkExternalBufferProperties *>( &externalBufferProperties ) );
13377
13378 return externalBufferProperties;
13379 }
13380 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13381
13382 #if defined( VK_USE_PLATFORM_WIN32_KHR )
13383 //=== VK_KHR_external_memory_win32 ===
13384
13385 // wrapper function for command vkGetMemoryWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandleKHR.html
13386 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryWin32HandleKHR ), bool>::type>
13387 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryWin32HandleKHR(
13388 MemoryGetWin32HandleInfoKHR const * pGetWin32HandleInfo, HANDLE * pHandle, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13389 {
13390 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13391 return static_cast<Result>( d.vkGetMemoryWin32HandleKHR(
13392 static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryGetWin32HandleInfoKHR const *>( pGetWin32HandleInfo ), pHandle ) );
13393 }
13394
13395 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13396 // wrapper function for command vkGetMemoryWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandleKHR.html
13397 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryWin32HandleKHR ), bool>::type>
13398 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HANDLE>::type Device::getMemoryWin32HandleKHR(
13399 MemoryGetWin32HandleInfoKHR const & getWin32HandleInfo, Dispatch const & d ) const
13400 {
13401 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13402 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13403 VULKAN_HPP_ASSERT( d.vkGetMemoryWin32HandleKHR && "Function <vkGetMemoryWin32HandleKHR> requires <VK_KHR_external_memory_win32>" );
13404 # endif
13405
13406 HANDLE handle;
13407 Result result =
13408 static_cast<Result>( d.vkGetMemoryWin32HandleKHR( m_device, reinterpret_cast<VkMemoryGetWin32HandleInfoKHR const *>( &getWin32HandleInfo ), &handle ) );
13409 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryWin32HandleKHR" );
13410
13411 return detail::createResultValueType( result, std::move( handle ) );
13412 }
13413 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13414
13415 // wrapper function for command vkGetMemoryWin32HandlePropertiesKHR, see
13416 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandlePropertiesKHR.html
13417 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryWin32HandlePropertiesKHR ), bool>::type>
13418 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryWin32HandlePropertiesKHR(
13419 ExternalMemoryHandleTypeFlagBits handleType, HANDLE handle, MemoryWin32HandlePropertiesKHR * pMemoryWin32HandleProperties, Dispatch const & d )
13420 const VULKAN_HPP_NOEXCEPT
13421 {
13422 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13423 return static_cast<Result>( d.vkGetMemoryWin32HandlePropertiesKHR( static_cast<VkDevice>( m_device ),
13424 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
13425 handle,
13426 reinterpret_cast<VkMemoryWin32HandlePropertiesKHR *>( pMemoryWin32HandleProperties ) ) );
13427 }
13428
13429 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13430 // wrapper function for command vkGetMemoryWin32HandlePropertiesKHR, see
13431 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandlePropertiesKHR.html
13432 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryWin32HandlePropertiesKHR ), bool>::type>
13433 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryWin32HandlePropertiesKHR>::type Device::getMemoryWin32HandlePropertiesKHR(
13434 ExternalMemoryHandleTypeFlagBits handleType, HANDLE handle, Dispatch const & d ) const
13435 {
13436 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13437 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13438 VULKAN_HPP_ASSERT( d.vkGetMemoryWin32HandlePropertiesKHR && "Function <vkGetMemoryWin32HandlePropertiesKHR> requires <VK_KHR_external_memory_win32>" );
13439 # endif
13440
13441 MemoryWin32HandlePropertiesKHR memoryWin32HandleProperties;
13442 Result result =
13443 static_cast<Result>( d.vkGetMemoryWin32HandlePropertiesKHR( m_device,
13444 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
13445 handle,
13446 reinterpret_cast<VkMemoryWin32HandlePropertiesKHR *>( &memoryWin32HandleProperties ) ) );
13447 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryWin32HandlePropertiesKHR" );
13448
13449 return detail::createResultValueType( result, std::move( memoryWin32HandleProperties ) );
13450 }
13451 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13452 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
13453
13454 //=== VK_KHR_external_memory_fd ===
13455
13456 // wrapper function for command vkGetMemoryFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryFdKHR.html
13457 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryFdKHR ), bool>::type>
13458 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryFdKHR( MemoryGetFdInfoKHR const * pGetFdInfo, int * pFd, Dispatch const & d )
13459 const VULKAN_HPP_NOEXCEPT
13460 {
13461 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13462 return static_cast<Result>( d.vkGetMemoryFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryGetFdInfoKHR const *>( pGetFdInfo ), pFd ) );
13463 }
13464
13465 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13466 // wrapper function for command vkGetMemoryFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryFdKHR.html
13467 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryFdKHR ), bool>::type>
13468 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<int>::type Device::getMemoryFdKHR( MemoryGetFdInfoKHR const & getFdInfo, Dispatch const & d )
13469 const
13470 {
13471 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13472 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13473 VULKAN_HPP_ASSERT( d.vkGetMemoryFdKHR && "Function <vkGetMemoryFdKHR> requires <VK_KHR_external_memory_fd>" );
13474 # endif
13475
13476 int fd;
13477 Result result = static_cast<Result>( d.vkGetMemoryFdKHR( m_device, reinterpret_cast<VkMemoryGetFdInfoKHR const *>( &getFdInfo ), &fd ) );
13478 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryFdKHR" );
13479
13480 return detail::createResultValueType( result, std::move( fd ) );
13481 }
13482 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13483
13484 // wrapper function for command vkGetMemoryFdPropertiesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryFdPropertiesKHR.html
13485 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryFdPropertiesKHR ), bool>::type>
13486 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryFdPropertiesKHR(
13487 ExternalMemoryHandleTypeFlagBits handleType, int fd, MemoryFdPropertiesKHR * pMemoryFdProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13488 {
13489 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13490 return static_cast<Result>( d.vkGetMemoryFdPropertiesKHR( static_cast<VkDevice>( m_device ),
13491 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
13492 fd,
13493 reinterpret_cast<VkMemoryFdPropertiesKHR *>( pMemoryFdProperties ) ) );
13494 }
13495
13496 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13497 // wrapper function for command vkGetMemoryFdPropertiesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryFdPropertiesKHR.html
13498 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryFdPropertiesKHR ), bool>::type>
13499 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryFdPropertiesKHR>::type Device::getMemoryFdPropertiesKHR(
13500 ExternalMemoryHandleTypeFlagBits handleType, int fd, Dispatch const & d ) const
13501 {
13502 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13503 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13504 VULKAN_HPP_ASSERT( d.vkGetMemoryFdPropertiesKHR && "Function <vkGetMemoryFdPropertiesKHR> requires <VK_KHR_external_memory_fd>" );
13505 # endif
13506
13507 MemoryFdPropertiesKHR memoryFdProperties;
13508 Result result = static_cast<Result>( d.vkGetMemoryFdPropertiesKHR(
13509 m_device, static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ), fd, reinterpret_cast<VkMemoryFdPropertiesKHR *>( &memoryFdProperties ) ) );
13510 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryFdPropertiesKHR" );
13511
13512 return detail::createResultValueType( result, std::move( memoryFdProperties ) );
13513 }
13514 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13515
13516 //=== VK_KHR_external_semaphore_capabilities ===
13517
13518 // wrapper function for command vkGetPhysicalDeviceExternalSemaphorePropertiesKHR, see
13519 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalSemaphorePropertiesKHR.html
13520 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalSemaphorePropertiesKHR ), bool>::type>
13521 VULKAN_HPP_INLINE void PhysicalDevice::getExternalSemaphorePropertiesKHR(
13522 PhysicalDeviceExternalSemaphoreInfo const * pExternalSemaphoreInfo, ExternalSemaphoreProperties * pExternalSemaphoreProperties, Dispatch const & d )
13523 const VULKAN_HPP_NOEXCEPT
13524 {
13525 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13526 d.vkGetPhysicalDeviceExternalSemaphorePropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13527 reinterpret_cast<VkPhysicalDeviceExternalSemaphoreInfo const *>( pExternalSemaphoreInfo ),
13528 reinterpret_cast<VkExternalSemaphoreProperties *>( pExternalSemaphoreProperties ) );
13529 }
13530
13531 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13532 // wrapper function for command vkGetPhysicalDeviceExternalSemaphorePropertiesKHR, see
13533 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalSemaphorePropertiesKHR.html
13534 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalSemaphorePropertiesKHR ), bool>::type>
13535 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalSemaphoreProperties PhysicalDevice::getExternalSemaphorePropertiesKHR(
13536 PhysicalDeviceExternalSemaphoreInfo const & externalSemaphoreInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13537 {
13538 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13539 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13540 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalSemaphorePropertiesKHR &&
13541 "Function <vkGetPhysicalDeviceExternalSemaphorePropertiesKHR> requires <VK_KHR_external_semaphore_capabilities> or <VK_VERSION_1_1>" );
13542 # endif
13543
13544 ExternalSemaphoreProperties externalSemaphoreProperties;
13545 d.vkGetPhysicalDeviceExternalSemaphorePropertiesKHR( m_physicalDevice,
13546 reinterpret_cast<VkPhysicalDeviceExternalSemaphoreInfo const *>( &externalSemaphoreInfo ),
13547 reinterpret_cast<VkExternalSemaphoreProperties *>( &externalSemaphoreProperties ) );
13548
13549 return externalSemaphoreProperties;
13550 }
13551 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13552
13553 #if defined( VK_USE_PLATFORM_WIN32_KHR )
13554 //=== VK_KHR_external_semaphore_win32 ===
13555
13556 // wrapper function for command vkImportSemaphoreWin32HandleKHR, see
13557 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreWin32HandleKHR.html
13558 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportSemaphoreWin32HandleKHR ), bool>::type>
13559 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::importSemaphoreWin32HandleKHR(
13560 ImportSemaphoreWin32HandleInfoKHR const * pImportSemaphoreWin32HandleInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13561 {
13562 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13563 return static_cast<Result>( d.vkImportSemaphoreWin32HandleKHR(
13564 static_cast<VkDevice>( m_device ), reinterpret_cast<VkImportSemaphoreWin32HandleInfoKHR const *>( pImportSemaphoreWin32HandleInfo ) ) );
13565 }
13566
13567 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13568 // wrapper function for command vkImportSemaphoreWin32HandleKHR, see
13569 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreWin32HandleKHR.html
13570 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportSemaphoreWin32HandleKHR ), bool>::type>
13571 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::importSemaphoreWin32HandleKHR(
13572 ImportSemaphoreWin32HandleInfoKHR const & importSemaphoreWin32HandleInfo, Dispatch const & d ) const
13573 {
13574 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13575 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13576 VULKAN_HPP_ASSERT( d.vkImportSemaphoreWin32HandleKHR && "Function <vkImportSemaphoreWin32HandleKHR> requires <VK_KHR_external_semaphore_win32>" );
13577 # endif
13578
13579 Result result = static_cast<Result>(
13580 d.vkImportSemaphoreWin32HandleKHR( m_device, reinterpret_cast<VkImportSemaphoreWin32HandleInfoKHR const *>( &importSemaphoreWin32HandleInfo ) ) );
13581 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importSemaphoreWin32HandleKHR" );
13582
13583 return detail::createResultValueType( result );
13584 }
13585 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13586
13587 // wrapper function for command vkGetSemaphoreWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreWin32HandleKHR.html
13588 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreWin32HandleKHR ), bool>::type>
13589 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSemaphoreWin32HandleKHR(
13590 SemaphoreGetWin32HandleInfoKHR const * pGetWin32HandleInfo, HANDLE * pHandle, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13591 {
13592 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13593 return static_cast<Result>( d.vkGetSemaphoreWin32HandleKHR(
13594 static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreGetWin32HandleInfoKHR const *>( pGetWin32HandleInfo ), pHandle ) );
13595 }
13596
13597 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13598 // wrapper function for command vkGetSemaphoreWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreWin32HandleKHR.html
13599 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreWin32HandleKHR ), bool>::type>
13600 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HANDLE>::type Device::getSemaphoreWin32HandleKHR(
13601 SemaphoreGetWin32HandleInfoKHR const & getWin32HandleInfo, Dispatch const & d ) const
13602 {
13603 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13604 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13605 VULKAN_HPP_ASSERT( d.vkGetSemaphoreWin32HandleKHR && "Function <vkGetSemaphoreWin32HandleKHR> requires <VK_KHR_external_semaphore_win32>" );
13606 # endif
13607
13608 HANDLE handle;
13609 Result result = static_cast<Result>(
13610 d.vkGetSemaphoreWin32HandleKHR( m_device, reinterpret_cast<VkSemaphoreGetWin32HandleInfoKHR const *>( &getWin32HandleInfo ), &handle ) );
13611 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreWin32HandleKHR" );
13612
13613 return detail::createResultValueType( result, std::move( handle ) );
13614 }
13615 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13616 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
13617
13618 //=== VK_KHR_external_semaphore_fd ===
13619
13620 // wrapper function for command vkImportSemaphoreFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreFdKHR.html
13621 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportSemaphoreFdKHR ), bool>::type>
13622 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::importSemaphoreFdKHR( ImportSemaphoreFdInfoKHR const * pImportSemaphoreFdInfo, Dispatch const & d )
13623 const VULKAN_HPP_NOEXCEPT
13624 {
13625 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13626 return static_cast<Result>(
13627 d.vkImportSemaphoreFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkImportSemaphoreFdInfoKHR const *>( pImportSemaphoreFdInfo ) ) );
13628 }
13629
13630 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13631 // wrapper function for command vkImportSemaphoreFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreFdKHR.html
13632 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportSemaphoreFdKHR ), bool>::type>
13633 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::importSemaphoreFdKHR(
13634 ImportSemaphoreFdInfoKHR const & importSemaphoreFdInfo, Dispatch const & d ) const
13635 {
13636 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13637 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13638 VULKAN_HPP_ASSERT( d.vkImportSemaphoreFdKHR && "Function <vkImportSemaphoreFdKHR> requires <VK_KHR_external_semaphore_fd>" );
13639 # endif
13640
13641 Result result = static_cast<Result>( d.vkImportSemaphoreFdKHR( m_device, reinterpret_cast<VkImportSemaphoreFdInfoKHR const *>( &importSemaphoreFdInfo ) ) );
13642 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importSemaphoreFdKHR" );
13643
13644 return detail::createResultValueType( result );
13645 }
13646 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13647
13648 // wrapper function for command vkGetSemaphoreFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreFdKHR.html
13649 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreFdKHR ), bool>::type>
13650 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSemaphoreFdKHR( SemaphoreGetFdInfoKHR const * pGetFdInfo, int * pFd, Dispatch const & d )
13651 const VULKAN_HPP_NOEXCEPT
13652 {
13653 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13654 return static_cast<Result>(
13655 d.vkGetSemaphoreFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreGetFdInfoKHR const *>( pGetFdInfo ), pFd ) );
13656 }
13657
13658 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13659 // wrapper function for command vkGetSemaphoreFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreFdKHR.html
13660 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreFdKHR ), bool>::type>
13661 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<int>::type Device::getSemaphoreFdKHR( SemaphoreGetFdInfoKHR const & getFdInfo,
13662 Dispatch const & d ) const
13663 {
13664 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13665 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13666 VULKAN_HPP_ASSERT( d.vkGetSemaphoreFdKHR && "Function <vkGetSemaphoreFdKHR> requires <VK_KHR_external_semaphore_fd>" );
13667 # endif
13668
13669 int fd;
13670 Result result = static_cast<Result>( d.vkGetSemaphoreFdKHR( m_device, reinterpret_cast<VkSemaphoreGetFdInfoKHR const *>( &getFdInfo ), &fd ) );
13671 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreFdKHR" );
13672
13673 return detail::createResultValueType( result, std::move( fd ) );
13674 }
13675 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13676
13677 //=== VK_KHR_push_descriptor ===
13678
13679 // wrapper function for command vkCmdPushDescriptorSetKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetKHR.html
13680 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetKHR ), bool>::type>
13681 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetKHR( PipelineBindPoint pipelineBindPoint,
13682 PipelineLayout layout,
13683 uint32_t set,
13684 uint32_t descriptorWriteCount,
13685 WriteDescriptorSet const * pDescriptorWrites,
13686 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13687 {
13688 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13689 d.vkCmdPushDescriptorSetKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
13690 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
13691 static_cast<VkPipelineLayout>( layout ),
13692 set,
13693 descriptorWriteCount,
13694 reinterpret_cast<VkWriteDescriptorSet const *>( pDescriptorWrites ) );
13695 }
13696
13697 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13698 // wrapper function for command vkCmdPushDescriptorSetKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetKHR.html
13699 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetKHR ), bool>::type>
13700 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetKHR( PipelineBindPoint pipelineBindPoint,
13701 PipelineLayout layout,
13702 uint32_t set,
13703 ArrayProxy<WriteDescriptorSet const> const & descriptorWrites,
13704 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13705 {
13706 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13707 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13708 VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSetKHR && "Function <vkCmdPushDescriptorSetKHR> requires <VK_KHR_push_descriptor> or <VK_VERSION_1_4>" );
13709 # endif
13710
13711 d.vkCmdPushDescriptorSetKHR( m_commandBuffer,
13712 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
13713 static_cast<VkPipelineLayout>( layout ),
13714 set,
13715 descriptorWrites.size(),
13716 reinterpret_cast<VkWriteDescriptorSet const *>( descriptorWrites.data() ) );
13717 }
13718 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13719
13720 // wrapper function for command vkCmdPushDescriptorSetWithTemplateKHR, see
13721 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplateKHR.html
13722 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplateKHR ), bool>::type>
13723 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplateKHR(
13724 DescriptorUpdateTemplate descriptorUpdateTemplate, PipelineLayout layout, uint32_t set, void const * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13725 {
13726 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13727 d.vkCmdPushDescriptorSetWithTemplateKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
13728 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
13729 static_cast<VkPipelineLayout>( layout ),
13730 set,
13731 pData );
13732 }
13733
13734 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13735 // wrapper function for command vkCmdPushDescriptorSetWithTemplateKHR, see
13736 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplateKHR.html
13737 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplateKHR ), bool>::type>
13738 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplateKHR(
13739 DescriptorUpdateTemplate descriptorUpdateTemplate, PipelineLayout layout, uint32_t set, DataType const & data, Dispatch const & d )
13740 const VULKAN_HPP_NOEXCEPT
13741 {
13742 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13743 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13744 VULKAN_HPP_ASSERT(
13745 d.vkCmdPushDescriptorSetWithTemplateKHR &&
13746 "Function <vkCmdPushDescriptorSetWithTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_KHR_push_descriptor> or <VK_VERSION_1_4>" );
13747 # endif
13748
13749 d.vkCmdPushDescriptorSetWithTemplateKHR( m_commandBuffer,
13750 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
13751 static_cast<VkPipelineLayout>( layout ),
13752 set,
13753 reinterpret_cast<void const *>( &data ) );
13754 }
13755 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13756
13757 //=== VK_EXT_conditional_rendering ===
13758
13759 // wrapper function for command vkCmdBeginConditionalRenderingEXT, see
13760 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginConditionalRenderingEXT.html
13761 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginConditionalRenderingEXT ), bool>::type>
13762 VULKAN_HPP_INLINE void CommandBuffer::beginConditionalRenderingEXT( ConditionalRenderingBeginInfoEXT const * pConditionalRenderingBegin, Dispatch const & d )
13763 const VULKAN_HPP_NOEXCEPT
13764 {
13765 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13766 d.vkCmdBeginConditionalRenderingEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
13767 reinterpret_cast<VkConditionalRenderingBeginInfoEXT const *>( pConditionalRenderingBegin ) );
13768 }
13769
13770 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13771 // wrapper function for command vkCmdBeginConditionalRenderingEXT, see
13772 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginConditionalRenderingEXT.html
13773 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginConditionalRenderingEXT ), bool>::type>
13774 VULKAN_HPP_INLINE void CommandBuffer::beginConditionalRenderingEXT( ConditionalRenderingBeginInfoEXT const & conditionalRenderingBegin, Dispatch const & d )
13775 const VULKAN_HPP_NOEXCEPT
13776 {
13777 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13778 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13779 VULKAN_HPP_ASSERT( d.vkCmdBeginConditionalRenderingEXT && "Function <vkCmdBeginConditionalRenderingEXT> requires <VK_EXT_conditional_rendering>" );
13780 # endif
13781
13782 d.vkCmdBeginConditionalRenderingEXT( m_commandBuffer, reinterpret_cast<VkConditionalRenderingBeginInfoEXT const *>( &conditionalRenderingBegin ) );
13783 }
13784 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13785
13786 // wrapper function for command vkCmdEndConditionalRenderingEXT, see
13787 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndConditionalRenderingEXT.html
13788 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndConditionalRenderingEXT ), bool>::type>
13789 VULKAN_HPP_INLINE void CommandBuffer::endConditionalRenderingEXT( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13790 {
13791 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13792 d.vkCmdEndConditionalRenderingEXT( static_cast<VkCommandBuffer>( m_commandBuffer ) );
13793 }
13794
13795 //=== VK_KHR_descriptor_update_template ===
13796
13797 // wrapper function for command vkCreateDescriptorUpdateTemplateKHR, see
13798 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplateKHR.html
13799 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorUpdateTemplateKHR ), bool>::type>
13800 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDescriptorUpdateTemplateKHR( DescriptorUpdateTemplateCreateInfo const * pCreateInfo,
13801 AllocationCallbacks const * pAllocator,
13802 DescriptorUpdateTemplate * pDescriptorUpdateTemplate,
13803 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13804 {
13805 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13806 return static_cast<Result>( d.vkCreateDescriptorUpdateTemplateKHR( static_cast<VkDevice>( m_device ),
13807 reinterpret_cast<VkDescriptorUpdateTemplateCreateInfo const *>( pCreateInfo ),
13808 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
13809 reinterpret_cast<VkDescriptorUpdateTemplate *>( pDescriptorUpdateTemplate ) ) );
13810 }
13811
13812 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13813 // wrapper function for command vkCreateDescriptorUpdateTemplateKHR, see
13814 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplateKHR.html
13815 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorUpdateTemplateKHR ), bool>::type>
13816 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DescriptorUpdateTemplate>::type Device::createDescriptorUpdateTemplateKHR(
13817 DescriptorUpdateTemplateCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
13818 {
13819 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13820 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13821 VULKAN_HPP_ASSERT( d.vkCreateDescriptorUpdateTemplateKHR &&
13822 "Function <vkCreateDescriptorUpdateTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
13823 # endif
13824
13825 DescriptorUpdateTemplate descriptorUpdateTemplate;
13826 Result result = static_cast<Result>( d.vkCreateDescriptorUpdateTemplateKHR( m_device,
13827 reinterpret_cast<VkDescriptorUpdateTemplateCreateInfo const *>( &createInfo ),
13828 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
13829 reinterpret_cast<VkDescriptorUpdateTemplate *>( &descriptorUpdateTemplate ) ) );
13830 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorUpdateTemplateKHR" );
13831
13832 return detail::createResultValueType( result, std::move( descriptorUpdateTemplate ) );
13833 }
13834
13835 # ifndef VULKAN_HPP_NO_SMART_HANDLE
13836 // wrapper function for command vkCreateDescriptorUpdateTemplateKHR, see
13837 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplateKHR.html
13838 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorUpdateTemplateKHR ), bool>::type>
13839 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DescriptorUpdateTemplate, Dispatch>>::type
13840 Device::createDescriptorUpdateTemplateKHRUnique(
13841 DescriptorUpdateTemplateCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
13842 {
13843 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13844 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13845 VULKAN_HPP_ASSERT( d.vkCreateDescriptorUpdateTemplateKHR &&
13846 "Function <vkCreateDescriptorUpdateTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
13847 # endif
13848
13849 DescriptorUpdateTemplate descriptorUpdateTemplate;
13850 Result result = static_cast<Result>( d.vkCreateDescriptorUpdateTemplateKHR( m_device,
13851 reinterpret_cast<VkDescriptorUpdateTemplateCreateInfo const *>( &createInfo ),
13852 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
13853 reinterpret_cast<VkDescriptorUpdateTemplate *>( &descriptorUpdateTemplate ) ) );
13854 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorUpdateTemplateKHRUnique" );
13855
13856 return detail::createResultValueType(
13857 result, UniqueHandle<DescriptorUpdateTemplate, Dispatch>( descriptorUpdateTemplate, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
13858 }
13859 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
13860 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13861
13862 // wrapper function for command vkDestroyDescriptorUpdateTemplateKHR, see
13863 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplateKHR.html
13864 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorUpdateTemplateKHR ), bool>::type>
13865 VULKAN_HPP_INLINE void Device::destroyDescriptorUpdateTemplateKHR(
13866 DescriptorUpdateTemplate descriptorUpdateTemplate, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13867 {
13868 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13869 d.vkDestroyDescriptorUpdateTemplateKHR( static_cast<VkDevice>( m_device ),
13870 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
13871 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
13872 }
13873
13874 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13875 // wrapper function for command vkDestroyDescriptorUpdateTemplateKHR, see
13876 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplateKHR.html
13877 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorUpdateTemplateKHR ), bool>::type>
13878 VULKAN_HPP_INLINE void Device::destroyDescriptorUpdateTemplateKHR(
13879 DescriptorUpdateTemplate descriptorUpdateTemplate, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13880 {
13881 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13882 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13883 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorUpdateTemplateKHR &&
13884 "Function <vkDestroyDescriptorUpdateTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
13885 # endif
13886
13887 d.vkDestroyDescriptorUpdateTemplateKHR(
13888 m_device, static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
13889 }
13890 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13891
13892 // wrapper function for command vkUpdateDescriptorSetWithTemplateKHR, see
13893 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSetWithTemplateKHR.html
13894 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateDescriptorSetWithTemplateKHR ), bool>::type>
13895 VULKAN_HPP_INLINE void Device::updateDescriptorSetWithTemplateKHR(
13896 DescriptorSet descriptorSet, DescriptorUpdateTemplate descriptorUpdateTemplate, void const * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13897 {
13898 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13899 d.vkUpdateDescriptorSetWithTemplateKHR( static_cast<VkDevice>( m_device ),
13900 static_cast<VkDescriptorSet>( descriptorSet ),
13901 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
13902 pData );
13903 }
13904
13905 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13906 // wrapper function for command vkUpdateDescriptorSetWithTemplateKHR, see
13907 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSetWithTemplateKHR.html
13908 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateDescriptorSetWithTemplateKHR ), bool>::type>
13909 VULKAN_HPP_INLINE void Device::updateDescriptorSetWithTemplateKHR(
13910 DescriptorSet descriptorSet, DescriptorUpdateTemplate descriptorUpdateTemplate, DataType const & data, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13911 {
13912 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13913 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13914 VULKAN_HPP_ASSERT( d.vkUpdateDescriptorSetWithTemplateKHR &&
13915 "Function <vkUpdateDescriptorSetWithTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
13916 # endif
13917
13918 d.vkUpdateDescriptorSetWithTemplateKHR( m_device,
13919 static_cast<VkDescriptorSet>( descriptorSet ),
13920 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
13921 reinterpret_cast<void const *>( &data ) );
13922 }
13923 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13924
13925 //=== VK_NV_clip_space_w_scaling ===
13926
13927 // wrapper function for command vkCmdSetViewportWScalingNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWScalingNV.html
13928 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWScalingNV ), bool>::type>
13929 VULKAN_HPP_INLINE void CommandBuffer::setViewportWScalingNV(
13930 uint32_t firstViewport, uint32_t viewportCount, ViewportWScalingNV const * pViewportWScalings, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13931 {
13932 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13933 d.vkCmdSetViewportWScalingNV(
13934 static_cast<VkCommandBuffer>( m_commandBuffer ), firstViewport, viewportCount, reinterpret_cast<VkViewportWScalingNV const *>( pViewportWScalings ) );
13935 }
13936
13937 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13938 // wrapper function for command vkCmdSetViewportWScalingNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWScalingNV.html
13939 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWScalingNV ), bool>::type>
13940 VULKAN_HPP_INLINE void CommandBuffer::setViewportWScalingNV(
13941 uint32_t firstViewport, ArrayProxy<ViewportWScalingNV const> const & viewportWScalings, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13942 {
13943 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13944 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13945 VULKAN_HPP_ASSERT( d.vkCmdSetViewportWScalingNV && "Function <vkCmdSetViewportWScalingNV> requires <VK_NV_clip_space_w_scaling>" );
13946 # endif
13947
13948 d.vkCmdSetViewportWScalingNV(
13949 m_commandBuffer, firstViewport, viewportWScalings.size(), reinterpret_cast<VkViewportWScalingNV const *>( viewportWScalings.data() ) );
13950 }
13951 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13952
13953 //=== VK_EXT_direct_mode_display ===
13954
13955 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
13956 // wrapper function for command vkReleaseDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseDisplayEXT.html
13957 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseDisplayEXT ), bool>::type>
13958 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::releaseDisplayEXT( DisplayKHR display, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13959 {
13960 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13961 return static_cast<Result>( d.vkReleaseDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( display ) ) );
13962 }
13963 #else
13964 // wrapper function for command vkReleaseDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseDisplayEXT.html
13965 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseDisplayEXT ), bool>::type>
13966 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type PhysicalDevice::releaseDisplayEXT( DisplayKHR display,
13967 Dispatch const & d ) const
13968 {
13969 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13970 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13971 VULKAN_HPP_ASSERT( d.vkReleaseDisplayEXT && "Function <vkReleaseDisplayEXT> requires <VK_EXT_direct_mode_display>" );
13972 # endif
13973
13974 Result result = static_cast<Result>( d.vkReleaseDisplayEXT( m_physicalDevice, static_cast<VkDisplayKHR>( display ) ) );
13975 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::releaseDisplayEXT" );
13976
13977 return detail::createResultValueType( result );
13978 }
13979 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
13980
13981 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
13982 // wrapper function for command vkReleaseDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseDisplayEXT.html
13983 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseDisplayEXT ), bool>::type>
13984 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::release( DisplayKHR display, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13985 {
13986 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13987 return static_cast<Result>( d.vkReleaseDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( display ) ) );
13988 }
13989 #else
13990 // wrapper function for command vkReleaseDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseDisplayEXT.html
13991 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseDisplayEXT ), bool>::type>
13992 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type PhysicalDevice::release( DisplayKHR display,
13993 Dispatch const & d ) const
13994 {
13995 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13996 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13997 VULKAN_HPP_ASSERT( d.vkReleaseDisplayEXT && "Function <vkReleaseDisplayEXT> requires <VK_EXT_direct_mode_display>" );
13998 # endif
13999
14000 Result result = static_cast<Result>( d.vkReleaseDisplayEXT( m_physicalDevice, static_cast<VkDisplayKHR>( display ) ) );
14001 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::release" );
14002
14003 return detail::createResultValueType( result );
14004 }
14005 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
14006
14007 #if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT )
14008 //=== VK_EXT_acquire_xlib_display ===
14009
14010 // wrapper function for command vkAcquireXlibDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireXlibDisplayEXT.html
14011 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireXlibDisplayEXT ), bool>::type>
14012 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::acquireXlibDisplayEXT( Display * dpy, DisplayKHR display, Dispatch const & d )
14013 const VULKAN_HPP_NOEXCEPT
14014 {
14015 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14016 return static_cast<Result>( d.vkAcquireXlibDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), dpy, static_cast<VkDisplayKHR>( display ) ) );
14017 }
14018
14019 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14020 // wrapper function for command vkAcquireXlibDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireXlibDisplayEXT.html
14021 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireXlibDisplayEXT ), bool>::type>
14022 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type PhysicalDevice::acquireXlibDisplayEXT(
14023 Display & dpy, DisplayKHR display, Dispatch const & d ) const
14024 {
14025 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14026 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14027 VULKAN_HPP_ASSERT( d.vkAcquireXlibDisplayEXT && "Function <vkAcquireXlibDisplayEXT> requires <VK_EXT_acquire_xlib_display>" );
14028 # endif
14029
14030 Result result = static_cast<Result>( d.vkAcquireXlibDisplayEXT( m_physicalDevice, &dpy, static_cast<VkDisplayKHR>( display ) ) );
14031 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::acquireXlibDisplayEXT" );
14032
14033 return detail::createResultValueType( result );
14034 }
14035 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14036
14037 // wrapper function for command vkGetRandROutputDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRandROutputDisplayEXT.html
14038 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRandROutputDisplayEXT ), bool>::type>
14039 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getRandROutputDisplayEXT(
14040 Display * dpy, RROutput rrOutput, DisplayKHR * pDisplay, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14041 {
14042 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14043 return static_cast<Result>(
14044 d.vkGetRandROutputDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), dpy, rrOutput, reinterpret_cast<VkDisplayKHR *>( pDisplay ) ) );
14045 }
14046
14047 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14048 // wrapper function for command vkGetRandROutputDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRandROutputDisplayEXT.html
14049 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRandROutputDisplayEXT ), bool>::type>
14050 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayKHR>::type PhysicalDevice::getRandROutputDisplayEXT(
14051 Display & dpy, RROutput rrOutput, Dispatch const & d ) const
14052 {
14053 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14054 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14055 VULKAN_HPP_ASSERT( d.vkGetRandROutputDisplayEXT && "Function <vkGetRandROutputDisplayEXT> requires <VK_EXT_acquire_xlib_display>" );
14056 # endif
14057
14058 DisplayKHR display;
14059 Result result = static_cast<Result>( d.vkGetRandROutputDisplayEXT( m_physicalDevice, &dpy, rrOutput, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
14060 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getRandROutputDisplayEXT" );
14061
14062 return detail::createResultValueType( result, std::move( display ) );
14063 }
14064
14065 # ifndef VULKAN_HPP_NO_SMART_HANDLE
14066 // wrapper function for command vkGetRandROutputDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRandROutputDisplayEXT.html
14067 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRandROutputDisplayEXT ), bool>::type>
14068 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DisplayKHR, Dispatch>>::type PhysicalDevice::getRandROutputDisplayEXTUnique(
14069 Display & dpy, RROutput rrOutput, Dispatch const & d ) const
14070 {
14071 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14072 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14073 VULKAN_HPP_ASSERT( d.vkGetRandROutputDisplayEXT && "Function <vkGetRandROutputDisplayEXT> requires <VK_EXT_acquire_xlib_display>" );
14074 # endif
14075
14076 DisplayKHR display;
14077 Result result = static_cast<Result>( d.vkGetRandROutputDisplayEXT( m_physicalDevice, &dpy, rrOutput, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
14078 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getRandROutputDisplayEXTUnique" );
14079
14080 return detail::createResultValueType( result, UniqueHandle<DisplayKHR, Dispatch>( display, detail::ObjectRelease<PhysicalDevice, Dispatch>( *this, d ) ) );
14081 }
14082 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
14083 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14084 #endif /*VK_USE_PLATFORM_XLIB_XRANDR_EXT*/
14085
14086 //=== VK_EXT_display_surface_counter ===
14087
14088 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2EXT, see
14089 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2EXT.html
14090 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilities2EXT ), bool>::type>
14091 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceCapabilities2EXT(
14092 SurfaceKHR surface, SurfaceCapabilities2EXT * pSurfaceCapabilities, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14093 {
14094 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14095 return static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilities2EXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14096 static_cast<VkSurfaceKHR>( surface ),
14097 reinterpret_cast<VkSurfaceCapabilities2EXT *>( pSurfaceCapabilities ) ) );
14098 }
14099
14100 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14101 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2EXT, see
14102 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2EXT.html
14103 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilities2EXT ), bool>::type>
14104 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceCapabilities2EXT>::type PhysicalDevice::getSurfaceCapabilities2EXT(
14105 SurfaceKHR surface, 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.vkGetPhysicalDeviceSurfaceCapabilities2EXT &&
14110 "Function <vkGetPhysicalDeviceSurfaceCapabilities2EXT> requires <VK_EXT_display_surface_counter>" );
14111 # endif
14112
14113 SurfaceCapabilities2EXT surfaceCapabilities;
14114 Result result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilities2EXT(
14115 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkSurfaceCapabilities2EXT *>( &surfaceCapabilities ) ) );
14116 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2EXT" );
14117
14118 return detail::createResultValueType( result, std::move( surfaceCapabilities ) );
14119 }
14120 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14121
14122 //=== VK_EXT_display_control ===
14123
14124 // wrapper function for command vkDisplayPowerControlEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDisplayPowerControlEXT.html
14125 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDisplayPowerControlEXT ), bool>::type>
14126 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::displayPowerControlEXT(
14127 DisplayKHR display, DisplayPowerInfoEXT const * pDisplayPowerInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14128 {
14129 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14130 return static_cast<Result>( d.vkDisplayPowerControlEXT(
14131 static_cast<VkDevice>( m_device ), static_cast<VkDisplayKHR>( display ), reinterpret_cast<VkDisplayPowerInfoEXT const *>( pDisplayPowerInfo ) ) );
14132 }
14133
14134 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14135 // wrapper function for command vkDisplayPowerControlEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDisplayPowerControlEXT.html
14136 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDisplayPowerControlEXT ), bool>::type>
14137 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::displayPowerControlEXT(
14138 DisplayKHR display, DisplayPowerInfoEXT const & displayPowerInfo, Dispatch const & d ) const
14139 {
14140 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14141 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14142 VULKAN_HPP_ASSERT( d.vkDisplayPowerControlEXT && "Function <vkDisplayPowerControlEXT> requires <VK_EXT_display_control>" );
14143 # endif
14144
14145 Result result = static_cast<Result>(
14146 d.vkDisplayPowerControlEXT( m_device, static_cast<VkDisplayKHR>( display ), reinterpret_cast<VkDisplayPowerInfoEXT const *>( &displayPowerInfo ) ) );
14147 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::displayPowerControlEXT" );
14148
14149 return detail::createResultValueType( result );
14150 }
14151 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14152
14153 // wrapper function for command vkRegisterDeviceEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDeviceEventEXT.html
14154 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterDeviceEventEXT ), bool>::type>
14155 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::registerEventEXT(
14156 DeviceEventInfoEXT const * pDeviceEventInfo, AllocationCallbacks const * pAllocator, Fence * pFence, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14157 {
14158 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14159 return static_cast<Result>( d.vkRegisterDeviceEventEXT( static_cast<VkDevice>( m_device ),
14160 reinterpret_cast<VkDeviceEventInfoEXT const *>( pDeviceEventInfo ),
14161 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
14162 reinterpret_cast<VkFence *>( pFence ) ) );
14163 }
14164
14165 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14166 // wrapper function for command vkRegisterDeviceEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDeviceEventEXT.html
14167 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterDeviceEventEXT ), bool>::type>
14168 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Fence>::type Device::registerEventEXT(
14169 DeviceEventInfoEXT const & deviceEventInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
14170 {
14171 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14172 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14173 VULKAN_HPP_ASSERT( d.vkRegisterDeviceEventEXT && "Function <vkRegisterDeviceEventEXT> requires <VK_EXT_display_control>" );
14174 # endif
14175
14176 Fence fence;
14177 Result result = static_cast<Result>( d.vkRegisterDeviceEventEXT( m_device,
14178 reinterpret_cast<VkDeviceEventInfoEXT const *>( &deviceEventInfo ),
14179 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
14180 reinterpret_cast<VkFence *>( &fence ) ) );
14181 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerEventEXT" );
14182
14183 return detail::createResultValueType( result, std::move( fence ) );
14184 }
14185
14186 # ifndef VULKAN_HPP_NO_SMART_HANDLE
14187 // wrapper function for command vkRegisterDeviceEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDeviceEventEXT.html
14188 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterDeviceEventEXT ), bool>::type>
14189 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Fence, Dispatch>>::type Device::registerEventEXTUnique(
14190 DeviceEventInfoEXT const & deviceEventInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
14191 {
14192 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14193 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14194 VULKAN_HPP_ASSERT( d.vkRegisterDeviceEventEXT && "Function <vkRegisterDeviceEventEXT> requires <VK_EXT_display_control>" );
14195 # endif
14196
14197 Fence fence;
14198 Result result = static_cast<Result>( d.vkRegisterDeviceEventEXT( m_device,
14199 reinterpret_cast<VkDeviceEventInfoEXT const *>( &deviceEventInfo ),
14200 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
14201 reinterpret_cast<VkFence *>( &fence ) ) );
14202 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerEventEXTUnique" );
14203
14204 return detail::createResultValueType( result, UniqueHandle<Fence, Dispatch>( fence, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
14205 }
14206 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
14207 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14208
14209 // wrapper function for command vkRegisterDisplayEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDisplayEventEXT.html
14210 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterDisplayEventEXT ), bool>::type>
14211 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::registerDisplayEventEXT(
14212 DisplayKHR display, DisplayEventInfoEXT const * pDisplayEventInfo, AllocationCallbacks const * pAllocator, Fence * pFence, Dispatch const & d )
14213 const VULKAN_HPP_NOEXCEPT
14214 {
14215 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14216 return static_cast<Result>( d.vkRegisterDisplayEventEXT( static_cast<VkDevice>( m_device ),
14217 static_cast<VkDisplayKHR>( display ),
14218 reinterpret_cast<VkDisplayEventInfoEXT const *>( pDisplayEventInfo ),
14219 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
14220 reinterpret_cast<VkFence *>( pFence ) ) );
14221 }
14222
14223 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14224 // wrapper function for command vkRegisterDisplayEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDisplayEventEXT.html
14225 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterDisplayEventEXT ), bool>::type>
14226 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Fence>::type Device::registerDisplayEventEXT(
14227 DisplayKHR display, DisplayEventInfoEXT const & displayEventInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
14228 {
14229 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14230 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14231 VULKAN_HPP_ASSERT( d.vkRegisterDisplayEventEXT && "Function <vkRegisterDisplayEventEXT> requires <VK_EXT_display_control>" );
14232 # endif
14233
14234 Fence fence;
14235 Result result = static_cast<Result>( d.vkRegisterDisplayEventEXT( m_device,
14236 static_cast<VkDisplayKHR>( display ),
14237 reinterpret_cast<VkDisplayEventInfoEXT const *>( &displayEventInfo ),
14238 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
14239 reinterpret_cast<VkFence *>( &fence ) ) );
14240 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerDisplayEventEXT" );
14241
14242 return detail::createResultValueType( result, std::move( fence ) );
14243 }
14244
14245 # ifndef VULKAN_HPP_NO_SMART_HANDLE
14246 // wrapper function for command vkRegisterDisplayEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDisplayEventEXT.html
14247 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterDisplayEventEXT ), bool>::type>
14248 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Fence, Dispatch>>::type Device::registerDisplayEventEXTUnique(
14249 DisplayKHR display, DisplayEventInfoEXT const & displayEventInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
14250 {
14251 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14252 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14253 VULKAN_HPP_ASSERT( d.vkRegisterDisplayEventEXT && "Function <vkRegisterDisplayEventEXT> requires <VK_EXT_display_control>" );
14254 # endif
14255
14256 Fence fence;
14257 Result result = static_cast<Result>( d.vkRegisterDisplayEventEXT( m_device,
14258 static_cast<VkDisplayKHR>( display ),
14259 reinterpret_cast<VkDisplayEventInfoEXT const *>( &displayEventInfo ),
14260 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
14261 reinterpret_cast<VkFence *>( &fence ) ) );
14262 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerDisplayEventEXTUnique" );
14263
14264 return detail::createResultValueType( result, UniqueHandle<Fence, Dispatch>( fence, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
14265 }
14266 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
14267 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14268
14269 // wrapper function for command vkGetSwapchainCounterEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainCounterEXT.html
14270 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainCounterEXT ), bool>::type>
14271 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSwapchainCounterEXT(
14272 SwapchainKHR swapchain, SurfaceCounterFlagBitsEXT counter, uint64_t * pCounterValue, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14273 {
14274 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14275 return static_cast<Result>( d.vkGetSwapchainCounterEXT(
14276 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), static_cast<VkSurfaceCounterFlagBitsEXT>( counter ), pCounterValue ) );
14277 }
14278
14279 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14280 // wrapper function for command vkGetSwapchainCounterEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainCounterEXT.html
14281 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainCounterEXT ), bool>::type>
14282 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
14283 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14284 ResultValue<uint64_t>
14285 # else
14286 typename ResultValueType<uint64_t>::type
14287 # endif
14288 Device::getSwapchainCounterEXT( SwapchainKHR swapchain, SurfaceCounterFlagBitsEXT counter, Dispatch const & d ) const
14289 {
14290 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14291 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14292 VULKAN_HPP_ASSERT( d.vkGetSwapchainCounterEXT && "Function <vkGetSwapchainCounterEXT> requires <VK_EXT_display_control>" );
14293 # endif
14294
14295 uint64_t counterValue;
14296 Result result = static_cast<Result>(
14297 d.vkGetSwapchainCounterEXT( m_device, static_cast<VkSwapchainKHR>( swapchain ), static_cast<VkSurfaceCounterFlagBitsEXT>( counter ), &counterValue ) );
14298
14299 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14300 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainCounterEXT", { Result::eSuccess, Result::eErrorOutOfDateKHR } );
14301 # else
14302 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainCounterEXT" );
14303 # endif
14304
14305 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14306 return ResultValue<uint64_t>( result, std::move( counterValue ) );
14307 # else
14308 return detail::createResultValueType( result, std::move( counterValue ) );
14309 # endif
14310 }
14311 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14312
14313 //=== VK_GOOGLE_display_timing ===
14314
14315 // wrapper function for command vkGetRefreshCycleDurationGOOGLE, see
14316 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRefreshCycleDurationGOOGLE.html
14317 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRefreshCycleDurationGOOGLE ), bool>::type>
14318 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getRefreshCycleDurationGOOGLE(
14319 SwapchainKHR swapchain, RefreshCycleDurationGOOGLE * pDisplayTimingProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14320 {
14321 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14322 return static_cast<Result>( d.vkGetRefreshCycleDurationGOOGLE( static_cast<VkDevice>( m_device ),
14323 static_cast<VkSwapchainKHR>( swapchain ),
14324 reinterpret_cast<VkRefreshCycleDurationGOOGLE *>( pDisplayTimingProperties ) ) );
14325 }
14326
14327 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14328 // wrapper function for command vkGetRefreshCycleDurationGOOGLE, see
14329 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRefreshCycleDurationGOOGLE.html
14330 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRefreshCycleDurationGOOGLE ), bool>::type>
14331 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RefreshCycleDurationGOOGLE>::type Device::getRefreshCycleDurationGOOGLE(
14332 SwapchainKHR swapchain, Dispatch const & d ) const
14333 {
14334 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14335 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14336 VULKAN_HPP_ASSERT( d.vkGetRefreshCycleDurationGOOGLE && "Function <vkGetRefreshCycleDurationGOOGLE> requires <VK_GOOGLE_display_timing>" );
14337 # endif
14338
14339 RefreshCycleDurationGOOGLE displayTimingProperties;
14340 Result result = static_cast<Result>( d.vkGetRefreshCycleDurationGOOGLE(
14341 m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkRefreshCycleDurationGOOGLE *>( &displayTimingProperties ) ) );
14342 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRefreshCycleDurationGOOGLE" );
14343
14344 return detail::createResultValueType( result, std::move( displayTimingProperties ) );
14345 }
14346 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14347
14348 // wrapper function for command vkGetPastPresentationTimingGOOGLE, see
14349 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPastPresentationTimingGOOGLE.html
14350 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPastPresentationTimingGOOGLE ), bool>::type>
14351 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPastPresentationTimingGOOGLE(
14352 SwapchainKHR swapchain, uint32_t * pPresentationTimingCount, PastPresentationTimingGOOGLE * pPresentationTimings, Dispatch const & d )
14353 const VULKAN_HPP_NOEXCEPT
14354 {
14355 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14356 return static_cast<Result>( d.vkGetPastPresentationTimingGOOGLE( static_cast<VkDevice>( m_device ),
14357 static_cast<VkSwapchainKHR>( swapchain ),
14358 pPresentationTimingCount,
14359 reinterpret_cast<VkPastPresentationTimingGOOGLE *>( pPresentationTimings ) ) );
14360 }
14361
14362 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14363 // wrapper function for command vkGetPastPresentationTimingGOOGLE, see
14364 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPastPresentationTimingGOOGLE.html
14365 template <typename PastPresentationTimingGOOGLEAllocator,
14366 typename Dispatch,
14367 typename std::enable_if<std::is_same<typename PastPresentationTimingGOOGLEAllocator::value_type, PastPresentationTimingGOOGLE>::value, int>::type,
14368 typename std::enable_if<IS_DISPATCHED( vkGetPastPresentationTimingGOOGLE ), bool>::type>
14369 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
14370 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14371 ResultValue<std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator>>
14372 # else
14373 typename ResultValueType<std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator>>::type
14374 # endif
14375 Device::getPastPresentationTimingGOOGLE( SwapchainKHR swapchain, Dispatch const & d ) const
14376 {
14377 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14378 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14379 VULKAN_HPP_ASSERT( d.vkGetPastPresentationTimingGOOGLE && "Function <vkGetPastPresentationTimingGOOGLE> requires <VK_GOOGLE_display_timing>" );
14380 # endif
14381
14382 std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator> presentationTimings;
14383 uint32_t presentationTimingCount;
14384 Result result;
14385 do
14386 {
14387 result =
14388 static_cast<Result>( d.vkGetPastPresentationTimingGOOGLE( m_device, static_cast<VkSwapchainKHR>( swapchain ), &presentationTimingCount, nullptr ) );
14389 if ( ( result == Result::eSuccess ) && presentationTimingCount )
14390 {
14391 presentationTimings.resize( presentationTimingCount );
14392 result = static_cast<Result>( d.vkGetPastPresentationTimingGOOGLE( m_device,
14393 static_cast<VkSwapchainKHR>( swapchain ),
14394 &presentationTimingCount,
14395 reinterpret_cast<VkPastPresentationTimingGOOGLE *>( presentationTimings.data() ) ) );
14396 }
14397 } while ( result == Result::eIncomplete );
14398
14399 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14400 detail::resultCheck(
14401 result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPastPresentationTimingGOOGLE", { Result::eSuccess, Result::eIncomplete, Result::eErrorOutOfDateKHR } );
14402 # else
14403 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPastPresentationTimingGOOGLE" );
14404 # endif
14405
14406 VULKAN_HPP_ASSERT( presentationTimingCount <= presentationTimings.size() );
14407 if ( presentationTimingCount < presentationTimings.size() )
14408 {
14409 presentationTimings.resize( presentationTimingCount );
14410 }
14411
14412 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14413 return ResultValue<std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator>>( result, std::move( presentationTimings ) );
14414 # else
14415 return detail::createResultValueType( result, std::move( presentationTimings ) );
14416 # endif
14417 }
14418
14419 // wrapper function for command vkGetPastPresentationTimingGOOGLE, see
14420 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPastPresentationTimingGOOGLE.html
14421 template <typename PastPresentationTimingGOOGLEAllocator,
14422 typename Dispatch,
14423 typename std::enable_if<std::is_same<typename PastPresentationTimingGOOGLEAllocator::value_type, PastPresentationTimingGOOGLE>::value, int>::type,
14424 typename std::enable_if<IS_DISPATCHED( vkGetPastPresentationTimingGOOGLE ), bool>::type>
14425 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
14426 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14427 ResultValue<std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator>>
14428 # else
14429 typename ResultValueType<std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator>>::type
14430 # endif
14431 Device::getPastPresentationTimingGOOGLE(
14432 SwapchainKHR swapchain, PastPresentationTimingGOOGLEAllocator const & pastPresentationTimingGOOGLEAllocator, Dispatch const & d ) const
14433 {
14434 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14435 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14436 VULKAN_HPP_ASSERT( d.vkGetPastPresentationTimingGOOGLE && "Function <vkGetPastPresentationTimingGOOGLE> requires <VK_GOOGLE_display_timing>" );
14437 # endif
14438
14439 std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator> presentationTimings( pastPresentationTimingGOOGLEAllocator );
14440 uint32_t presentationTimingCount;
14441 Result result;
14442 do
14443 {
14444 result =
14445 static_cast<Result>( d.vkGetPastPresentationTimingGOOGLE( m_device, static_cast<VkSwapchainKHR>( swapchain ), &presentationTimingCount, nullptr ) );
14446 if ( ( result == Result::eSuccess ) && presentationTimingCount )
14447 {
14448 presentationTimings.resize( presentationTimingCount );
14449 result = static_cast<Result>( d.vkGetPastPresentationTimingGOOGLE( m_device,
14450 static_cast<VkSwapchainKHR>( swapchain ),
14451 &presentationTimingCount,
14452 reinterpret_cast<VkPastPresentationTimingGOOGLE *>( presentationTimings.data() ) ) );
14453 }
14454 } while ( result == Result::eIncomplete );
14455
14456 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14457 detail::resultCheck(
14458 result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPastPresentationTimingGOOGLE", { Result::eSuccess, Result::eIncomplete, Result::eErrorOutOfDateKHR } );
14459 # else
14460 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPastPresentationTimingGOOGLE" );
14461 # endif
14462
14463 VULKAN_HPP_ASSERT( presentationTimingCount <= presentationTimings.size() );
14464 if ( presentationTimingCount < presentationTimings.size() )
14465 {
14466 presentationTimings.resize( presentationTimingCount );
14467 }
14468
14469 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14470 return ResultValue<std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator>>( result, std::move( presentationTimings ) );
14471 # else
14472 return detail::createResultValueType( result, std::move( presentationTimings ) );
14473 # endif
14474 }
14475 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14476
14477 //=== VK_EXT_discard_rectangles ===
14478
14479 // wrapper function for command vkCmdSetDiscardRectangleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleEXT.html
14480 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDiscardRectangleEXT ), bool>::type>
14481 VULKAN_HPP_INLINE void CommandBuffer::setDiscardRectangleEXT(
14482 uint32_t firstDiscardRectangle, uint32_t discardRectangleCount, Rect2D const * pDiscardRectangles, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14483 {
14484 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14485 d.vkCmdSetDiscardRectangleEXT(
14486 static_cast<VkCommandBuffer>( m_commandBuffer ), firstDiscardRectangle, discardRectangleCount, reinterpret_cast<VkRect2D const *>( pDiscardRectangles ) );
14487 }
14488
14489 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14490 // wrapper function for command vkCmdSetDiscardRectangleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleEXT.html
14491 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDiscardRectangleEXT ), bool>::type>
14492 VULKAN_HPP_INLINE void CommandBuffer::setDiscardRectangleEXT(
14493 uint32_t firstDiscardRectangle, ArrayProxy<Rect2D const> const & discardRectangles, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14494 {
14495 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14496 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14497 VULKAN_HPP_ASSERT( d.vkCmdSetDiscardRectangleEXT && "Function <vkCmdSetDiscardRectangleEXT> requires <VK_EXT_discard_rectangles>" );
14498 # endif
14499
14500 d.vkCmdSetDiscardRectangleEXT(
14501 m_commandBuffer, firstDiscardRectangle, discardRectangles.size(), reinterpret_cast<VkRect2D const *>( discardRectangles.data() ) );
14502 }
14503 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14504
14505 // wrapper function for command vkCmdSetDiscardRectangleEnableEXT, see
14506 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleEnableEXT.html
14507 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDiscardRectangleEnableEXT ), bool>::type>
14508 VULKAN_HPP_INLINE void CommandBuffer::setDiscardRectangleEnableEXT( Bool32 discardRectangleEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14509 {
14510 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14511 d.vkCmdSetDiscardRectangleEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( discardRectangleEnable ) );
14512 }
14513
14514 // wrapper function for command vkCmdSetDiscardRectangleModeEXT, see
14515 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleModeEXT.html
14516 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDiscardRectangleModeEXT ), bool>::type>
14517 VULKAN_HPP_INLINE void CommandBuffer::setDiscardRectangleModeEXT( DiscardRectangleModeEXT discardRectangleMode, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14518 {
14519 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14520 d.vkCmdSetDiscardRectangleModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkDiscardRectangleModeEXT>( discardRectangleMode ) );
14521 }
14522
14523 //=== VK_EXT_hdr_metadata ===
14524
14525 // wrapper function for command vkSetHdrMetadataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetHdrMetadataEXT.html
14526 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetHdrMetadataEXT ), bool>::type>
14527 VULKAN_HPP_INLINE void Device::setHdrMetadataEXT(
14528 uint32_t swapchainCount, SwapchainKHR const * pSwapchains, HdrMetadataEXT const * pMetadata, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14529 {
14530 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14531 d.vkSetHdrMetadataEXT( static_cast<VkDevice>( m_device ),
14532 swapchainCount,
14533 reinterpret_cast<VkSwapchainKHR const *>( pSwapchains ),
14534 reinterpret_cast<VkHdrMetadataEXT const *>( pMetadata ) );
14535 }
14536
14537 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14538 // wrapper function for command vkSetHdrMetadataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetHdrMetadataEXT.html
14539 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetHdrMetadataEXT ), bool>::type>
14540 VULKAN_HPP_INLINE void Device::setHdrMetadataEXT(
14541 ArrayProxy<SwapchainKHR const> const & swapchains, ArrayProxy<HdrMetadataEXT const> const & metadata, Dispatch const & d )
14542 const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
14543 {
14544 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14545 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14546 VULKAN_HPP_ASSERT( d.vkSetHdrMetadataEXT && "Function <vkSetHdrMetadataEXT> requires <VK_EXT_hdr_metadata>" );
14547 # endif
14548 # ifdef VULKAN_HPP_NO_EXCEPTIONS
14549 VULKAN_HPP_ASSERT( swapchains.size() == metadata.size() );
14550 # else
14551 if ( swapchains.size() != metadata.size() )
14552 {
14553 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::setHdrMetadataEXT: swapchains.size() != metadata.size()" );
14554 }
14555 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
14556
14557 d.vkSetHdrMetadataEXT( m_device,
14558 swapchains.size(),
14559 reinterpret_cast<VkSwapchainKHR const *>( swapchains.data() ),
14560 reinterpret_cast<VkHdrMetadataEXT const *>( metadata.data() ) );
14561 }
14562 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14563
14564 //=== VK_KHR_create_renderpass2 ===
14565
14566 // wrapper function for command vkCreateRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2KHR.html
14567 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass2KHR ), bool>::type>
14568 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createRenderPass2KHR(
14569 RenderPassCreateInfo2 const * pCreateInfo, AllocationCallbacks const * pAllocator, RenderPass * pRenderPass, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14570 {
14571 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14572 return static_cast<Result>( d.vkCreateRenderPass2KHR( static_cast<VkDevice>( m_device ),
14573 reinterpret_cast<VkRenderPassCreateInfo2 const *>( pCreateInfo ),
14574 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
14575 reinterpret_cast<VkRenderPass *>( pRenderPass ) ) );
14576 }
14577
14578 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14579 // wrapper function for command vkCreateRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2KHR.html
14580 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass2KHR ), bool>::type>
14581 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RenderPass>::type Device::createRenderPass2KHR(
14582 RenderPassCreateInfo2 const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
14583 {
14584 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14585 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14586 VULKAN_HPP_ASSERT( d.vkCreateRenderPass2KHR && "Function <vkCreateRenderPass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
14587 # endif
14588
14589 RenderPass renderPass;
14590 Result result = static_cast<Result>( d.vkCreateRenderPass2KHR( m_device,
14591 reinterpret_cast<VkRenderPassCreateInfo2 const *>( &createInfo ),
14592 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
14593 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
14594 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass2KHR" );
14595
14596 return detail::createResultValueType( result, std::move( renderPass ) );
14597 }
14598
14599 # ifndef VULKAN_HPP_NO_SMART_HANDLE
14600 // wrapper function for command vkCreateRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2KHR.html
14601 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass2KHR ), bool>::type>
14602 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<RenderPass, Dispatch>>::type Device::createRenderPass2KHRUnique(
14603 RenderPassCreateInfo2 const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
14604 {
14605 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14606 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14607 VULKAN_HPP_ASSERT( d.vkCreateRenderPass2KHR && "Function <vkCreateRenderPass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
14608 # endif
14609
14610 RenderPass renderPass;
14611 Result result = static_cast<Result>( d.vkCreateRenderPass2KHR( m_device,
14612 reinterpret_cast<VkRenderPassCreateInfo2 const *>( &createInfo ),
14613 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
14614 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
14615 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass2KHRUnique" );
14616
14617 return detail::createResultValueType( result,
14618 UniqueHandle<RenderPass, Dispatch>( renderPass, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
14619 }
14620 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
14621 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14622
14623 // wrapper function for command vkCmdBeginRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass2KHR.html
14624 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderPass2KHR ), bool>::type>
14625 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass2KHR(
14626 RenderPassBeginInfo const * pRenderPassBegin, SubpassBeginInfo const * pSubpassBeginInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14627 {
14628 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14629 d.vkCmdBeginRenderPass2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
14630 reinterpret_cast<VkRenderPassBeginInfo const *>( pRenderPassBegin ),
14631 reinterpret_cast<VkSubpassBeginInfo const *>( pSubpassBeginInfo ) );
14632 }
14633
14634 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14635 // wrapper function for command vkCmdBeginRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass2KHR.html
14636 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderPass2KHR ), bool>::type>
14637 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass2KHR(
14638 RenderPassBeginInfo const & renderPassBegin, SubpassBeginInfo const & subpassBeginInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14639 {
14640 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14641 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14642 VULKAN_HPP_ASSERT( d.vkCmdBeginRenderPass2KHR && "Function <vkCmdBeginRenderPass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
14643 # endif
14644
14645 d.vkCmdBeginRenderPass2KHR(
14646 m_commandBuffer, reinterpret_cast<VkRenderPassBeginInfo const *>( &renderPassBegin ), reinterpret_cast<VkSubpassBeginInfo const *>( &subpassBeginInfo ) );
14647 }
14648 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14649
14650 // wrapper function for command vkCmdNextSubpass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass2KHR.html
14651 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdNextSubpass2KHR ), bool>::type>
14652 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass2KHR(
14653 SubpassBeginInfo const * pSubpassBeginInfo, SubpassEndInfo const * pSubpassEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14654 {
14655 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14656 d.vkCmdNextSubpass2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
14657 reinterpret_cast<VkSubpassBeginInfo const *>( pSubpassBeginInfo ),
14658 reinterpret_cast<VkSubpassEndInfo const *>( pSubpassEndInfo ) );
14659 }
14660
14661 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14662 // wrapper function for command vkCmdNextSubpass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass2KHR.html
14663 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdNextSubpass2KHR ), bool>::type>
14664 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass2KHR( SubpassBeginInfo const & subpassBeginInfo, SubpassEndInfo const & subpassEndInfo, Dispatch const & d )
14665 const VULKAN_HPP_NOEXCEPT
14666 {
14667 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14668 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14669 VULKAN_HPP_ASSERT( d.vkCmdNextSubpass2KHR && "Function <vkCmdNextSubpass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
14670 # endif
14671
14672 d.vkCmdNextSubpass2KHR(
14673 m_commandBuffer, reinterpret_cast<VkSubpassBeginInfo const *>( &subpassBeginInfo ), reinterpret_cast<VkSubpassEndInfo const *>( &subpassEndInfo ) );
14674 }
14675 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14676
14677 // wrapper function for command vkCmdEndRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass2KHR.html
14678 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRenderPass2KHR ), bool>::type>
14679 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass2KHR( SubpassEndInfo const * pSubpassEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14680 {
14681 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14682 d.vkCmdEndRenderPass2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkSubpassEndInfo const *>( pSubpassEndInfo ) );
14683 }
14684
14685 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14686 // wrapper function for command vkCmdEndRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass2KHR.html
14687 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRenderPass2KHR ), bool>::type>
14688 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass2KHR( SubpassEndInfo const & subpassEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14689 {
14690 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14691 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14692 VULKAN_HPP_ASSERT( d.vkCmdEndRenderPass2KHR && "Function <vkCmdEndRenderPass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
14693 # endif
14694
14695 d.vkCmdEndRenderPass2KHR( m_commandBuffer, reinterpret_cast<VkSubpassEndInfo const *>( &subpassEndInfo ) );
14696 }
14697 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14698
14699 //=== VK_KHR_shared_presentable_image ===
14700
14701 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
14702 // wrapper function for command vkGetSwapchainStatusKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainStatusKHR.html
14703 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainStatusKHR ), bool>::type>
14704 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSwapchainStatusKHR( SwapchainKHR swapchain, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14705 {
14706 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14707 return static_cast<Result>( d.vkGetSwapchainStatusKHR( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ) ) );
14708 }
14709 #else
14710 // wrapper function for command vkGetSwapchainStatusKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainStatusKHR.html
14711 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainStatusKHR ), bool>::type>
14712 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSwapchainStatusKHR( SwapchainKHR swapchain, Dispatch const & d ) const
14713 {
14714 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14715 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14716 VULKAN_HPP_ASSERT( d.vkGetSwapchainStatusKHR && "Function <vkGetSwapchainStatusKHR> requires <VK_KHR_shared_presentable_image>" );
14717 # endif
14718
14719 Result result = static_cast<Result>( d.vkGetSwapchainStatusKHR( m_device, static_cast<VkSwapchainKHR>( swapchain ) ) );
14720
14721 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14722 detail::resultCheck(
14723 result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainStatusKHR", { Result::eSuccess, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
14724 # else
14725 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainStatusKHR", { Result::eSuccess, Result::eSuboptimalKHR } );
14726 # endif
14727
14728 return static_cast<Result>( result );
14729 }
14730 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
14731
14732 //=== VK_KHR_external_fence_capabilities ===
14733
14734 // wrapper function for command vkGetPhysicalDeviceExternalFencePropertiesKHR, see
14735 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalFencePropertiesKHR.html
14736 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalFencePropertiesKHR ), bool>::type>
14737 VULKAN_HPP_INLINE void PhysicalDevice::getExternalFencePropertiesKHR(
14738 PhysicalDeviceExternalFenceInfo const * pExternalFenceInfo, ExternalFenceProperties * pExternalFenceProperties, Dispatch const & d )
14739 const VULKAN_HPP_NOEXCEPT
14740 {
14741 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14742 d.vkGetPhysicalDeviceExternalFencePropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14743 reinterpret_cast<VkPhysicalDeviceExternalFenceInfo const *>( pExternalFenceInfo ),
14744 reinterpret_cast<VkExternalFenceProperties *>( pExternalFenceProperties ) );
14745 }
14746
14747 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14748 // wrapper function for command vkGetPhysicalDeviceExternalFencePropertiesKHR, see
14749 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalFencePropertiesKHR.html
14750 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalFencePropertiesKHR ), bool>::type>
14751 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalFenceProperties PhysicalDevice::getExternalFencePropertiesKHR(
14752 PhysicalDeviceExternalFenceInfo const & externalFenceInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14753 {
14754 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14755 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14756 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalFencePropertiesKHR &&
14757 "Function <vkGetPhysicalDeviceExternalFencePropertiesKHR> requires <VK_KHR_external_fence_capabilities> or <VK_VERSION_1_1>" );
14758 # endif
14759
14760 ExternalFenceProperties externalFenceProperties;
14761 d.vkGetPhysicalDeviceExternalFencePropertiesKHR( m_physicalDevice,
14762 reinterpret_cast<VkPhysicalDeviceExternalFenceInfo const *>( &externalFenceInfo ),
14763 reinterpret_cast<VkExternalFenceProperties *>( &externalFenceProperties ) );
14764
14765 return externalFenceProperties;
14766 }
14767 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14768
14769 #if defined( VK_USE_PLATFORM_WIN32_KHR )
14770 //=== VK_KHR_external_fence_win32 ===
14771
14772 // wrapper function for command vkImportFenceWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportFenceWin32HandleKHR.html
14773 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportFenceWin32HandleKHR ), bool>::type>
14774 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::importFenceWin32HandleKHR( ImportFenceWin32HandleInfoKHR const * pImportFenceWin32HandleInfo,
14775 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14776 {
14777 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14778 return static_cast<Result>( d.vkImportFenceWin32HandleKHR( static_cast<VkDevice>( m_device ),
14779 reinterpret_cast<VkImportFenceWin32HandleInfoKHR const *>( pImportFenceWin32HandleInfo ) ) );
14780 }
14781
14782 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14783 // wrapper function for command vkImportFenceWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportFenceWin32HandleKHR.html
14784 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportFenceWin32HandleKHR ), bool>::type>
14785 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::importFenceWin32HandleKHR(
14786 ImportFenceWin32HandleInfoKHR const & importFenceWin32HandleInfo, Dispatch const & d ) const
14787 {
14788 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14789 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14790 VULKAN_HPP_ASSERT( d.vkImportFenceWin32HandleKHR && "Function <vkImportFenceWin32HandleKHR> requires <VK_KHR_external_fence_win32>" );
14791 # endif
14792
14793 Result result = static_cast<Result>(
14794 d.vkImportFenceWin32HandleKHR( m_device, reinterpret_cast<VkImportFenceWin32HandleInfoKHR const *>( &importFenceWin32HandleInfo ) ) );
14795 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importFenceWin32HandleKHR" );
14796
14797 return detail::createResultValueType( result );
14798 }
14799 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14800
14801 // wrapper function for command vkGetFenceWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceWin32HandleKHR.html
14802 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFenceWin32HandleKHR ), bool>::type>
14803 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFenceWin32HandleKHR(
14804 FenceGetWin32HandleInfoKHR const * pGetWin32HandleInfo, HANDLE * pHandle, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14805 {
14806 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14807 return static_cast<Result>(
14808 d.vkGetFenceWin32HandleKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkFenceGetWin32HandleInfoKHR const *>( pGetWin32HandleInfo ), pHandle ) );
14809 }
14810
14811 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14812 // wrapper function for command vkGetFenceWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceWin32HandleKHR.html
14813 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFenceWin32HandleKHR ), bool>::type>
14814 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HANDLE>::type Device::getFenceWin32HandleKHR(
14815 FenceGetWin32HandleInfoKHR const & getWin32HandleInfo, Dispatch const & d ) const
14816 {
14817 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14818 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14819 VULKAN_HPP_ASSERT( d.vkGetFenceWin32HandleKHR && "Function <vkGetFenceWin32HandleKHR> requires <VK_KHR_external_fence_win32>" );
14820 # endif
14821
14822 HANDLE handle;
14823 Result result =
14824 static_cast<Result>( d.vkGetFenceWin32HandleKHR( m_device, reinterpret_cast<VkFenceGetWin32HandleInfoKHR const *>( &getWin32HandleInfo ), &handle ) );
14825 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceWin32HandleKHR" );
14826
14827 return detail::createResultValueType( result, std::move( handle ) );
14828 }
14829 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14830 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
14831
14832 //=== VK_KHR_external_fence_fd ===
14833
14834 // wrapper function for command vkImportFenceFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportFenceFdKHR.html
14835 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportFenceFdKHR ), bool>::type>
14836 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::importFenceFdKHR( ImportFenceFdInfoKHR const * pImportFenceFdInfo, Dispatch const & d )
14837 const VULKAN_HPP_NOEXCEPT
14838 {
14839 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14840 return static_cast<Result>(
14841 d.vkImportFenceFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkImportFenceFdInfoKHR const *>( pImportFenceFdInfo ) ) );
14842 }
14843
14844 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14845 // wrapper function for command vkImportFenceFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportFenceFdKHR.html
14846 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportFenceFdKHR ), bool>::type>
14847 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::importFenceFdKHR(
14848 ImportFenceFdInfoKHR const & importFenceFdInfo, Dispatch const & d ) const
14849 {
14850 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14851 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14852 VULKAN_HPP_ASSERT( d.vkImportFenceFdKHR && "Function <vkImportFenceFdKHR> requires <VK_KHR_external_fence_fd>" );
14853 # endif
14854
14855 Result result = static_cast<Result>( d.vkImportFenceFdKHR( m_device, reinterpret_cast<VkImportFenceFdInfoKHR const *>( &importFenceFdInfo ) ) );
14856 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importFenceFdKHR" );
14857
14858 return detail::createResultValueType( result );
14859 }
14860 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14861
14862 // wrapper function for command vkGetFenceFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceFdKHR.html
14863 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFenceFdKHR ), bool>::type>
14864 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFenceFdKHR( FenceGetFdInfoKHR const * pGetFdInfo, int * pFd, Dispatch const & d )
14865 const VULKAN_HPP_NOEXCEPT
14866 {
14867 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14868 return static_cast<Result>( d.vkGetFenceFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkFenceGetFdInfoKHR const *>( pGetFdInfo ), pFd ) );
14869 }
14870
14871 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14872 // wrapper function for command vkGetFenceFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceFdKHR.html
14873 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFenceFdKHR ), bool>::type>
14874 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<int>::type Device::getFenceFdKHR( FenceGetFdInfoKHR const & getFdInfo, Dispatch const & d )
14875 const
14876 {
14877 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14878 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14879 VULKAN_HPP_ASSERT( d.vkGetFenceFdKHR && "Function <vkGetFenceFdKHR> requires <VK_KHR_external_fence_fd>" );
14880 # endif
14881
14882 int fd;
14883 Result result = static_cast<Result>( d.vkGetFenceFdKHR( m_device, reinterpret_cast<VkFenceGetFdInfoKHR const *>( &getFdInfo ), &fd ) );
14884 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceFdKHR" );
14885
14886 return detail::createResultValueType( result, std::move( fd ) );
14887 }
14888 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14889
14890 //=== VK_KHR_performance_query ===
14891
14892 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR, see
14893 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR.html
14894 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR ), bool>::type>
14895 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR(
14896 uint32_t queueFamilyIndex,
14897 uint32_t * pCounterCount,
14898 PerformanceCounterKHR * pCounters,
14899 PerformanceCounterDescriptionKHR * pCounterDescriptions,
14900 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14901 {
14902 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14903 return static_cast<Result>(
14904 d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14905 queueFamilyIndex,
14906 pCounterCount,
14907 reinterpret_cast<VkPerformanceCounterKHR *>( pCounters ),
14908 reinterpret_cast<VkPerformanceCounterDescriptionKHR *>( pCounterDescriptions ) ) );
14909 }
14910
14911 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14912 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR, see
14913 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR.html
14914 template <typename PerformanceCounterKHRAllocator,
14915 typename PerformanceCounterDescriptionKHRAllocator,
14916 typename Dispatch,
14917 typename std::enable_if<std::is_same<typename PerformanceCounterKHRAllocator::value_type, PerformanceCounterKHR>::value &&
14918 std::is_same<typename PerformanceCounterDescriptionKHRAllocator::value_type, PerformanceCounterDescriptionKHR>::value,
14919 int>::type,
14920 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR ), bool>::type>
14921 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
14922 typename ResultValueType<std::pair<std::vector<PerformanceCounterKHR, PerformanceCounterKHRAllocator>,
14923 std::vector<PerformanceCounterDescriptionKHR, PerformanceCounterDescriptionKHRAllocator>>>::type
14924 PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR( uint32_t queueFamilyIndex, Dispatch const & d ) const
14925 {
14926 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14927 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14928 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR &&
14929 "Function <vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR> requires <VK_KHR_performance_query>" );
14930 # endif
14931
14932 std::pair<std::vector<PerformanceCounterKHR, PerformanceCounterKHRAllocator>,
14933 std::vector<PerformanceCounterDescriptionKHR, PerformanceCounterDescriptionKHRAllocator>>
14934 data_;
14935 std::vector<PerformanceCounterKHR, PerformanceCounterKHRAllocator> & counters = data_.first;
14936 std::vector<PerformanceCounterDescriptionKHR, PerformanceCounterDescriptionKHRAllocator> & counterDescriptions = data_.second;
14937 uint32_t counterCount;
14938 Result result;
14939 do
14940 {
14941 result = static_cast<Result>(
14942 d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( m_physicalDevice, queueFamilyIndex, &counterCount, nullptr, nullptr ) );
14943 if ( ( result == Result::eSuccess ) && counterCount )
14944 {
14945 counters.resize( counterCount );
14946 counterDescriptions.resize( counterCount );
14947 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(
14948 m_physicalDevice,
14949 queueFamilyIndex,
14950 &counterCount,
14951 reinterpret_cast<VkPerformanceCounterKHR *>( counters.data() ),
14952 reinterpret_cast<VkPerformanceCounterDescriptionKHR *>( counterDescriptions.data() ) ) );
14953 }
14954 } while ( result == Result::eIncomplete );
14955 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR" );
14956 VULKAN_HPP_ASSERT( counterCount <= counters.size() );
14957 if ( counterCount < counters.size() )
14958 {
14959 counters.resize( counterCount );
14960 counterDescriptions.resize( counterCount );
14961 }
14962 return detail::createResultValueType( result, std::move( data_ ) );
14963 }
14964
14965 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR, see
14966 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR.html
14967 template <typename PerformanceCounterKHRAllocator,
14968 typename PerformanceCounterDescriptionKHRAllocator,
14969 typename Dispatch,
14970 typename std::enable_if<std::is_same<typename PerformanceCounterKHRAllocator::value_type, PerformanceCounterKHR>::value &&
14971 std::is_same<typename PerformanceCounterDescriptionKHRAllocator::value_type, PerformanceCounterDescriptionKHR>::value,
14972 int>::type,
14973 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR ), bool>::type>
14974 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
14975 typename ResultValueType<std::pair<std::vector<PerformanceCounterKHR, PerformanceCounterKHRAllocator>,
14976 std::vector<PerformanceCounterDescriptionKHR, PerformanceCounterDescriptionKHRAllocator>>>::type
14977 PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR(
14978 uint32_t queueFamilyIndex,
14979 PerformanceCounterKHRAllocator const & performanceCounterKHRAllocator,
14980 PerformanceCounterDescriptionKHRAllocator const & performanceCounterDescriptionKHRAllocator,
14981 Dispatch const & d ) const
14982 {
14983 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14984 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14985 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR &&
14986 "Function <vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR> requires <VK_KHR_performance_query>" );
14987 # endif
14988
14989 std::pair<std::vector<PerformanceCounterKHR, PerformanceCounterKHRAllocator>,
14990 std::vector<PerformanceCounterDescriptionKHR, PerformanceCounterDescriptionKHRAllocator>>
14991 data_(
14992 std::piecewise_construct, std::forward_as_tuple( performanceCounterKHRAllocator ), std::forward_as_tuple( performanceCounterDescriptionKHRAllocator ) );
14993 std::vector<PerformanceCounterKHR, PerformanceCounterKHRAllocator> & counters = data_.first;
14994 std::vector<PerformanceCounterDescriptionKHR, PerformanceCounterDescriptionKHRAllocator> & counterDescriptions = data_.second;
14995 uint32_t counterCount;
14996 Result result;
14997 do
14998 {
14999 result = static_cast<Result>(
15000 d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( m_physicalDevice, queueFamilyIndex, &counterCount, nullptr, nullptr ) );
15001 if ( ( result == Result::eSuccess ) && counterCount )
15002 {
15003 counters.resize( counterCount );
15004 counterDescriptions.resize( counterCount );
15005 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(
15006 m_physicalDevice,
15007 queueFamilyIndex,
15008 &counterCount,
15009 reinterpret_cast<VkPerformanceCounterKHR *>( counters.data() ),
15010 reinterpret_cast<VkPerformanceCounterDescriptionKHR *>( counterDescriptions.data() ) ) );
15011 }
15012 } while ( result == Result::eIncomplete );
15013 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR" );
15014 VULKAN_HPP_ASSERT( counterCount <= counters.size() );
15015 if ( counterCount < counters.size() )
15016 {
15017 counters.resize( counterCount );
15018 counterDescriptions.resize( counterCount );
15019 }
15020 return detail::createResultValueType( result, std::move( data_ ) );
15021 }
15022 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15023
15024 // wrapper function for command vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR, see
15025 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR.html
15026 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR ), bool>::type>
15027 VULKAN_HPP_INLINE void PhysicalDevice::getQueueFamilyPerformanceQueryPassesKHR(
15028 QueryPoolPerformanceCreateInfoKHR const * pPerformanceQueryCreateInfo, uint32_t * pNumPasses, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15029 {
15030 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15031 d.vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15032 reinterpret_cast<VkQueryPoolPerformanceCreateInfoKHR const *>( pPerformanceQueryCreateInfo ),
15033 pNumPasses );
15034 }
15035
15036 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15037 // wrapper function for command vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR, see
15038 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR.html
15039 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR ), bool>::type>
15040 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint32_t PhysicalDevice::getQueueFamilyPerformanceQueryPassesKHR(
15041 QueryPoolPerformanceCreateInfoKHR const & performanceQueryCreateInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15042 {
15043 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15044 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15045 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR &&
15046 "Function <vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR> requires <VK_KHR_performance_query>" );
15047 # endif
15048
15049 uint32_t numPasses;
15050 d.vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR(
15051 m_physicalDevice, reinterpret_cast<VkQueryPoolPerformanceCreateInfoKHR const *>( &performanceQueryCreateInfo ), &numPasses );
15052
15053 return numPasses;
15054 }
15055 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15056
15057 // wrapper function for command vkAcquireProfilingLockKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireProfilingLockKHR.html
15058 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireProfilingLockKHR ), bool>::type>
15059 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::acquireProfilingLockKHR( AcquireProfilingLockInfoKHR const * pInfo, Dispatch const & d )
15060 const VULKAN_HPP_NOEXCEPT
15061 {
15062 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15063 return static_cast<Result>(
15064 d.vkAcquireProfilingLockKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkAcquireProfilingLockInfoKHR const *>( pInfo ) ) );
15065 }
15066
15067 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15068 // wrapper function for command vkAcquireProfilingLockKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireProfilingLockKHR.html
15069 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireProfilingLockKHR ), bool>::type>
15070 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::acquireProfilingLockKHR(
15071 AcquireProfilingLockInfoKHR const & info, Dispatch const & d ) const
15072 {
15073 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15074 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15075 VULKAN_HPP_ASSERT( d.vkAcquireProfilingLockKHR && "Function <vkAcquireProfilingLockKHR> requires <VK_KHR_performance_query>" );
15076 # endif
15077
15078 Result result = static_cast<Result>( d.vkAcquireProfilingLockKHR( m_device, reinterpret_cast<VkAcquireProfilingLockInfoKHR const *>( &info ) ) );
15079 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquireProfilingLockKHR" );
15080
15081 return detail::createResultValueType( result );
15082 }
15083 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15084
15085 // wrapper function for command vkReleaseProfilingLockKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseProfilingLockKHR.html
15086 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseProfilingLockKHR ), bool>::type>
15087 VULKAN_HPP_INLINE void Device::releaseProfilingLockKHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15088 {
15089 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15090 d.vkReleaseProfilingLockKHR( static_cast<VkDevice>( m_device ) );
15091 }
15092
15093 //=== VK_KHR_get_surface_capabilities2 ===
15094
15095 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2KHR, see
15096 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html
15097 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilities2KHR ), bool>::type>
15098 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceCapabilities2KHR(
15099 PhysicalDeviceSurfaceInfo2KHR const * pSurfaceInfo, SurfaceCapabilities2KHR * pSurfaceCapabilities, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15100 {
15101 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15102 return static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15103 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( pSurfaceInfo ),
15104 reinterpret_cast<VkSurfaceCapabilities2KHR *>( pSurfaceCapabilities ) ) );
15105 }
15106
15107 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15108 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2KHR, see
15109 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html
15110 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilities2KHR ), bool>::type>
15111 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceCapabilities2KHR>::type PhysicalDevice::getSurfaceCapabilities2KHR(
15112 PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo, Dispatch const & d ) const
15113 {
15114 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15115 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15116 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR &&
15117 "Function <vkGetPhysicalDeviceSurfaceCapabilities2KHR> requires <VK_KHR_get_surface_capabilities2>" );
15118 # endif
15119
15120 SurfaceCapabilities2KHR surfaceCapabilities;
15121 Result result =
15122 static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR( m_physicalDevice,
15123 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
15124 reinterpret_cast<VkSurfaceCapabilities2KHR *>( &surfaceCapabilities ) ) );
15125 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" );
15126
15127 return detail::createResultValueType( result, std::move( surfaceCapabilities ) );
15128 }
15129
15130 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2KHR, see
15131 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html
15132 template <typename X,
15133 typename Y,
15134 typename... Z,
15135 typename Dispatch,
15136 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilities2KHR ), bool>::type>
15137 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type PhysicalDevice::getSurfaceCapabilities2KHR(
15138 PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo, Dispatch const & d ) const
15139 {
15140 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15141 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15142 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR &&
15143 "Function <vkGetPhysicalDeviceSurfaceCapabilities2KHR> requires <VK_KHR_get_surface_capabilities2>" );
15144 # endif
15145
15146 StructureChain<X, Y, Z...> structureChain;
15147 SurfaceCapabilities2KHR & surfaceCapabilities = structureChain.template get<SurfaceCapabilities2KHR>();
15148 Result result =
15149 static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR( m_physicalDevice,
15150 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
15151 reinterpret_cast<VkSurfaceCapabilities2KHR *>( &surfaceCapabilities ) ) );
15152 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" );
15153
15154 return detail::createResultValueType( result, std::move( structureChain ) );
15155 }
15156 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15157
15158 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
15159 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
15160 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormats2KHR ), bool>::type>
15161 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceFormats2KHR(
15162 PhysicalDeviceSurfaceInfo2KHR const * pSurfaceInfo, uint32_t * pSurfaceFormatCount, SurfaceFormat2KHR * pSurfaceFormats, Dispatch const & d )
15163 const VULKAN_HPP_NOEXCEPT
15164 {
15165 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15166 return static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15167 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( pSurfaceInfo ),
15168 pSurfaceFormatCount,
15169 reinterpret_cast<VkSurfaceFormat2KHR *>( pSurfaceFormats ) ) );
15170 }
15171
15172 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15173 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
15174 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
15175 template <typename SurfaceFormat2KHRAllocator,
15176 typename Dispatch,
15177 typename std::enable_if<std::is_same<typename SurfaceFormat2KHRAllocator::value_type, SurfaceFormat2KHR>::value, int>::type,
15178 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormats2KHR ), bool>::type>
15179 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SurfaceFormat2KHR, SurfaceFormat2KHRAllocator>>::type
15180 PhysicalDevice::getSurfaceFormats2KHR( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo, Dispatch const & d ) const
15181 {
15182 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15183 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15184 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceFormats2KHR &&
15185 "Function <vkGetPhysicalDeviceSurfaceFormats2KHR> requires <VK_KHR_get_surface_capabilities2>" );
15186 # endif
15187
15188 std::vector<SurfaceFormat2KHR, SurfaceFormat2KHRAllocator> surfaceFormats;
15189 uint32_t surfaceFormatCount;
15190 Result result;
15191 do
15192 {
15193 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR(
15194 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ), &surfaceFormatCount, nullptr ) );
15195 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
15196 {
15197 surfaceFormats.resize( surfaceFormatCount );
15198 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR( m_physicalDevice,
15199 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
15200 &surfaceFormatCount,
15201 reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) ) );
15202 }
15203 } while ( result == Result::eIncomplete );
15204 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormats2KHR" );
15205 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
15206 if ( surfaceFormatCount < surfaceFormats.size() )
15207 {
15208 surfaceFormats.resize( surfaceFormatCount );
15209 }
15210 return detail::createResultValueType( result, std::move( surfaceFormats ) );
15211 }
15212
15213 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
15214 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
15215 template <typename SurfaceFormat2KHRAllocator,
15216 typename Dispatch,
15217 typename std::enable_if<std::is_same<typename SurfaceFormat2KHRAllocator::value_type, SurfaceFormat2KHR>::value, int>::type,
15218 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormats2KHR ), bool>::type>
15219 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SurfaceFormat2KHR, SurfaceFormat2KHRAllocator>>::type
15220 PhysicalDevice::getSurfaceFormats2KHR(
15221 PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo, SurfaceFormat2KHRAllocator const & surfaceFormat2KHRAllocator, Dispatch const & d ) const
15222 {
15223 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15224 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15225 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceFormats2KHR &&
15226 "Function <vkGetPhysicalDeviceSurfaceFormats2KHR> requires <VK_KHR_get_surface_capabilities2>" );
15227 # endif
15228
15229 std::vector<SurfaceFormat2KHR, SurfaceFormat2KHRAllocator> surfaceFormats( surfaceFormat2KHRAllocator );
15230 uint32_t surfaceFormatCount;
15231 Result result;
15232 do
15233 {
15234 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR(
15235 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ), &surfaceFormatCount, nullptr ) );
15236 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
15237 {
15238 surfaceFormats.resize( surfaceFormatCount );
15239 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR( m_physicalDevice,
15240 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
15241 &surfaceFormatCount,
15242 reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) ) );
15243 }
15244 } while ( result == Result::eIncomplete );
15245 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormats2KHR" );
15246 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
15247 if ( surfaceFormatCount < surfaceFormats.size() )
15248 {
15249 surfaceFormats.resize( surfaceFormatCount );
15250 }
15251 return detail::createResultValueType( result, std::move( surfaceFormats ) );
15252 }
15253
15254 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
15255 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
15256 template <typename StructureChain,
15257 typename StructureChainAllocator,
15258 typename Dispatch,
15259 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
15260 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormats2KHR ), bool>::type>
15261 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain, StructureChainAllocator>>::type
15262 PhysicalDevice::getSurfaceFormats2KHR( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo, Dispatch const & d ) const
15263 {
15264 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15265 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15266 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceFormats2KHR &&
15267 "Function <vkGetPhysicalDeviceSurfaceFormats2KHR> requires <VK_KHR_get_surface_capabilities2>" );
15268 # endif
15269
15270 std::vector<StructureChain, StructureChainAllocator> structureChains;
15271 std::vector<SurfaceFormat2KHR> surfaceFormats;
15272 uint32_t surfaceFormatCount;
15273 Result result;
15274 do
15275 {
15276 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR(
15277 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ), &surfaceFormatCount, nullptr ) );
15278 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
15279 {
15280 structureChains.resize( surfaceFormatCount );
15281 surfaceFormats.resize( surfaceFormatCount );
15282 for ( uint32_t i = 0; i < surfaceFormatCount; i++ )
15283 {
15284 surfaceFormats[i].pNext = structureChains[i].template get<SurfaceFormat2KHR>().pNext;
15285 }
15286 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR( m_physicalDevice,
15287 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
15288 &surfaceFormatCount,
15289 reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) ) );
15290 }
15291 } while ( result == Result::eIncomplete );
15292 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormats2KHR" );
15293 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
15294 if ( surfaceFormatCount < surfaceFormats.size() )
15295 {
15296 structureChains.resize( surfaceFormatCount );
15297 }
15298 for ( uint32_t i = 0; i < surfaceFormatCount; i++ )
15299 {
15300 structureChains[i].template get<SurfaceFormat2KHR>() = surfaceFormats[i];
15301 }
15302 return detail::createResultValueType( result, std::move( structureChains ) );
15303 }
15304
15305 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
15306 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
15307 template <typename StructureChain,
15308 typename StructureChainAllocator,
15309 typename Dispatch,
15310 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
15311 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormats2KHR ), bool>::type>
15312 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain, StructureChainAllocator>>::type
15313 PhysicalDevice::getSurfaceFormats2KHR(
15314 PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo, StructureChainAllocator const & structureChainAllocator, Dispatch const & d ) const
15315 {
15316 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15317 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15318 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceFormats2KHR &&
15319 "Function <vkGetPhysicalDeviceSurfaceFormats2KHR> requires <VK_KHR_get_surface_capabilities2>" );
15320 # endif
15321
15322 std::vector<StructureChain, StructureChainAllocator> structureChains( structureChainAllocator );
15323 std::vector<SurfaceFormat2KHR> surfaceFormats;
15324 uint32_t surfaceFormatCount;
15325 Result result;
15326 do
15327 {
15328 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR(
15329 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ), &surfaceFormatCount, nullptr ) );
15330 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
15331 {
15332 structureChains.resize( surfaceFormatCount );
15333 surfaceFormats.resize( surfaceFormatCount );
15334 for ( uint32_t i = 0; i < surfaceFormatCount; i++ )
15335 {
15336 surfaceFormats[i].pNext = structureChains[i].template get<SurfaceFormat2KHR>().pNext;
15337 }
15338 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR( m_physicalDevice,
15339 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
15340 &surfaceFormatCount,
15341 reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) ) );
15342 }
15343 } while ( result == Result::eIncomplete );
15344 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormats2KHR" );
15345 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
15346 if ( surfaceFormatCount < surfaceFormats.size() )
15347 {
15348 structureChains.resize( surfaceFormatCount );
15349 }
15350 for ( uint32_t i = 0; i < surfaceFormatCount; i++ )
15351 {
15352 structureChains[i].template get<SurfaceFormat2KHR>() = surfaceFormats[i];
15353 }
15354 return detail::createResultValueType( result, std::move( structureChains ) );
15355 }
15356 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15357
15358 //=== VK_KHR_get_display_properties2 ===
15359
15360 // wrapper function for command vkGetPhysicalDeviceDisplayProperties2KHR, see
15361 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayProperties2KHR.html
15362 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayProperties2KHR ), bool>::type>
15363 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayProperties2KHR(
15364 uint32_t * pPropertyCount, DisplayProperties2KHR * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15365 {
15366 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15367 return static_cast<Result>( d.vkGetPhysicalDeviceDisplayProperties2KHR(
15368 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkDisplayProperties2KHR *>( pProperties ) ) );
15369 }
15370
15371 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15372 // wrapper function for command vkGetPhysicalDeviceDisplayProperties2KHR, see
15373 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayProperties2KHR.html
15374 template <typename DisplayProperties2KHRAllocator,
15375 typename Dispatch,
15376 typename std::enable_if<std::is_same<typename DisplayProperties2KHRAllocator::value_type, DisplayProperties2KHR>::value, int>::type,
15377 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayProperties2KHR ), bool>::type>
15378 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayProperties2KHR, DisplayProperties2KHRAllocator>>::type
15379 PhysicalDevice::getDisplayProperties2KHR( Dispatch const & d ) const
15380 {
15381 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15382 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15383 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayProperties2KHR &&
15384 "Function <vkGetPhysicalDeviceDisplayProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15385 # endif
15386
15387 std::vector<DisplayProperties2KHR, DisplayProperties2KHRAllocator> properties;
15388 uint32_t propertyCount;
15389 Result result;
15390 do
15391 {
15392 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayProperties2KHR( m_physicalDevice, &propertyCount, nullptr ) );
15393 if ( ( result == Result::eSuccess ) && propertyCount )
15394 {
15395 properties.resize( propertyCount );
15396 result = static_cast<Result>(
15397 d.vkGetPhysicalDeviceDisplayProperties2KHR( m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayProperties2KHR *>( properties.data() ) ) );
15398 }
15399 } while ( result == Result::eIncomplete );
15400 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayProperties2KHR" );
15401 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15402 if ( propertyCount < properties.size() )
15403 {
15404 properties.resize( propertyCount );
15405 }
15406 return detail::createResultValueType( result, std::move( properties ) );
15407 }
15408
15409 // wrapper function for command vkGetPhysicalDeviceDisplayProperties2KHR, see
15410 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayProperties2KHR.html
15411 template <typename DisplayProperties2KHRAllocator,
15412 typename Dispatch,
15413 typename std::enable_if<std::is_same<typename DisplayProperties2KHRAllocator::value_type, DisplayProperties2KHR>::value, int>::type,
15414 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayProperties2KHR ), bool>::type>
15415 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayProperties2KHR, DisplayProperties2KHRAllocator>>::type
15416 PhysicalDevice::getDisplayProperties2KHR( DisplayProperties2KHRAllocator const & displayProperties2KHRAllocator, Dispatch const & d ) const
15417 {
15418 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15419 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15420 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayProperties2KHR &&
15421 "Function <vkGetPhysicalDeviceDisplayProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15422 # endif
15423
15424 std::vector<DisplayProperties2KHR, DisplayProperties2KHRAllocator> properties( displayProperties2KHRAllocator );
15425 uint32_t propertyCount;
15426 Result result;
15427 do
15428 {
15429 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayProperties2KHR( m_physicalDevice, &propertyCount, nullptr ) );
15430 if ( ( result == Result::eSuccess ) && propertyCount )
15431 {
15432 properties.resize( propertyCount );
15433 result = static_cast<Result>(
15434 d.vkGetPhysicalDeviceDisplayProperties2KHR( m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayProperties2KHR *>( properties.data() ) ) );
15435 }
15436 } while ( result == Result::eIncomplete );
15437 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayProperties2KHR" );
15438 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15439 if ( propertyCount < properties.size() )
15440 {
15441 properties.resize( propertyCount );
15442 }
15443 return detail::createResultValueType( result, std::move( properties ) );
15444 }
15445 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15446
15447 // wrapper function for command vkGetPhysicalDeviceDisplayPlaneProperties2KHR, see
15448 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlaneProperties2KHR.html
15449 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPlaneProperties2KHR ), bool>::type>
15450 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayPlaneProperties2KHR(
15451 uint32_t * pPropertyCount, DisplayPlaneProperties2KHR * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15452 {
15453 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15454 return static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR(
15455 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkDisplayPlaneProperties2KHR *>( pProperties ) ) );
15456 }
15457
15458 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15459 // wrapper function for command vkGetPhysicalDeviceDisplayPlaneProperties2KHR, see
15460 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlaneProperties2KHR.html
15461 template <typename DisplayPlaneProperties2KHRAllocator,
15462 typename Dispatch,
15463 typename std::enable_if<std::is_same<typename DisplayPlaneProperties2KHRAllocator::value_type, DisplayPlaneProperties2KHR>::value, int>::type,
15464 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPlaneProperties2KHR ), bool>::type>
15465 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPlaneProperties2KHR, DisplayPlaneProperties2KHRAllocator>>::type
15466 PhysicalDevice::getDisplayPlaneProperties2KHR( Dispatch const & d ) const
15467 {
15468 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15469 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15470 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR &&
15471 "Function <vkGetPhysicalDeviceDisplayPlaneProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15472 # endif
15473
15474 std::vector<DisplayPlaneProperties2KHR, DisplayPlaneProperties2KHRAllocator> properties;
15475 uint32_t propertyCount;
15476 Result result;
15477 do
15478 {
15479 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR( m_physicalDevice, &propertyCount, nullptr ) );
15480 if ( ( result == Result::eSuccess ) && propertyCount )
15481 {
15482 properties.resize( propertyCount );
15483 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR(
15484 m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPlaneProperties2KHR *>( properties.data() ) ) );
15485 }
15486 } while ( result == Result::eIncomplete );
15487 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneProperties2KHR" );
15488 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15489 if ( propertyCount < properties.size() )
15490 {
15491 properties.resize( propertyCount );
15492 }
15493 return detail::createResultValueType( result, std::move( properties ) );
15494 }
15495
15496 // wrapper function for command vkGetPhysicalDeviceDisplayPlaneProperties2KHR, see
15497 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlaneProperties2KHR.html
15498 template <typename DisplayPlaneProperties2KHRAllocator,
15499 typename Dispatch,
15500 typename std::enable_if<std::is_same<typename DisplayPlaneProperties2KHRAllocator::value_type, DisplayPlaneProperties2KHR>::value, int>::type,
15501 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPlaneProperties2KHR ), bool>::type>
15502 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPlaneProperties2KHR, DisplayPlaneProperties2KHRAllocator>>::type
15503 PhysicalDevice::getDisplayPlaneProperties2KHR( DisplayPlaneProperties2KHRAllocator const & displayPlaneProperties2KHRAllocator, Dispatch const & d ) const
15504 {
15505 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15506 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15507 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR &&
15508 "Function <vkGetPhysicalDeviceDisplayPlaneProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15509 # endif
15510
15511 std::vector<DisplayPlaneProperties2KHR, DisplayPlaneProperties2KHRAllocator> properties( displayPlaneProperties2KHRAllocator );
15512 uint32_t propertyCount;
15513 Result result;
15514 do
15515 {
15516 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR( m_physicalDevice, &propertyCount, nullptr ) );
15517 if ( ( result == Result::eSuccess ) && propertyCount )
15518 {
15519 properties.resize( propertyCount );
15520 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR(
15521 m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPlaneProperties2KHR *>( properties.data() ) ) );
15522 }
15523 } while ( result == Result::eIncomplete );
15524 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneProperties2KHR" );
15525 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15526 if ( propertyCount < properties.size() )
15527 {
15528 properties.resize( propertyCount );
15529 }
15530 return detail::createResultValueType( result, std::move( properties ) );
15531 }
15532 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15533
15534 // wrapper function for command vkGetDisplayModeProperties2KHR, see
15535 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
15536 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayModeProperties2KHR ), bool>::type>
15537 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayModeProperties2KHR(
15538 DisplayKHR display, uint32_t * pPropertyCount, DisplayModeProperties2KHR * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15539 {
15540 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15541 return static_cast<Result>( d.vkGetDisplayModeProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15542 static_cast<VkDisplayKHR>( display ),
15543 pPropertyCount,
15544 reinterpret_cast<VkDisplayModeProperties2KHR *>( pProperties ) ) );
15545 }
15546
15547 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15548 // wrapper function for command vkGetDisplayModeProperties2KHR, see
15549 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
15550 template <typename DisplayModeProperties2KHRAllocator,
15551 typename Dispatch,
15552 typename std::enable_if<std::is_same<typename DisplayModeProperties2KHRAllocator::value_type, DisplayModeProperties2KHR>::value, int>::type,
15553 typename std::enable_if<IS_DISPATCHED( vkGetDisplayModeProperties2KHR ), bool>::type>
15554 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayModeProperties2KHR, DisplayModeProperties2KHRAllocator>>::type
15555 PhysicalDevice::getDisplayModeProperties2KHR( DisplayKHR display, Dispatch const & d ) const
15556 {
15557 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15558 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15559 VULKAN_HPP_ASSERT( d.vkGetDisplayModeProperties2KHR && "Function <vkGetDisplayModeProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15560 # endif
15561
15562 std::vector<DisplayModeProperties2KHR, DisplayModeProperties2KHRAllocator> properties;
15563 uint32_t propertyCount;
15564 Result result;
15565 do
15566 {
15567 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR( m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, nullptr ) );
15568 if ( ( result == Result::eSuccess ) && propertyCount )
15569 {
15570 properties.resize( propertyCount );
15571 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR(
15572 m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) ) );
15573 }
15574 } while ( result == Result::eIncomplete );
15575 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModeProperties2KHR" );
15576 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15577 if ( propertyCount < properties.size() )
15578 {
15579 properties.resize( propertyCount );
15580 }
15581 return detail::createResultValueType( result, std::move( properties ) );
15582 }
15583
15584 // wrapper function for command vkGetDisplayModeProperties2KHR, see
15585 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
15586 template <typename DisplayModeProperties2KHRAllocator,
15587 typename Dispatch,
15588 typename std::enable_if<std::is_same<typename DisplayModeProperties2KHRAllocator::value_type, DisplayModeProperties2KHR>::value, int>::type,
15589 typename std::enable_if<IS_DISPATCHED( vkGetDisplayModeProperties2KHR ), bool>::type>
15590 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayModeProperties2KHR, DisplayModeProperties2KHRAllocator>>::type
15591 PhysicalDevice::getDisplayModeProperties2KHR(
15592 DisplayKHR display, DisplayModeProperties2KHRAllocator const & displayModeProperties2KHRAllocator, Dispatch const & d ) const
15593 {
15594 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15595 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15596 VULKAN_HPP_ASSERT( d.vkGetDisplayModeProperties2KHR && "Function <vkGetDisplayModeProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15597 # endif
15598
15599 std::vector<DisplayModeProperties2KHR, DisplayModeProperties2KHRAllocator> properties( displayModeProperties2KHRAllocator );
15600 uint32_t propertyCount;
15601 Result result;
15602 do
15603 {
15604 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR( m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, nullptr ) );
15605 if ( ( result == Result::eSuccess ) && propertyCount )
15606 {
15607 properties.resize( propertyCount );
15608 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR(
15609 m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) ) );
15610 }
15611 } while ( result == Result::eIncomplete );
15612 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModeProperties2KHR" );
15613 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15614 if ( propertyCount < properties.size() )
15615 {
15616 properties.resize( propertyCount );
15617 }
15618 return detail::createResultValueType( result, std::move( properties ) );
15619 }
15620
15621 // wrapper function for command vkGetDisplayModeProperties2KHR, see
15622 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
15623 template <typename StructureChain,
15624 typename StructureChainAllocator,
15625 typename Dispatch,
15626 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
15627 typename std::enable_if<IS_DISPATCHED( vkGetDisplayModeProperties2KHR ), bool>::type>
15628 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain, StructureChainAllocator>>::type
15629 PhysicalDevice::getDisplayModeProperties2KHR( DisplayKHR display, Dispatch const & d ) const
15630 {
15631 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15632 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15633 VULKAN_HPP_ASSERT( d.vkGetDisplayModeProperties2KHR && "Function <vkGetDisplayModeProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15634 # endif
15635
15636 std::vector<StructureChain, StructureChainAllocator> structureChains;
15637 std::vector<DisplayModeProperties2KHR> properties;
15638 uint32_t propertyCount;
15639 Result result;
15640 do
15641 {
15642 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR( m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, nullptr ) );
15643 if ( ( result == Result::eSuccess ) && propertyCount )
15644 {
15645 structureChains.resize( propertyCount );
15646 properties.resize( propertyCount );
15647 for ( uint32_t i = 0; i < propertyCount; i++ )
15648 {
15649 properties[i].pNext = structureChains[i].template get<DisplayModeProperties2KHR>().pNext;
15650 }
15651 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR(
15652 m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) ) );
15653 }
15654 } while ( result == Result::eIncomplete );
15655 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModeProperties2KHR" );
15656 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15657 if ( propertyCount < properties.size() )
15658 {
15659 structureChains.resize( propertyCount );
15660 }
15661 for ( uint32_t i = 0; i < propertyCount; i++ )
15662 {
15663 structureChains[i].template get<DisplayModeProperties2KHR>() = properties[i];
15664 }
15665 return detail::createResultValueType( result, std::move( structureChains ) );
15666 }
15667
15668 // wrapper function for command vkGetDisplayModeProperties2KHR, see
15669 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
15670 template <typename StructureChain,
15671 typename StructureChainAllocator,
15672 typename Dispatch,
15673 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
15674 typename std::enable_if<IS_DISPATCHED( vkGetDisplayModeProperties2KHR ), bool>::type>
15675 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain, StructureChainAllocator>>::type
15676 PhysicalDevice::getDisplayModeProperties2KHR( DisplayKHR display, StructureChainAllocator const & structureChainAllocator, Dispatch const & d ) const
15677 {
15678 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15679 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15680 VULKAN_HPP_ASSERT( d.vkGetDisplayModeProperties2KHR && "Function <vkGetDisplayModeProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15681 # endif
15682
15683 std::vector<StructureChain, StructureChainAllocator> structureChains( structureChainAllocator );
15684 std::vector<DisplayModeProperties2KHR> properties;
15685 uint32_t propertyCount;
15686 Result result;
15687 do
15688 {
15689 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR( m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, nullptr ) );
15690 if ( ( result == Result::eSuccess ) && propertyCount )
15691 {
15692 structureChains.resize( propertyCount );
15693 properties.resize( propertyCount );
15694 for ( uint32_t i = 0; i < propertyCount; i++ )
15695 {
15696 properties[i].pNext = structureChains[i].template get<DisplayModeProperties2KHR>().pNext;
15697 }
15698 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR(
15699 m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) ) );
15700 }
15701 } while ( result == Result::eIncomplete );
15702 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModeProperties2KHR" );
15703 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15704 if ( propertyCount < properties.size() )
15705 {
15706 structureChains.resize( propertyCount );
15707 }
15708 for ( uint32_t i = 0; i < propertyCount; i++ )
15709 {
15710 structureChains[i].template get<DisplayModeProperties2KHR>() = properties[i];
15711 }
15712 return detail::createResultValueType( result, std::move( structureChains ) );
15713 }
15714 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15715
15716 // wrapper function for command vkGetDisplayPlaneCapabilities2KHR, see
15717 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneCapabilities2KHR.html
15718 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneCapabilities2KHR ), bool>::type>
15719 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayPlaneCapabilities2KHR(
15720 DisplayPlaneInfo2KHR const * pDisplayPlaneInfo, DisplayPlaneCapabilities2KHR * pCapabilities, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15721 {
15722 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15723 return static_cast<Result>( d.vkGetDisplayPlaneCapabilities2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15724 reinterpret_cast<VkDisplayPlaneInfo2KHR const *>( pDisplayPlaneInfo ),
15725 reinterpret_cast<VkDisplayPlaneCapabilities2KHR *>( pCapabilities ) ) );
15726 }
15727
15728 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15729 // wrapper function for command vkGetDisplayPlaneCapabilities2KHR, see
15730 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneCapabilities2KHR.html
15731 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneCapabilities2KHR ), bool>::type>
15732 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayPlaneCapabilities2KHR>::type PhysicalDevice::getDisplayPlaneCapabilities2KHR(
15733 DisplayPlaneInfo2KHR const & displayPlaneInfo, Dispatch const & d ) const
15734 {
15735 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15736 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15737 VULKAN_HPP_ASSERT( d.vkGetDisplayPlaneCapabilities2KHR && "Function <vkGetDisplayPlaneCapabilities2KHR> requires <VK_KHR_get_display_properties2>" );
15738 # endif
15739
15740 DisplayPlaneCapabilities2KHR capabilities;
15741 Result result = static_cast<Result>( d.vkGetDisplayPlaneCapabilities2KHR( m_physicalDevice,
15742 reinterpret_cast<VkDisplayPlaneInfo2KHR const *>( &displayPlaneInfo ),
15743 reinterpret_cast<VkDisplayPlaneCapabilities2KHR *>( &capabilities ) ) );
15744 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneCapabilities2KHR" );
15745
15746 return detail::createResultValueType( result, std::move( capabilities ) );
15747 }
15748 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15749
15750 #if defined( VK_USE_PLATFORM_IOS_MVK )
15751 //=== VK_MVK_ios_surface ===
15752
15753 // wrapper function for command vkCreateIOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIOSSurfaceMVK.html
15754 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIOSSurfaceMVK ), bool>::type>
15755 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createIOSSurfaceMVK(
15756 IOSSurfaceCreateInfoMVK const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15757 {
15758 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15759 return static_cast<Result>( d.vkCreateIOSSurfaceMVK( static_cast<VkInstance>( m_instance ),
15760 reinterpret_cast<VkIOSSurfaceCreateInfoMVK const *>( pCreateInfo ),
15761 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
15762 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
15763 }
15764
15765 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15766 // wrapper function for command vkCreateIOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIOSSurfaceMVK.html
15767 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIOSSurfaceMVK ), bool>::type>
15768 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createIOSSurfaceMVK(
15769 IOSSurfaceCreateInfoMVK const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
15770 {
15771 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15772 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15773 VULKAN_HPP_ASSERT( d.vkCreateIOSSurfaceMVK && "Function <vkCreateIOSSurfaceMVK> requires <VK_MVK_ios_surface>" );
15774 # endif
15775
15776 SurfaceKHR surface;
15777 Result result = static_cast<Result>( d.vkCreateIOSSurfaceMVK( m_instance,
15778 reinterpret_cast<VkIOSSurfaceCreateInfoMVK const *>( &createInfo ),
15779 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
15780 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
15781 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createIOSSurfaceMVK" );
15782
15783 return detail::createResultValueType( result, std::move( surface ) );
15784 }
15785
15786 # ifndef VULKAN_HPP_NO_SMART_HANDLE
15787 // wrapper function for command vkCreateIOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIOSSurfaceMVK.html
15788 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIOSSurfaceMVK ), bool>::type>
15789 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createIOSSurfaceMVKUnique(
15790 IOSSurfaceCreateInfoMVK const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
15791 {
15792 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15793 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15794 VULKAN_HPP_ASSERT( d.vkCreateIOSSurfaceMVK && "Function <vkCreateIOSSurfaceMVK> requires <VK_MVK_ios_surface>" );
15795 # endif
15796
15797 SurfaceKHR surface;
15798 Result result = static_cast<Result>( d.vkCreateIOSSurfaceMVK( m_instance,
15799 reinterpret_cast<VkIOSSurfaceCreateInfoMVK const *>( &createInfo ),
15800 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
15801 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
15802 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createIOSSurfaceMVKUnique" );
15803
15804 return detail::createResultValueType( result,
15805 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
15806 }
15807 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
15808 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15809 #endif /*VK_USE_PLATFORM_IOS_MVK*/
15810
15811 #if defined( VK_USE_PLATFORM_MACOS_MVK )
15812 //=== VK_MVK_macos_surface ===
15813
15814 // wrapper function for command vkCreateMacOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMacOSSurfaceMVK.html
15815 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMacOSSurfaceMVK ), bool>::type>
15816 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createMacOSSurfaceMVK(
15817 MacOSSurfaceCreateInfoMVK const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15818 {
15819 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15820 return static_cast<Result>( d.vkCreateMacOSSurfaceMVK( static_cast<VkInstance>( m_instance ),
15821 reinterpret_cast<VkMacOSSurfaceCreateInfoMVK const *>( pCreateInfo ),
15822 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
15823 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
15824 }
15825
15826 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15827 // wrapper function for command vkCreateMacOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMacOSSurfaceMVK.html
15828 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMacOSSurfaceMVK ), bool>::type>
15829 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createMacOSSurfaceMVK(
15830 MacOSSurfaceCreateInfoMVK const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
15831 {
15832 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15833 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15834 VULKAN_HPP_ASSERT( d.vkCreateMacOSSurfaceMVK && "Function <vkCreateMacOSSurfaceMVK> requires <VK_MVK_macos_surface>" );
15835 # endif
15836
15837 SurfaceKHR surface;
15838 Result result = static_cast<Result>( d.vkCreateMacOSSurfaceMVK( m_instance,
15839 reinterpret_cast<VkMacOSSurfaceCreateInfoMVK const *>( &createInfo ),
15840 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
15841 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
15842 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createMacOSSurfaceMVK" );
15843
15844 return detail::createResultValueType( result, std::move( surface ) );
15845 }
15846
15847 # ifndef VULKAN_HPP_NO_SMART_HANDLE
15848 // wrapper function for command vkCreateMacOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMacOSSurfaceMVK.html
15849 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMacOSSurfaceMVK ), bool>::type>
15850 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createMacOSSurfaceMVKUnique(
15851 MacOSSurfaceCreateInfoMVK const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
15852 {
15853 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15854 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15855 VULKAN_HPP_ASSERT( d.vkCreateMacOSSurfaceMVK && "Function <vkCreateMacOSSurfaceMVK> requires <VK_MVK_macos_surface>" );
15856 # endif
15857
15858 SurfaceKHR surface;
15859 Result result = static_cast<Result>( d.vkCreateMacOSSurfaceMVK( m_instance,
15860 reinterpret_cast<VkMacOSSurfaceCreateInfoMVK const *>( &createInfo ),
15861 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
15862 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
15863 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createMacOSSurfaceMVKUnique" );
15864
15865 return detail::createResultValueType( result,
15866 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
15867 }
15868 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
15869 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15870 #endif /*VK_USE_PLATFORM_MACOS_MVK*/
15871
15872 //=== VK_EXT_debug_utils ===
15873
15874 // wrapper function for command vkSetDebugUtilsObjectNameEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectNameEXT.html
15875 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDebugUtilsObjectNameEXT ), bool>::type>
15876 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setDebugUtilsObjectNameEXT( DebugUtilsObjectNameInfoEXT const * pNameInfo, Dispatch const & d )
15877 const VULKAN_HPP_NOEXCEPT
15878 {
15879 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15880 return static_cast<Result>(
15881 d.vkSetDebugUtilsObjectNameEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkDebugUtilsObjectNameInfoEXT const *>( pNameInfo ) ) );
15882 }
15883
15884 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15885 // wrapper function for command vkSetDebugUtilsObjectNameEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectNameEXT.html
15886 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDebugUtilsObjectNameEXT ), bool>::type>
15887 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setDebugUtilsObjectNameEXT(
15888 DebugUtilsObjectNameInfoEXT const & nameInfo, Dispatch const & d ) const
15889 {
15890 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15891 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15892 VULKAN_HPP_ASSERT( d.vkSetDebugUtilsObjectNameEXT && "Function <vkSetDebugUtilsObjectNameEXT> requires <VK_EXT_debug_utils>" );
15893 # endif
15894
15895 Result result = static_cast<Result>( d.vkSetDebugUtilsObjectNameEXT( m_device, reinterpret_cast<VkDebugUtilsObjectNameInfoEXT const *>( &nameInfo ) ) );
15896 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setDebugUtilsObjectNameEXT" );
15897
15898 return detail::createResultValueType( result );
15899 }
15900 // wrapper function for command vkSetDebugUtilsObjectNameEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectNameEXT.html
15901 template <typename HandleType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDebugUtilsObjectNameEXT ), bool>::type>
15902 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setDebugUtilsObjectNameEXT(
15903 HandleType const & handle, std::string const & name, Dispatch const & d ) const
15904 {
15905 VULKAN_HPP_STATIC_ASSERT( VULKAN_HPP_NAMESPACE::isVulkanHandleType<HandleType>::value, "HandleType must be a Vulkan handle type" );
15906 // It might be, that neither constructors, nor setters, nor designated initializers are available... need to explicitly set member by member
15907 VULKAN_HPP_NAMESPACE::DebugUtilsObjectNameInfoEXT nameInfo;
15908 nameInfo.objectType = handle.objectType;
15909 # if ( VK_USE_64_BIT_PTR_DEFINES == 1 )
15910 nameInfo.objectHandle = reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) );
15911 # else
15912 nameInfo.objectHandle = static_cast<typename HandleType::CType>( handle );
15913 # endif
15914 nameInfo.pObjectName = name.c_str();
15915 return setDebugUtilsObjectNameEXT( nameInfo, d );
15916 }
15917 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15918
15919 // wrapper function for command vkSetDebugUtilsObjectTagEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectTagEXT.html
15920 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDebugUtilsObjectTagEXT ), bool>::type>
15921 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setDebugUtilsObjectTagEXT( DebugUtilsObjectTagInfoEXT const * pTagInfo, Dispatch const & d )
15922 const VULKAN_HPP_NOEXCEPT
15923 {
15924 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15925 return static_cast<Result>(
15926 d.vkSetDebugUtilsObjectTagEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkDebugUtilsObjectTagInfoEXT const *>( pTagInfo ) ) );
15927 }
15928
15929 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15930 // wrapper function for command vkSetDebugUtilsObjectTagEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectTagEXT.html
15931 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDebugUtilsObjectTagEXT ), bool>::type>
15932 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setDebugUtilsObjectTagEXT(
15933 DebugUtilsObjectTagInfoEXT const & tagInfo, Dispatch const & d ) const
15934 {
15935 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15936 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15937 VULKAN_HPP_ASSERT( d.vkSetDebugUtilsObjectTagEXT && "Function <vkSetDebugUtilsObjectTagEXT> requires <VK_EXT_debug_utils>" );
15938 # endif
15939
15940 Result result = static_cast<Result>( d.vkSetDebugUtilsObjectTagEXT( m_device, reinterpret_cast<VkDebugUtilsObjectTagInfoEXT const *>( &tagInfo ) ) );
15941 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setDebugUtilsObjectTagEXT" );
15942
15943 return detail::createResultValueType( result );
15944 }
15945 // wrapper function for command vkSetDebugUtilsObjectTagEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectTagEXT.html
15946 template <typename HandleType, typename TagType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDebugUtilsObjectNameEXT ), bool>::type>
15947 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setDebugUtilsObjectTagEXT(
15948 HandleType const & handle, uint64_t name, TagType const & tag, Dispatch const & d ) const
15949 {
15950 VULKAN_HPP_STATIC_ASSERT( VULKAN_HPP_NAMESPACE::isVulkanHandleType<HandleType>::value, "HandleType must be a Vulkan handle type" );
15951 // It might be, that neither constructors, nor setters, nor designated initializers are available... need to explicitly set member by member
15952 VULKAN_HPP_NAMESPACE::DebugUtilsObjectTagInfoEXT tagInfo;
15953 tagInfo.objectType = handle.objectType;
15954 # if ( VK_USE_64_BIT_PTR_DEFINES == 1 )
15955 tagInfo.objectHandle = reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) );
15956 # else
15957 tagInfo.objectHandle = static_cast<typename HandleType::CType>( handle );
15958 # endif
15959 tagInfo.tagName = name;
15960 tagInfo.tagSize = sizeof( TagType );
15961 tagInfo.pTag = &tag;
15962 return setDebugUtilsObjectTagEXT( tagInfo, d );
15963 }
15964 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15965
15966 // wrapper function for command vkQueueBeginDebugUtilsLabelEXT, see
15967 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueBeginDebugUtilsLabelEXT.html
15968 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueBeginDebugUtilsLabelEXT ), bool>::type>
15969 VULKAN_HPP_INLINE void Queue::beginDebugUtilsLabelEXT( DebugUtilsLabelEXT const * pLabelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15970 {
15971 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15972 d.vkQueueBeginDebugUtilsLabelEXT( static_cast<VkQueue>( m_queue ), reinterpret_cast<VkDebugUtilsLabelEXT const *>( pLabelInfo ) );
15973 }
15974
15975 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15976 // wrapper function for command vkQueueBeginDebugUtilsLabelEXT, see
15977 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueBeginDebugUtilsLabelEXT.html
15978 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueBeginDebugUtilsLabelEXT ), bool>::type>
15979 VULKAN_HPP_INLINE void Queue::beginDebugUtilsLabelEXT( DebugUtilsLabelEXT const & labelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15980 {
15981 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15982 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15983 VULKAN_HPP_ASSERT( d.vkQueueBeginDebugUtilsLabelEXT && "Function <vkQueueBeginDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
15984 # endif
15985
15986 d.vkQueueBeginDebugUtilsLabelEXT( m_queue, reinterpret_cast<VkDebugUtilsLabelEXT const *>( &labelInfo ) );
15987 }
15988 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15989
15990 // wrapper function for command vkQueueEndDebugUtilsLabelEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueEndDebugUtilsLabelEXT.html
15991 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueEndDebugUtilsLabelEXT ), bool>::type>
15992 VULKAN_HPP_INLINE void Queue::endDebugUtilsLabelEXT( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15993 {
15994 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15995 d.vkQueueEndDebugUtilsLabelEXT( static_cast<VkQueue>( m_queue ) );
15996 }
15997
15998 // wrapper function for command vkQueueInsertDebugUtilsLabelEXT, see
15999 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueInsertDebugUtilsLabelEXT.html
16000 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueInsertDebugUtilsLabelEXT ), bool>::type>
16001 VULKAN_HPP_INLINE void Queue::insertDebugUtilsLabelEXT( DebugUtilsLabelEXT const * pLabelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16002 {
16003 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16004 d.vkQueueInsertDebugUtilsLabelEXT( static_cast<VkQueue>( m_queue ), reinterpret_cast<VkDebugUtilsLabelEXT const *>( pLabelInfo ) );
16005 }
16006
16007 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16008 // wrapper function for command vkQueueInsertDebugUtilsLabelEXT, see
16009 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueInsertDebugUtilsLabelEXT.html
16010 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueInsertDebugUtilsLabelEXT ), bool>::type>
16011 VULKAN_HPP_INLINE void Queue::insertDebugUtilsLabelEXT( DebugUtilsLabelEXT const & labelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16012 {
16013 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16014 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16015 VULKAN_HPP_ASSERT( d.vkQueueInsertDebugUtilsLabelEXT && "Function <vkQueueInsertDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
16016 # endif
16017
16018 d.vkQueueInsertDebugUtilsLabelEXT( m_queue, reinterpret_cast<VkDebugUtilsLabelEXT const *>( &labelInfo ) );
16019 }
16020 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16021
16022 // wrapper function for command vkCmdBeginDebugUtilsLabelEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginDebugUtilsLabelEXT.html
16023 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginDebugUtilsLabelEXT ), bool>::type>
16024 VULKAN_HPP_INLINE void CommandBuffer::beginDebugUtilsLabelEXT( DebugUtilsLabelEXT const * pLabelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16025 {
16026 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16027 d.vkCmdBeginDebugUtilsLabelEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDebugUtilsLabelEXT const *>( pLabelInfo ) );
16028 }
16029
16030 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16031 // wrapper function for command vkCmdBeginDebugUtilsLabelEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginDebugUtilsLabelEXT.html
16032 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginDebugUtilsLabelEXT ), bool>::type>
16033 VULKAN_HPP_INLINE void CommandBuffer::beginDebugUtilsLabelEXT( DebugUtilsLabelEXT const & labelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16034 {
16035 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16036 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16037 VULKAN_HPP_ASSERT( d.vkCmdBeginDebugUtilsLabelEXT && "Function <vkCmdBeginDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
16038 # endif
16039
16040 d.vkCmdBeginDebugUtilsLabelEXT( m_commandBuffer, reinterpret_cast<VkDebugUtilsLabelEXT const *>( &labelInfo ) );
16041 }
16042 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16043
16044 // wrapper function for command vkCmdEndDebugUtilsLabelEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndDebugUtilsLabelEXT.html
16045 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndDebugUtilsLabelEXT ), bool>::type>
16046 VULKAN_HPP_INLINE void CommandBuffer::endDebugUtilsLabelEXT( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16047 {
16048 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16049 d.vkCmdEndDebugUtilsLabelEXT( static_cast<VkCommandBuffer>( m_commandBuffer ) );
16050 }
16051
16052 // wrapper function for command vkCmdInsertDebugUtilsLabelEXT, see
16053 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdInsertDebugUtilsLabelEXT.html
16054 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdInsertDebugUtilsLabelEXT ), bool>::type>
16055 VULKAN_HPP_INLINE void CommandBuffer::insertDebugUtilsLabelEXT( DebugUtilsLabelEXT const * pLabelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16056 {
16057 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16058 d.vkCmdInsertDebugUtilsLabelEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDebugUtilsLabelEXT const *>( pLabelInfo ) );
16059 }
16060
16061 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16062 // wrapper function for command vkCmdInsertDebugUtilsLabelEXT, see
16063 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdInsertDebugUtilsLabelEXT.html
16064 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdInsertDebugUtilsLabelEXT ), bool>::type>
16065 VULKAN_HPP_INLINE void CommandBuffer::insertDebugUtilsLabelEXT( DebugUtilsLabelEXT const & labelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16066 {
16067 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16068 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16069 VULKAN_HPP_ASSERT( d.vkCmdInsertDebugUtilsLabelEXT && "Function <vkCmdInsertDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
16070 # endif
16071
16072 d.vkCmdInsertDebugUtilsLabelEXT( m_commandBuffer, reinterpret_cast<VkDebugUtilsLabelEXT const *>( &labelInfo ) );
16073 }
16074 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16075
16076 // wrapper function for command vkCreateDebugUtilsMessengerEXT, see
16077 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugUtilsMessengerEXT.html
16078 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDebugUtilsMessengerEXT ), bool>::type>
16079 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createDebugUtilsMessengerEXT(
16080 DebugUtilsMessengerCreateInfoEXT const * pCreateInfo, AllocationCallbacks const * pAllocator, DebugUtilsMessengerEXT * pMessenger, Dispatch const & d )
16081 const VULKAN_HPP_NOEXCEPT
16082 {
16083 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16084 return static_cast<Result>( d.vkCreateDebugUtilsMessengerEXT( static_cast<VkInstance>( m_instance ),
16085 reinterpret_cast<VkDebugUtilsMessengerCreateInfoEXT const *>( pCreateInfo ),
16086 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
16087 reinterpret_cast<VkDebugUtilsMessengerEXT *>( pMessenger ) ) );
16088 }
16089
16090 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16091 // wrapper function for command vkCreateDebugUtilsMessengerEXT, see
16092 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugUtilsMessengerEXT.html
16093 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDebugUtilsMessengerEXT ), bool>::type>
16094 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DebugUtilsMessengerEXT>::type Instance::createDebugUtilsMessengerEXT(
16095 DebugUtilsMessengerCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
16096 {
16097 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16098 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16099 VULKAN_HPP_ASSERT( d.vkCreateDebugUtilsMessengerEXT && "Function <vkCreateDebugUtilsMessengerEXT> requires <VK_EXT_debug_utils>" );
16100 # endif
16101
16102 DebugUtilsMessengerEXT messenger;
16103 Result result = static_cast<Result>( d.vkCreateDebugUtilsMessengerEXT( m_instance,
16104 reinterpret_cast<VkDebugUtilsMessengerCreateInfoEXT const *>( &createInfo ),
16105 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16106 reinterpret_cast<VkDebugUtilsMessengerEXT *>( &messenger ) ) );
16107 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDebugUtilsMessengerEXT" );
16108
16109 return detail::createResultValueType( result, std::move( messenger ) );
16110 }
16111
16112 # ifndef VULKAN_HPP_NO_SMART_HANDLE
16113 // wrapper function for command vkCreateDebugUtilsMessengerEXT, see
16114 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugUtilsMessengerEXT.html
16115 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDebugUtilsMessengerEXT ), bool>::type>
16116 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DebugUtilsMessengerEXT, Dispatch>>::type
16117 Instance::createDebugUtilsMessengerEXTUnique(
16118 DebugUtilsMessengerCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
16119 {
16120 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16121 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16122 VULKAN_HPP_ASSERT( d.vkCreateDebugUtilsMessengerEXT && "Function <vkCreateDebugUtilsMessengerEXT> requires <VK_EXT_debug_utils>" );
16123 # endif
16124
16125 DebugUtilsMessengerEXT messenger;
16126 Result result = static_cast<Result>( d.vkCreateDebugUtilsMessengerEXT( m_instance,
16127 reinterpret_cast<VkDebugUtilsMessengerCreateInfoEXT const *>( &createInfo ),
16128 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16129 reinterpret_cast<VkDebugUtilsMessengerEXT *>( &messenger ) ) );
16130 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDebugUtilsMessengerEXTUnique" );
16131
16132 return detail::createResultValueType(
16133 result, UniqueHandle<DebugUtilsMessengerEXT, Dispatch>( messenger, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
16134 }
16135 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
16136 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16137
16138 // wrapper function for command vkDestroyDebugUtilsMessengerEXT, see
16139 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugUtilsMessengerEXT.html
16140 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugUtilsMessengerEXT ), bool>::type>
16141 VULKAN_HPP_INLINE void Instance::destroyDebugUtilsMessengerEXT( DebugUtilsMessengerEXT messenger, AllocationCallbacks const * pAllocator, Dispatch const & d )
16142 const VULKAN_HPP_NOEXCEPT
16143 {
16144 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16145 d.vkDestroyDebugUtilsMessengerEXT( static_cast<VkInstance>( m_instance ),
16146 static_cast<VkDebugUtilsMessengerEXT>( messenger ),
16147 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
16148 }
16149
16150 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16151 // wrapper function for command vkDestroyDebugUtilsMessengerEXT, see
16152 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugUtilsMessengerEXT.html
16153 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugUtilsMessengerEXT ), bool>::type>
16154 VULKAN_HPP_INLINE void Instance::destroyDebugUtilsMessengerEXT(
16155 DebugUtilsMessengerEXT messenger, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16156 {
16157 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16158 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16159 VULKAN_HPP_ASSERT( d.vkDestroyDebugUtilsMessengerEXT && "Function <vkDestroyDebugUtilsMessengerEXT> requires <VK_EXT_debug_utils>" );
16160 # endif
16161
16162 d.vkDestroyDebugUtilsMessengerEXT(
16163 m_instance, static_cast<VkDebugUtilsMessengerEXT>( messenger ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
16164 }
16165 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16166
16167 // wrapper function for command vkDestroyDebugUtilsMessengerEXT, see
16168 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugUtilsMessengerEXT.html
16169 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugUtilsMessengerEXT ), bool>::type>
16170 VULKAN_HPP_INLINE void Instance::destroy( DebugUtilsMessengerEXT messenger, AllocationCallbacks const * pAllocator, Dispatch const & d )
16171 const VULKAN_HPP_NOEXCEPT
16172 {
16173 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16174 d.vkDestroyDebugUtilsMessengerEXT( static_cast<VkInstance>( m_instance ),
16175 static_cast<VkDebugUtilsMessengerEXT>( messenger ),
16176 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
16177 }
16178
16179 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16180 // wrapper function for command vkDestroyDebugUtilsMessengerEXT, see
16181 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugUtilsMessengerEXT.html
16182 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugUtilsMessengerEXT ), bool>::type>
16183 VULKAN_HPP_INLINE void Instance::destroy( DebugUtilsMessengerEXT messenger, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
16184 const VULKAN_HPP_NOEXCEPT
16185 {
16186 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16187 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16188 VULKAN_HPP_ASSERT( d.vkDestroyDebugUtilsMessengerEXT && "Function <vkDestroyDebugUtilsMessengerEXT> requires <VK_EXT_debug_utils>" );
16189 # endif
16190
16191 d.vkDestroyDebugUtilsMessengerEXT(
16192 m_instance, static_cast<VkDebugUtilsMessengerEXT>( messenger ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
16193 }
16194 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16195
16196 // wrapper function for command vkSubmitDebugUtilsMessageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSubmitDebugUtilsMessageEXT.html
16197 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSubmitDebugUtilsMessageEXT ), bool>::type>
16198 VULKAN_HPP_INLINE void Instance::submitDebugUtilsMessageEXT( DebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
16199 DebugUtilsMessageTypeFlagsEXT messageTypes,
16200 DebugUtilsMessengerCallbackDataEXT const * pCallbackData,
16201 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16202 {
16203 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16204 d.vkSubmitDebugUtilsMessageEXT( static_cast<VkInstance>( m_instance ),
16205 static_cast<VkDebugUtilsMessageSeverityFlagBitsEXT>( messageSeverity ),
16206 static_cast<VkDebugUtilsMessageTypeFlagsEXT>( messageTypes ),
16207 reinterpret_cast<VkDebugUtilsMessengerCallbackDataEXT const *>( pCallbackData ) );
16208 }
16209
16210 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16211 // wrapper function for command vkSubmitDebugUtilsMessageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSubmitDebugUtilsMessageEXT.html
16212 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSubmitDebugUtilsMessageEXT ), bool>::type>
16213 VULKAN_HPP_INLINE void Instance::submitDebugUtilsMessageEXT( DebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
16214 DebugUtilsMessageTypeFlagsEXT messageTypes,
16215 DebugUtilsMessengerCallbackDataEXT const & callbackData,
16216 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16217 {
16218 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16219 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16220 VULKAN_HPP_ASSERT( d.vkSubmitDebugUtilsMessageEXT && "Function <vkSubmitDebugUtilsMessageEXT> requires <VK_EXT_debug_utils>" );
16221 # endif
16222
16223 d.vkSubmitDebugUtilsMessageEXT( m_instance,
16224 static_cast<VkDebugUtilsMessageSeverityFlagBitsEXT>( messageSeverity ),
16225 static_cast<VkDebugUtilsMessageTypeFlagsEXT>( messageTypes ),
16226 reinterpret_cast<VkDebugUtilsMessengerCallbackDataEXT const *>( &callbackData ) );
16227 }
16228 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16229
16230 #if defined( VK_USE_PLATFORM_ANDROID_KHR )
16231 //=== VK_ANDROID_external_memory_android_hardware_buffer ===
16232
16233 // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see
16234 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html
16235 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAndroidHardwareBufferPropertiesANDROID ), bool>::type>
16236 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getAndroidHardwareBufferPropertiesANDROID(
16237 struct AHardwareBuffer const * buffer, AndroidHardwareBufferPropertiesANDROID * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16238 {
16239 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16240 return static_cast<Result>( d.vkGetAndroidHardwareBufferPropertiesANDROID(
16241 static_cast<VkDevice>( m_device ), buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID *>( pProperties ) ) );
16242 }
16243
16244 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16245 // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see
16246 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html
16247 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAndroidHardwareBufferPropertiesANDROID ), bool>::type>
16248 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<AndroidHardwareBufferPropertiesANDROID>::type
16249 Device::getAndroidHardwareBufferPropertiesANDROID( struct AHardwareBuffer const & buffer, Dispatch const & d ) const
16250 {
16251 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16252 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16253 VULKAN_HPP_ASSERT( d.vkGetAndroidHardwareBufferPropertiesANDROID &&
16254 "Function <vkGetAndroidHardwareBufferPropertiesANDROID> requires <VK_ANDROID_external_memory_android_hardware_buffer>" );
16255 # endif
16256
16257 AndroidHardwareBufferPropertiesANDROID properties;
16258 Result result = static_cast<Result>(
16259 d.vkGetAndroidHardwareBufferPropertiesANDROID( m_device, &buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID *>( &properties ) ) );
16260 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAndroidHardwareBufferPropertiesANDROID" );
16261
16262 return detail::createResultValueType( result, std::move( properties ) );
16263 }
16264
16265 // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see
16266 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html
16267 template <typename X,
16268 typename Y,
16269 typename... Z,
16270 typename Dispatch,
16271 typename std::enable_if<IS_DISPATCHED( vkGetAndroidHardwareBufferPropertiesANDROID ), bool>::type>
16272 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type Device::getAndroidHardwareBufferPropertiesANDROID(
16273 struct AHardwareBuffer const & buffer, Dispatch const & d ) const
16274 {
16275 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16276 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16277 VULKAN_HPP_ASSERT( d.vkGetAndroidHardwareBufferPropertiesANDROID &&
16278 "Function <vkGetAndroidHardwareBufferPropertiesANDROID> requires <VK_ANDROID_external_memory_android_hardware_buffer>" );
16279 # endif
16280
16281 StructureChain<X, Y, Z...> structureChain;
16282 AndroidHardwareBufferPropertiesANDROID & properties = structureChain.template get<AndroidHardwareBufferPropertiesANDROID>();
16283 Result result = static_cast<Result>(
16284 d.vkGetAndroidHardwareBufferPropertiesANDROID( m_device, &buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID *>( &properties ) ) );
16285 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAndroidHardwareBufferPropertiesANDROID" );
16286
16287 return detail::createResultValueType( result, std::move( structureChain ) );
16288 }
16289 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16290
16291 // wrapper function for command vkGetMemoryAndroidHardwareBufferANDROID, see
16292 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryAndroidHardwareBufferANDROID.html
16293 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryAndroidHardwareBufferANDROID ), bool>::type>
16294 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryAndroidHardwareBufferANDROID(
16295 MemoryGetAndroidHardwareBufferInfoANDROID const * pInfo, struct AHardwareBuffer ** pBuffer, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16296 {
16297 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16298 return static_cast<Result>( d.vkGetMemoryAndroidHardwareBufferANDROID(
16299 static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryGetAndroidHardwareBufferInfoANDROID const *>( pInfo ), pBuffer ) );
16300 }
16301
16302 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16303 // wrapper function for command vkGetMemoryAndroidHardwareBufferANDROID, see
16304 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryAndroidHardwareBufferANDROID.html
16305 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryAndroidHardwareBufferANDROID ), bool>::type>
16306 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<struct AHardwareBuffer *>::type Device::getMemoryAndroidHardwareBufferANDROID(
16307 MemoryGetAndroidHardwareBufferInfoANDROID const & info, Dispatch const & d ) const
16308 {
16309 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16310 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16311 VULKAN_HPP_ASSERT( d.vkGetMemoryAndroidHardwareBufferANDROID &&
16312 "Function <vkGetMemoryAndroidHardwareBufferANDROID> requires <VK_ANDROID_external_memory_android_hardware_buffer>" );
16313 # endif
16314
16315 struct AHardwareBuffer * buffer;
16316 Result result = static_cast<Result>(
16317 d.vkGetMemoryAndroidHardwareBufferANDROID( m_device, reinterpret_cast<VkMemoryGetAndroidHardwareBufferInfoANDROID const *>( &info ), &buffer ) );
16318 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryAndroidHardwareBufferANDROID" );
16319
16320 return detail::createResultValueType( result, std::move( buffer ) );
16321 }
16322 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16323 #endif /*VK_USE_PLATFORM_ANDROID_KHR*/
16324
16325 #if defined( VK_ENABLE_BETA_EXTENSIONS )
16326 //=== VK_AMDX_shader_enqueue ===
16327
16328 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16329 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16330 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16331 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createExecutionGraphPipelinesAMDX( PipelineCache pipelineCache,
16332 uint32_t createInfoCount,
16333 ExecutionGraphPipelineCreateInfoAMDX const * pCreateInfos,
16334 AllocationCallbacks const * pAllocator,
16335 Pipeline * pPipelines,
16336 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16337 {
16338 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16339 return static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( static_cast<VkDevice>( m_device ),
16340 static_cast<VkPipelineCache>( pipelineCache ),
16341 createInfoCount,
16342 reinterpret_cast<VkExecutionGraphPipelineCreateInfoAMDX const *>( pCreateInfos ),
16343 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
16344 reinterpret_cast<VkPipeline *>( pPipelines ) ) );
16345 }
16346
16347 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16348 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16349 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16350 template <typename PipelineAllocator,
16351 typename Dispatch,
16352 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
16353 typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16354 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>> Device::createExecutionGraphPipelinesAMDX(
16355 PipelineCache pipelineCache,
16356 ArrayProxy<ExecutionGraphPipelineCreateInfoAMDX const> const & createInfos,
16357 Optional<AllocationCallbacks const> allocator,
16358 Dispatch const & d ) const
16359 {
16360 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16361 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16362 VULKAN_HPP_ASSERT( d.vkCreateExecutionGraphPipelinesAMDX && "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
16363 # endif
16364
16365 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size() );
16366 Result result =
16367 static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( m_device,
16368 static_cast<VkPipelineCache>( pipelineCache ),
16369 createInfos.size(),
16370 reinterpret_cast<VkExecutionGraphPipelineCreateInfoAMDX const *>( createInfos.data() ),
16371 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16372 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
16373 detail::resultCheck( result,
16374 VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelinesAMDX",
16375 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
16376 m_device,
16377 pipelines,
16378 allocator.get(),
16379 d );
16380
16381 return { result, pipelines };
16382 }
16383
16384 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16385 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16386 template <typename PipelineAllocator,
16387 typename Dispatch,
16388 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
16389 typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16390 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>> Device::createExecutionGraphPipelinesAMDX(
16391 PipelineCache pipelineCache,
16392 ArrayProxy<ExecutionGraphPipelineCreateInfoAMDX const> const & createInfos,
16393 Optional<AllocationCallbacks const> allocator,
16394 PipelineAllocator const & pipelineAllocator,
16395 Dispatch const & d ) const
16396 {
16397 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16398 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16399 VULKAN_HPP_ASSERT( d.vkCreateExecutionGraphPipelinesAMDX && "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
16400 # endif
16401
16402 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size(), {}, pipelineAllocator );
16403 Result result =
16404 static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( m_device,
16405 static_cast<VkPipelineCache>( pipelineCache ),
16406 createInfos.size(),
16407 reinterpret_cast<VkExecutionGraphPipelineCreateInfoAMDX const *>( createInfos.data() ),
16408 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16409 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
16410 detail::resultCheck( result,
16411 VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelinesAMDX",
16412 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
16413 m_device,
16414 pipelines,
16415 allocator.get(),
16416 d );
16417
16418 return { result, pipelines };
16419 }
16420
16421 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16422 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16423 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16424 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<Pipeline> Device::createExecutionGraphPipelineAMDX(
16425 PipelineCache pipelineCache, ExecutionGraphPipelineCreateInfoAMDX const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
16426 const
16427 {
16428 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16429 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16430 VULKAN_HPP_ASSERT( d.vkCreateExecutionGraphPipelinesAMDX && "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
16431 # endif
16432
16433 Pipeline pipeline;
16434 Result result = static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( m_device,
16435 static_cast<VkPipelineCache>( pipelineCache ),
16436 1,
16437 reinterpret_cast<VkExecutionGraphPipelineCreateInfoAMDX const *>( &createInfo ),
16438 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16439 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
16440 detail::resultCheck(
16441 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelineAMDX", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
16442
16443 return { result, pipeline };
16444 }
16445
16446 # ifndef VULKAN_HPP_NO_SMART_HANDLE
16447 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16448 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16449 template <typename Dispatch,
16450 typename PipelineAllocator,
16451 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
16452 typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16453 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
16454 Device::createExecutionGraphPipelinesAMDXUnique( PipelineCache pipelineCache,
16455 ArrayProxy<ExecutionGraphPipelineCreateInfoAMDX const> const & createInfos,
16456 Optional<AllocationCallbacks const> allocator,
16457 Dispatch const & d ) const
16458 {
16459 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16460 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16461 VULKAN_HPP_ASSERT( d.vkCreateExecutionGraphPipelinesAMDX && "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
16462 # endif
16463
16464 std::vector<Pipeline> pipelines( createInfos.size() );
16465 Result result =
16466 static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( m_device,
16467 static_cast<VkPipelineCache>( pipelineCache ),
16468 createInfos.size(),
16469 reinterpret_cast<VkExecutionGraphPipelineCreateInfoAMDX const *>( createInfos.data() ),
16470 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16471 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
16472 detail::resultCheck( result,
16473 VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelinesAMDXUnique",
16474 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
16475 m_device,
16476 pipelines,
16477 allocator.get(),
16478 d );
16479 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines;
16480 uniquePipelines.reserve( createInfos.size() );
16481 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
16482 for ( auto const & pipeline : pipelines )
16483 {
16484 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
16485 }
16486 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
16487 }
16488
16489 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16490 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16491 template <typename Dispatch,
16492 typename PipelineAllocator,
16493 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
16494 typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16495 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
16496 Device::createExecutionGraphPipelinesAMDXUnique( PipelineCache pipelineCache,
16497 ArrayProxy<ExecutionGraphPipelineCreateInfoAMDX const> const & createInfos,
16498 Optional<AllocationCallbacks const> allocator,
16499 PipelineAllocator const & pipelineAllocator,
16500 Dispatch const & d ) const
16501 {
16502 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16503 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16504 VULKAN_HPP_ASSERT( d.vkCreateExecutionGraphPipelinesAMDX && "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
16505 # endif
16506
16507 std::vector<Pipeline> pipelines( createInfos.size() );
16508 Result result =
16509 static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( m_device,
16510 static_cast<VkPipelineCache>( pipelineCache ),
16511 createInfos.size(),
16512 reinterpret_cast<VkExecutionGraphPipelineCreateInfoAMDX const *>( createInfos.data() ),
16513 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16514 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
16515 detail::resultCheck( result,
16516 VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelinesAMDXUnique",
16517 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
16518 m_device,
16519 pipelines,
16520 allocator.get(),
16521 d );
16522 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines( pipelineAllocator );
16523 uniquePipelines.reserve( createInfos.size() );
16524 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
16525 for ( auto const & pipeline : pipelines )
16526 {
16527 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
16528 }
16529 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
16530 }
16531
16532 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16533 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16534 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16535 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<Pipeline, Dispatch>> Device::createExecutionGraphPipelineAMDXUnique(
16536 PipelineCache pipelineCache, ExecutionGraphPipelineCreateInfoAMDX const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
16537 const
16538 {
16539 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16540 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16541 VULKAN_HPP_ASSERT( d.vkCreateExecutionGraphPipelinesAMDX && "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
16542 # endif
16543
16544 Pipeline pipeline;
16545 Result result = static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( m_device,
16546 static_cast<VkPipelineCache>( pipelineCache ),
16547 1,
16548 reinterpret_cast<VkExecutionGraphPipelineCreateInfoAMDX const *>( &createInfo ),
16549 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16550 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
16551 detail::resultCheck(
16552 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelineAMDXUnique", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
16553
16554 return ResultValue<UniqueHandle<Pipeline, Dispatch>>(
16555 result, UniqueHandle<Pipeline, Dispatch>( pipeline, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
16556 }
16557 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
16558 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16559
16560 // wrapper function for command vkGetExecutionGraphPipelineScratchSizeAMDX, see
16561 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExecutionGraphPipelineScratchSizeAMDX.html
16562 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetExecutionGraphPipelineScratchSizeAMDX ), bool>::type>
16563 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getExecutionGraphPipelineScratchSizeAMDX(
16564 Pipeline executionGraph, ExecutionGraphPipelineScratchSizeAMDX * pSizeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16565 {
16566 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16567 return static_cast<Result>( d.vkGetExecutionGraphPipelineScratchSizeAMDX( static_cast<VkDevice>( m_device ),
16568 static_cast<VkPipeline>( executionGraph ),
16569 reinterpret_cast<VkExecutionGraphPipelineScratchSizeAMDX *>( pSizeInfo ) ) );
16570 }
16571
16572 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16573 // wrapper function for command vkGetExecutionGraphPipelineScratchSizeAMDX, see
16574 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExecutionGraphPipelineScratchSizeAMDX.html
16575 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetExecutionGraphPipelineScratchSizeAMDX ), bool>::type>
16576 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ExecutionGraphPipelineScratchSizeAMDX>::type Device::getExecutionGraphPipelineScratchSizeAMDX(
16577 Pipeline executionGraph, Dispatch const & d ) const
16578 {
16579 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16580 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16581 VULKAN_HPP_ASSERT( d.vkGetExecutionGraphPipelineScratchSizeAMDX &&
16582 "Function <vkGetExecutionGraphPipelineScratchSizeAMDX> requires <VK_AMDX_shader_enqueue>" );
16583 # endif
16584
16585 ExecutionGraphPipelineScratchSizeAMDX sizeInfo;
16586 Result result = static_cast<Result>( d.vkGetExecutionGraphPipelineScratchSizeAMDX(
16587 m_device, static_cast<VkPipeline>( executionGraph ), reinterpret_cast<VkExecutionGraphPipelineScratchSizeAMDX *>( &sizeInfo ) ) );
16588 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getExecutionGraphPipelineScratchSizeAMDX" );
16589
16590 return detail::createResultValueType( result, std::move( sizeInfo ) );
16591 }
16592 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16593
16594 // wrapper function for command vkGetExecutionGraphPipelineNodeIndexAMDX, see
16595 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExecutionGraphPipelineNodeIndexAMDX.html
16596 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetExecutionGraphPipelineNodeIndexAMDX ), bool>::type>
16597 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getExecutionGraphPipelineNodeIndexAMDX(
16598 Pipeline executionGraph, PipelineShaderStageNodeCreateInfoAMDX const * pNodeInfo, uint32_t * pNodeIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16599 {
16600 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16601 return static_cast<Result>( d.vkGetExecutionGraphPipelineNodeIndexAMDX( static_cast<VkDevice>( m_device ),
16602 static_cast<VkPipeline>( executionGraph ),
16603 reinterpret_cast<VkPipelineShaderStageNodeCreateInfoAMDX const *>( pNodeInfo ),
16604 pNodeIndex ) );
16605 }
16606
16607 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16608 // wrapper function for command vkGetExecutionGraphPipelineNodeIndexAMDX, see
16609 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExecutionGraphPipelineNodeIndexAMDX.html
16610 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetExecutionGraphPipelineNodeIndexAMDX ), bool>::type>
16611 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint32_t>::type Device::getExecutionGraphPipelineNodeIndexAMDX(
16612 Pipeline executionGraph, PipelineShaderStageNodeCreateInfoAMDX const & nodeInfo, Dispatch const & d ) const
16613 {
16614 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16615 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16616 VULKAN_HPP_ASSERT( d.vkGetExecutionGraphPipelineNodeIndexAMDX && "Function <vkGetExecutionGraphPipelineNodeIndexAMDX> requires <VK_AMDX_shader_enqueue>" );
16617 # endif
16618
16619 uint32_t nodeIndex;
16620 Result result = static_cast<Result>( d.vkGetExecutionGraphPipelineNodeIndexAMDX(
16621 m_device, static_cast<VkPipeline>( executionGraph ), reinterpret_cast<VkPipelineShaderStageNodeCreateInfoAMDX const *>( &nodeInfo ), &nodeIndex ) );
16622 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getExecutionGraphPipelineNodeIndexAMDX" );
16623
16624 return detail::createResultValueType( result, std::move( nodeIndex ) );
16625 }
16626 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16627
16628 // wrapper function for command vkCmdInitializeGraphScratchMemoryAMDX, see
16629 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdInitializeGraphScratchMemoryAMDX.html
16630 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdInitializeGraphScratchMemoryAMDX ), bool>::type>
16631 VULKAN_HPP_INLINE void CommandBuffer::initializeGraphScratchMemoryAMDX(
16632 Pipeline executionGraph, DeviceAddress scratch, DeviceSize scratchSize, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16633 {
16634 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16635 d.vkCmdInitializeGraphScratchMemoryAMDX( static_cast<VkCommandBuffer>( m_commandBuffer ),
16636 static_cast<VkPipeline>( executionGraph ),
16637 static_cast<VkDeviceAddress>( scratch ),
16638 static_cast<VkDeviceSize>( scratchSize ) );
16639 }
16640
16641 // wrapper function for command vkCmdDispatchGraphAMDX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphAMDX.html
16642 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchGraphAMDX ), bool>::type>
16643 VULKAN_HPP_INLINE void CommandBuffer::dispatchGraphAMDX(
16644 DeviceAddress scratch, DeviceSize scratchSize, DispatchGraphCountInfoAMDX const * pCountInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16645 {
16646 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16647 d.vkCmdDispatchGraphAMDX( static_cast<VkCommandBuffer>( m_commandBuffer ),
16648 static_cast<VkDeviceAddress>( scratch ),
16649 static_cast<VkDeviceSize>( scratchSize ),
16650 reinterpret_cast<VkDispatchGraphCountInfoAMDX const *>( pCountInfo ) );
16651 }
16652
16653 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16654 // wrapper function for command vkCmdDispatchGraphAMDX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphAMDX.html
16655 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchGraphAMDX ), bool>::type>
16656 VULKAN_HPP_INLINE void CommandBuffer::dispatchGraphAMDX(
16657 DeviceAddress scratch, DeviceSize scratchSize, DispatchGraphCountInfoAMDX const & countInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16658 {
16659 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16660 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16661 VULKAN_HPP_ASSERT( d.vkCmdDispatchGraphAMDX && "Function <vkCmdDispatchGraphAMDX> requires <VK_AMDX_shader_enqueue>" );
16662 # endif
16663
16664 d.vkCmdDispatchGraphAMDX( m_commandBuffer,
16665 static_cast<VkDeviceAddress>( scratch ),
16666 static_cast<VkDeviceSize>( scratchSize ),
16667 reinterpret_cast<VkDispatchGraphCountInfoAMDX const *>( &countInfo ) );
16668 }
16669 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16670
16671 // wrapper function for command vkCmdDispatchGraphIndirectAMDX, see
16672 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphIndirectAMDX.html
16673 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchGraphIndirectAMDX ), bool>::type>
16674 VULKAN_HPP_INLINE void CommandBuffer::dispatchGraphIndirectAMDX(
16675 DeviceAddress scratch, DeviceSize scratchSize, DispatchGraphCountInfoAMDX const * pCountInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16676 {
16677 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16678 d.vkCmdDispatchGraphIndirectAMDX( static_cast<VkCommandBuffer>( m_commandBuffer ),
16679 static_cast<VkDeviceAddress>( scratch ),
16680 static_cast<VkDeviceSize>( scratchSize ),
16681 reinterpret_cast<VkDispatchGraphCountInfoAMDX const *>( pCountInfo ) );
16682 }
16683
16684 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16685 // wrapper function for command vkCmdDispatchGraphIndirectAMDX, see
16686 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphIndirectAMDX.html
16687 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchGraphIndirectAMDX ), bool>::type>
16688 VULKAN_HPP_INLINE void CommandBuffer::dispatchGraphIndirectAMDX(
16689 DeviceAddress scratch, DeviceSize scratchSize, DispatchGraphCountInfoAMDX const & countInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16690 {
16691 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16692 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16693 VULKAN_HPP_ASSERT( d.vkCmdDispatchGraphIndirectAMDX && "Function <vkCmdDispatchGraphIndirectAMDX> requires <VK_AMDX_shader_enqueue>" );
16694 # endif
16695
16696 d.vkCmdDispatchGraphIndirectAMDX( m_commandBuffer,
16697 static_cast<VkDeviceAddress>( scratch ),
16698 static_cast<VkDeviceSize>( scratchSize ),
16699 reinterpret_cast<VkDispatchGraphCountInfoAMDX const *>( &countInfo ) );
16700 }
16701 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16702
16703 // wrapper function for command vkCmdDispatchGraphIndirectCountAMDX, see
16704 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphIndirectCountAMDX.html
16705 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchGraphIndirectCountAMDX ), bool>::type>
16706 VULKAN_HPP_INLINE void CommandBuffer::dispatchGraphIndirectCountAMDX(
16707 DeviceAddress scratch, DeviceSize scratchSize, DeviceAddress countInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16708 {
16709 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16710 d.vkCmdDispatchGraphIndirectCountAMDX( static_cast<VkCommandBuffer>( m_commandBuffer ),
16711 static_cast<VkDeviceAddress>( scratch ),
16712 static_cast<VkDeviceSize>( scratchSize ),
16713 static_cast<VkDeviceAddress>( countInfo ) );
16714 }
16715 #endif /*VK_ENABLE_BETA_EXTENSIONS*/
16716
16717 //=== VK_EXT_descriptor_heap ===
16718
16719 // wrapper function for command vkWriteSamplerDescriptorsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteSamplerDescriptorsEXT.html
16720 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteSamplerDescriptorsEXT ), bool>::type>
16721 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::writeSamplerDescriptorsEXT(
16722 uint32_t samplerCount, SamplerCreateInfo const * pSamplers, HostAddressRangeEXT const * pDescriptors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16723 {
16724 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16725 return static_cast<Result>( d.vkWriteSamplerDescriptorsEXT( static_cast<VkDevice>( m_device ),
16726 samplerCount,
16727 reinterpret_cast<VkSamplerCreateInfo const *>( pSamplers ),
16728 reinterpret_cast<VkHostAddressRangeEXT const *>( pDescriptors ) ) );
16729 }
16730
16731 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16732 // wrapper function for command vkWriteSamplerDescriptorsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteSamplerDescriptorsEXT.html
16733 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteSamplerDescriptorsEXT ), bool>::type>
16734 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::writeSamplerDescriptorsEXT(
16735 ArrayProxy<SamplerCreateInfo const> const & samplers, ArrayProxy<HostAddressRangeEXT const> const & descriptors, Dispatch const & d ) const
16736 {
16737 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16738 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16739 VULKAN_HPP_ASSERT( d.vkWriteSamplerDescriptorsEXT && "Function <vkWriteSamplerDescriptorsEXT> requires <VK_EXT_descriptor_heap>" );
16740 # endif
16741 # ifdef VULKAN_HPP_NO_EXCEPTIONS
16742 VULKAN_HPP_ASSERT( samplers.size() == descriptors.size() );
16743 # else
16744 if ( samplers.size() != descriptors.size() )
16745 {
16746 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::writeSamplerDescriptorsEXT: samplers.size() != descriptors.size()" );
16747 }
16748 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
16749
16750 Result result = static_cast<Result>( d.vkWriteSamplerDescriptorsEXT( m_device,
16751 samplers.size(),
16752 reinterpret_cast<VkSamplerCreateInfo const *>( samplers.data() ),
16753 reinterpret_cast<VkHostAddressRangeEXT const *>( descriptors.data() ) ) );
16754 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeSamplerDescriptorsEXT" );
16755
16756 return detail::createResultValueType( result );
16757 }
16758 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16759
16760 // wrapper function for command vkWriteResourceDescriptorsEXT, see
16761 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteResourceDescriptorsEXT.html
16762 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteResourceDescriptorsEXT ), bool>::type>
16763 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::writeResourceDescriptorsEXT(
16764 uint32_t resourceCount, ResourceDescriptorInfoEXT const * pResources, HostAddressRangeEXT const * pDescriptors, Dispatch const & d )
16765 const VULKAN_HPP_NOEXCEPT
16766 {
16767 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16768 return static_cast<Result>( d.vkWriteResourceDescriptorsEXT( static_cast<VkDevice>( m_device ),
16769 resourceCount,
16770 reinterpret_cast<VkResourceDescriptorInfoEXT const *>( pResources ),
16771 reinterpret_cast<VkHostAddressRangeEXT const *>( pDescriptors ) ) );
16772 }
16773
16774 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16775 // wrapper function for command vkWriteResourceDescriptorsEXT, see
16776 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteResourceDescriptorsEXT.html
16777 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteResourceDescriptorsEXT ), bool>::type>
16778 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::writeResourceDescriptorsEXT(
16779 ArrayProxy<ResourceDescriptorInfoEXT const> const & resources, ArrayProxy<HostAddressRangeEXT const> const & descriptors, Dispatch const & d ) const
16780 {
16781 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16782 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16783 VULKAN_HPP_ASSERT( d.vkWriteResourceDescriptorsEXT && "Function <vkWriteResourceDescriptorsEXT> requires <VK_EXT_descriptor_heap>" );
16784 # endif
16785 # ifdef VULKAN_HPP_NO_EXCEPTIONS
16786 VULKAN_HPP_ASSERT( resources.size() == descriptors.size() );
16787 # else
16788 if ( resources.size() != descriptors.size() )
16789 {
16790 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::writeResourceDescriptorsEXT: resources.size() != descriptors.size()" );
16791 }
16792 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
16793
16794 Result result = static_cast<Result>( d.vkWriteResourceDescriptorsEXT( m_device,
16795 resources.size(),
16796 reinterpret_cast<VkResourceDescriptorInfoEXT const *>( resources.data() ),
16797 reinterpret_cast<VkHostAddressRangeEXT const *>( descriptors.data() ) ) );
16798 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeResourceDescriptorsEXT" );
16799
16800 return detail::createResultValueType( result );
16801 }
16802 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16803
16804 // wrapper function for command vkCmdBindSamplerHeapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindSamplerHeapEXT.html
16805 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindSamplerHeapEXT ), bool>::type>
16806 VULKAN_HPP_INLINE void CommandBuffer::bindSamplerHeapEXT( BindHeapInfoEXT const * pBindInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16807 {
16808 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16809 d.vkCmdBindSamplerHeapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkBindHeapInfoEXT const *>( pBindInfo ) );
16810 }
16811
16812 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16813 // wrapper function for command vkCmdBindSamplerHeapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindSamplerHeapEXT.html
16814 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindSamplerHeapEXT ), bool>::type>
16815 VULKAN_HPP_INLINE void CommandBuffer::bindSamplerHeapEXT( BindHeapInfoEXT const & bindInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16816 {
16817 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16818 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16819 VULKAN_HPP_ASSERT( d.vkCmdBindSamplerHeapEXT && "Function <vkCmdBindSamplerHeapEXT> requires <VK_EXT_descriptor_heap>" );
16820 # endif
16821
16822 d.vkCmdBindSamplerHeapEXT( m_commandBuffer, reinterpret_cast<VkBindHeapInfoEXT const *>( &bindInfo ) );
16823 }
16824 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16825
16826 // wrapper function for command vkCmdBindResourceHeapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindResourceHeapEXT.html
16827 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindResourceHeapEXT ), bool>::type>
16828 VULKAN_HPP_INLINE void CommandBuffer::bindResourceHeapEXT( BindHeapInfoEXT const * pBindInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16829 {
16830 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16831 d.vkCmdBindResourceHeapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkBindHeapInfoEXT const *>( pBindInfo ) );
16832 }
16833
16834 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16835 // wrapper function for command vkCmdBindResourceHeapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindResourceHeapEXT.html
16836 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindResourceHeapEXT ), bool>::type>
16837 VULKAN_HPP_INLINE void CommandBuffer::bindResourceHeapEXT( BindHeapInfoEXT const & bindInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16838 {
16839 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16840 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16841 VULKAN_HPP_ASSERT( d.vkCmdBindResourceHeapEXT && "Function <vkCmdBindResourceHeapEXT> requires <VK_EXT_descriptor_heap>" );
16842 # endif
16843
16844 d.vkCmdBindResourceHeapEXT( m_commandBuffer, reinterpret_cast<VkBindHeapInfoEXT const *>( &bindInfo ) );
16845 }
16846 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16847
16848 // wrapper function for command vkCmdPushDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDataEXT.html
16849 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDataEXT ), bool>::type>
16850 VULKAN_HPP_INLINE void CommandBuffer::pushDataEXT( PushDataInfoEXT const * pPushDataInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16851 {
16852 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16853 d.vkCmdPushDataEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkPushDataInfoEXT const *>( pPushDataInfo ) );
16854 }
16855
16856 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16857 // wrapper function for command vkCmdPushDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDataEXT.html
16858 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDataEXT ), bool>::type>
16859 VULKAN_HPP_INLINE void CommandBuffer::pushDataEXT( PushDataInfoEXT const & pushDataInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16860 {
16861 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16862 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16863 VULKAN_HPP_ASSERT( d.vkCmdPushDataEXT && "Function <vkCmdPushDataEXT> requires <VK_EXT_descriptor_heap>" );
16864 # endif
16865
16866 d.vkCmdPushDataEXT( m_commandBuffer, reinterpret_cast<VkPushDataInfoEXT const *>( &pushDataInfo ) );
16867 }
16868 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16869
16870 // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see
16871 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html
16872 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageOpaqueCaptureDataEXT ), bool>::type>
16873 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getImageOpaqueCaptureDataEXT(
16874 uint32_t imageCount, Image const * pImages, HostAddressRangeEXT * pDatas, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16875 {
16876 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16877 return static_cast<Result>( d.vkGetImageOpaqueCaptureDataEXT(
16878 static_cast<VkDevice>( m_device ), imageCount, reinterpret_cast<VkImage const *>( pImages ), reinterpret_cast<VkHostAddressRangeEXT *>( pDatas ) ) );
16879 }
16880
16881 // wrapper function for command vkGetPhysicalDeviceDescriptorSizeEXT, see
16882 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDescriptorSizeEXT.html
16883 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDescriptorSizeEXT ), bool>::type>
16884 VULKAN_HPP_INLINE DeviceSize PhysicalDevice::getDescriptorSizeEXT( DescriptorType descriptorType, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16885 {
16886 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16887 return static_cast<DeviceSize>(
16888 d.vkGetPhysicalDeviceDescriptorSizeEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDescriptorType>( descriptorType ) ) );
16889 }
16890
16891 // wrapper function for command vkRegisterCustomBorderColorEXT, see
16892 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterCustomBorderColorEXT.html
16893 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterCustomBorderColorEXT ), bool>::type>
16894 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::registerCustomBorderColorEXT(
16895 SamplerCustomBorderColorCreateInfoEXT const * pBorderColor, Bool32 requestIndex, uint32_t * pIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16896 {
16897 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16898 return static_cast<Result>( d.vkRegisterCustomBorderColorEXT( static_cast<VkDevice>( m_device ),
16899 reinterpret_cast<VkSamplerCustomBorderColorCreateInfoEXT const *>( pBorderColor ),
16900 static_cast<VkBool32>( requestIndex ),
16901 pIndex ) );
16902 }
16903
16904 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16905 // wrapper function for command vkRegisterCustomBorderColorEXT, see
16906 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterCustomBorderColorEXT.html
16907 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterCustomBorderColorEXT ), bool>::type>
16908 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint32_t>::type Device::registerCustomBorderColorEXT(
16909 SamplerCustomBorderColorCreateInfoEXT const & borderColor, Bool32 requestIndex, Dispatch const & d ) const
16910 {
16911 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16912 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16913 VULKAN_HPP_ASSERT( d.vkRegisterCustomBorderColorEXT && "Function <vkRegisterCustomBorderColorEXT> requires <VK_EXT_descriptor_heap>" );
16914 # endif
16915
16916 uint32_t index;
16917 Result result = static_cast<Result>( d.vkRegisterCustomBorderColorEXT(
16918 m_device, reinterpret_cast<VkSamplerCustomBorderColorCreateInfoEXT const *>( &borderColor ), static_cast<VkBool32>( requestIndex ), &index ) );
16919 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerCustomBorderColorEXT" );
16920
16921 return detail::createResultValueType( result, std::move( index ) );
16922 }
16923 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16924
16925 // wrapper function for command vkUnregisterCustomBorderColorEXT, see
16926 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnregisterCustomBorderColorEXT.html
16927 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUnregisterCustomBorderColorEXT ), bool>::type>
16928 VULKAN_HPP_INLINE void Device::unregisterCustomBorderColorEXT( uint32_t index, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16929 {
16930 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16931 d.vkUnregisterCustomBorderColorEXT( static_cast<VkDevice>( m_device ), index );
16932 }
16933
16934 // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see
16935 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html
16936 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorOpaqueCaptureDataARM ), bool>::type>
16937 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getTensorOpaqueCaptureDataARM(
16938 uint32_t tensorCount, TensorARM const * pTensors, HostAddressRangeEXT * pDatas, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16939 {
16940 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16941 return static_cast<Result>( d.vkGetTensorOpaqueCaptureDataARM( static_cast<VkDevice>( m_device ),
16942 tensorCount,
16943 reinterpret_cast<VkTensorARM const *>( pTensors ),
16944 reinterpret_cast<VkHostAddressRangeEXT *>( pDatas ) ) );
16945 }
16946
16947 //=== VK_EXT_sample_locations ===
16948
16949 // wrapper function for command vkCmdSetSampleLocationsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleLocationsEXT.html
16950 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetSampleLocationsEXT ), bool>::type>
16951 VULKAN_HPP_INLINE void CommandBuffer::setSampleLocationsEXT( SampleLocationsInfoEXT const * pSampleLocationsInfo, Dispatch const & d )
16952 const VULKAN_HPP_NOEXCEPT
16953 {
16954 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16955 d.vkCmdSetSampleLocationsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkSampleLocationsInfoEXT const *>( pSampleLocationsInfo ) );
16956 }
16957
16958 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16959 // wrapper function for command vkCmdSetSampleLocationsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleLocationsEXT.html
16960 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetSampleLocationsEXT ), bool>::type>
16961 VULKAN_HPP_INLINE void CommandBuffer::setSampleLocationsEXT( SampleLocationsInfoEXT const & sampleLocationsInfo, Dispatch const & d )
16962 const VULKAN_HPP_NOEXCEPT
16963 {
16964 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16965 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16966 VULKAN_HPP_ASSERT( d.vkCmdSetSampleLocationsEXT && "Function <vkCmdSetSampleLocationsEXT> requires <VK_EXT_sample_locations>" );
16967 # endif
16968
16969 d.vkCmdSetSampleLocationsEXT( m_commandBuffer, reinterpret_cast<VkSampleLocationsInfoEXT const *>( &sampleLocationsInfo ) );
16970 }
16971 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16972
16973 // wrapper function for command vkGetPhysicalDeviceMultisamplePropertiesEXT, see
16974 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMultisamplePropertiesEXT.html
16975 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMultisamplePropertiesEXT ), bool>::type>
16976 VULKAN_HPP_INLINE void PhysicalDevice::getMultisamplePropertiesEXT(
16977 SampleCountFlagBits samples, MultisamplePropertiesEXT * pMultisampleProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16978 {
16979 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16980 d.vkGetPhysicalDeviceMultisamplePropertiesEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
16981 static_cast<VkSampleCountFlagBits>( samples ),
16982 reinterpret_cast<VkMultisamplePropertiesEXT *>( pMultisampleProperties ) );
16983 }
16984
16985 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16986 // wrapper function for command vkGetPhysicalDeviceMultisamplePropertiesEXT, see
16987 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMultisamplePropertiesEXT.html
16988 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMultisamplePropertiesEXT ), bool>::type>
16989 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MultisamplePropertiesEXT PhysicalDevice::getMultisamplePropertiesEXT( SampleCountFlagBits samples, Dispatch const & d )
16990 const VULKAN_HPP_NOEXCEPT
16991 {
16992 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16993 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16994 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceMultisamplePropertiesEXT &&
16995 "Function <vkGetPhysicalDeviceMultisamplePropertiesEXT> requires <VK_EXT_sample_locations>" );
16996 # endif
16997
16998 MultisamplePropertiesEXT multisampleProperties;
16999 d.vkGetPhysicalDeviceMultisamplePropertiesEXT(
17000 m_physicalDevice, static_cast<VkSampleCountFlagBits>( samples ), reinterpret_cast<VkMultisamplePropertiesEXT *>( &multisampleProperties ) );
17001
17002 return multisampleProperties;
17003 }
17004 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17005
17006 //=== VK_KHR_get_memory_requirements2 ===
17007
17008 // wrapper function for command vkGetImageMemoryRequirements2KHR, see
17009 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2KHR.html
17010 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements2KHR ), bool>::type>
17011 VULKAN_HPP_INLINE void Device::getImageMemoryRequirements2KHR(
17012 ImageMemoryRequirementsInfo2 const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17013 {
17014 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17015 d.vkGetImageMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
17016 reinterpret_cast<VkImageMemoryRequirementsInfo2 const *>( pInfo ),
17017 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
17018 }
17019
17020 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17021 // wrapper function for command vkGetImageMemoryRequirements2KHR, see
17022 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2KHR.html
17023 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements2KHR ), bool>::type>
17024 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getImageMemoryRequirements2KHR( ImageMemoryRequirementsInfo2 const & info,
17025 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17026 {
17027 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17028 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17029 VULKAN_HPP_ASSERT( d.vkGetImageMemoryRequirements2KHR &&
17030 "Function <vkGetImageMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17031 # endif
17032
17033 MemoryRequirements2 memoryRequirements;
17034 d.vkGetImageMemoryRequirements2KHR(
17035 m_device, reinterpret_cast<VkImageMemoryRequirementsInfo2 const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17036
17037 return memoryRequirements;
17038 }
17039
17040 // wrapper function for command vkGetImageMemoryRequirements2KHR, see
17041 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2KHR.html
17042 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements2KHR ), bool>::type>
17043 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageMemoryRequirements2KHR( ImageMemoryRequirementsInfo2 const & info,
17044 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17045 {
17046 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17047 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17048 VULKAN_HPP_ASSERT( d.vkGetImageMemoryRequirements2KHR &&
17049 "Function <vkGetImageMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17050 # endif
17051
17052 StructureChain<X, Y, Z...> structureChain;
17053 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
17054 d.vkGetImageMemoryRequirements2KHR(
17055 m_device, reinterpret_cast<VkImageMemoryRequirementsInfo2 const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17056
17057 return structureChain;
17058 }
17059 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17060
17061 // wrapper function for command vkGetBufferMemoryRequirements2KHR, see
17062 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2KHR.html
17063 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements2KHR ), bool>::type>
17064 VULKAN_HPP_INLINE void Device::getBufferMemoryRequirements2KHR(
17065 BufferMemoryRequirementsInfo2 const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17066 {
17067 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17068 d.vkGetBufferMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
17069 reinterpret_cast<VkBufferMemoryRequirementsInfo2 const *>( pInfo ),
17070 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
17071 }
17072
17073 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17074 // wrapper function for command vkGetBufferMemoryRequirements2KHR, see
17075 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2KHR.html
17076 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements2KHR ), bool>::type>
17077 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getBufferMemoryRequirements2KHR( BufferMemoryRequirementsInfo2 const & info,
17078 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17079 {
17080 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17081 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17082 VULKAN_HPP_ASSERT( d.vkGetBufferMemoryRequirements2KHR &&
17083 "Function <vkGetBufferMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17084 # endif
17085
17086 MemoryRequirements2 memoryRequirements;
17087 d.vkGetBufferMemoryRequirements2KHR(
17088 m_device, reinterpret_cast<VkBufferMemoryRequirementsInfo2 const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17089
17090 return memoryRequirements;
17091 }
17092
17093 // wrapper function for command vkGetBufferMemoryRequirements2KHR, see
17094 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2KHR.html
17095 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements2KHR ), bool>::type>
17096 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getBufferMemoryRequirements2KHR( BufferMemoryRequirementsInfo2 const & info,
17097 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17098 {
17099 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17100 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17101 VULKAN_HPP_ASSERT( d.vkGetBufferMemoryRequirements2KHR &&
17102 "Function <vkGetBufferMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17103 # endif
17104
17105 StructureChain<X, Y, Z...> structureChain;
17106 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
17107 d.vkGetBufferMemoryRequirements2KHR(
17108 m_device, reinterpret_cast<VkBufferMemoryRequirementsInfo2 const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17109
17110 return structureChain;
17111 }
17112 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17113
17114 // wrapper function for command vkGetImageSparseMemoryRequirements2KHR, see
17115 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2KHR.html
17116 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements2KHR ), bool>::type>
17117 VULKAN_HPP_INLINE void Device::getImageSparseMemoryRequirements2KHR( ImageSparseMemoryRequirementsInfo2 const * pInfo,
17118 uint32_t * pSparseMemoryRequirementCount,
17119 SparseImageMemoryRequirements2 * pSparseMemoryRequirements,
17120 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17121 {
17122 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17123 d.vkGetImageSparseMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
17124 reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( pInfo ),
17125 pSparseMemoryRequirementCount,
17126 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( pSparseMemoryRequirements ) );
17127 }
17128
17129 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17130 // wrapper function for command vkGetImageSparseMemoryRequirements2KHR, see
17131 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2KHR.html
17132 template <
17133 typename SparseImageMemoryRequirements2Allocator,
17134 typename Dispatch,
17135 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
17136 typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements2KHR ), bool>::type>
17137 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
17138 Device::getImageSparseMemoryRequirements2KHR( ImageSparseMemoryRequirementsInfo2 const & info, Dispatch const & d ) const
17139 {
17140 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17141 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17142 VULKAN_HPP_ASSERT( d.vkGetImageSparseMemoryRequirements2KHR &&
17143 "Function <vkGetImageSparseMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17144 # endif
17145
17146 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements;
17147 uint32_t sparseMemoryRequirementCount;
17148 d.vkGetImageSparseMemoryRequirements2KHR(
17149 m_device, reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( &info ), &sparseMemoryRequirementCount, nullptr );
17150 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
17151 d.vkGetImageSparseMemoryRequirements2KHR( m_device,
17152 reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( &info ),
17153 &sparseMemoryRequirementCount,
17154 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
17155
17156 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
17157 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
17158 {
17159 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
17160 }
17161 return sparseMemoryRequirements;
17162 }
17163
17164 // wrapper function for command vkGetImageSparseMemoryRequirements2KHR, see
17165 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2KHR.html
17166 template <
17167 typename SparseImageMemoryRequirements2Allocator,
17168 typename Dispatch,
17169 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
17170 typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements2KHR ), bool>::type>
17171 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
17172 Device::getImageSparseMemoryRequirements2KHR( ImageSparseMemoryRequirementsInfo2 const & info,
17173 SparseImageMemoryRequirements2Allocator const & sparseImageMemoryRequirements2Allocator,
17174 Dispatch const & d ) const
17175 {
17176 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17177 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17178 VULKAN_HPP_ASSERT( d.vkGetImageSparseMemoryRequirements2KHR &&
17179 "Function <vkGetImageSparseMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17180 # endif
17181
17182 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements( sparseImageMemoryRequirements2Allocator );
17183 uint32_t sparseMemoryRequirementCount;
17184 d.vkGetImageSparseMemoryRequirements2KHR(
17185 m_device, reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( &info ), &sparseMemoryRequirementCount, nullptr );
17186 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
17187 d.vkGetImageSparseMemoryRequirements2KHR( m_device,
17188 reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( &info ),
17189 &sparseMemoryRequirementCount,
17190 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
17191
17192 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
17193 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
17194 {
17195 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
17196 }
17197 return sparseMemoryRequirements;
17198 }
17199 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17200
17201 //=== VK_KHR_acceleration_structure ===
17202
17203 // wrapper function for command vkCreateAccelerationStructureKHR, see
17204 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureKHR.html
17205 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructureKHR ), bool>::type>
17206 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createAccelerationStructureKHR( AccelerationStructureCreateInfoKHR const * pCreateInfo,
17207 AllocationCallbacks const * pAllocator,
17208 AccelerationStructureKHR * pAccelerationStructure,
17209 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17210 {
17211 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17212 return static_cast<Result>( d.vkCreateAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
17213 reinterpret_cast<VkAccelerationStructureCreateInfoKHR const *>( pCreateInfo ),
17214 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
17215 reinterpret_cast<VkAccelerationStructureKHR *>( pAccelerationStructure ) ) );
17216 }
17217
17218 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17219 // wrapper function for command vkCreateAccelerationStructureKHR, see
17220 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureKHR.html
17221 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructureKHR ), bool>::type>
17222 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<AccelerationStructureKHR>::type Device::createAccelerationStructureKHR(
17223 AccelerationStructureCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
17224 {
17225 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17226 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17227 VULKAN_HPP_ASSERT( d.vkCreateAccelerationStructureKHR && "Function <vkCreateAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17228 # endif
17229
17230 AccelerationStructureKHR accelerationStructure;
17231 Result result = static_cast<Result>( d.vkCreateAccelerationStructureKHR( m_device,
17232 reinterpret_cast<VkAccelerationStructureCreateInfoKHR const *>( &createInfo ),
17233 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
17234 reinterpret_cast<VkAccelerationStructureKHR *>( &accelerationStructure ) ) );
17235 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createAccelerationStructureKHR" );
17236
17237 return detail::createResultValueType( result, std::move( accelerationStructure ) );
17238 }
17239
17240 # ifndef VULKAN_HPP_NO_SMART_HANDLE
17241 // wrapper function for command vkCreateAccelerationStructureKHR, see
17242 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureKHR.html
17243 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructureKHR ), bool>::type>
17244 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<AccelerationStructureKHR, Dispatch>>::type
17245 Device::createAccelerationStructureKHRUnique(
17246 AccelerationStructureCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
17247 {
17248 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17249 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17250 VULKAN_HPP_ASSERT( d.vkCreateAccelerationStructureKHR && "Function <vkCreateAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17251 # endif
17252
17253 AccelerationStructureKHR accelerationStructure;
17254 Result result = static_cast<Result>( d.vkCreateAccelerationStructureKHR( m_device,
17255 reinterpret_cast<VkAccelerationStructureCreateInfoKHR const *>( &createInfo ),
17256 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
17257 reinterpret_cast<VkAccelerationStructureKHR *>( &accelerationStructure ) ) );
17258 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createAccelerationStructureKHRUnique" );
17259
17260 return detail::createResultValueType(
17261 result, UniqueHandle<AccelerationStructureKHR, Dispatch>( accelerationStructure, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
17262 }
17263 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
17264 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17265
17266 // wrapper function for command vkDestroyAccelerationStructureKHR, see
17267 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureKHR.html
17268 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureKHR ), bool>::type>
17269 VULKAN_HPP_INLINE void Device::destroyAccelerationStructureKHR(
17270 AccelerationStructureKHR accelerationStructure, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17271 {
17272 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17273 d.vkDestroyAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
17274 static_cast<VkAccelerationStructureKHR>( accelerationStructure ),
17275 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
17276 }
17277
17278 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17279 // wrapper function for command vkDestroyAccelerationStructureKHR, see
17280 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureKHR.html
17281 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureKHR ), bool>::type>
17282 VULKAN_HPP_INLINE void Device::destroyAccelerationStructureKHR(
17283 AccelerationStructureKHR accelerationStructure, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17284 {
17285 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17286 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17287 VULKAN_HPP_ASSERT( d.vkDestroyAccelerationStructureKHR && "Function <vkDestroyAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17288 # endif
17289
17290 d.vkDestroyAccelerationStructureKHR(
17291 m_device, static_cast<VkAccelerationStructureKHR>( accelerationStructure ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
17292 }
17293 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17294
17295 // wrapper function for command vkDestroyAccelerationStructureKHR, see
17296 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureKHR.html
17297 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureKHR ), bool>::type>
17298 VULKAN_HPP_INLINE void Device::destroy( AccelerationStructureKHR accelerationStructure, AllocationCallbacks const * pAllocator, Dispatch const & d )
17299 const VULKAN_HPP_NOEXCEPT
17300 {
17301 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17302 d.vkDestroyAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
17303 static_cast<VkAccelerationStructureKHR>( accelerationStructure ),
17304 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
17305 }
17306
17307 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17308 // wrapper function for command vkDestroyAccelerationStructureKHR, see
17309 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureKHR.html
17310 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureKHR ), bool>::type>
17311 VULKAN_HPP_INLINE void Device::destroy( AccelerationStructureKHR accelerationStructure, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
17312 const VULKAN_HPP_NOEXCEPT
17313 {
17314 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17315 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17316 VULKAN_HPP_ASSERT( d.vkDestroyAccelerationStructureKHR && "Function <vkDestroyAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17317 # endif
17318
17319 d.vkDestroyAccelerationStructureKHR(
17320 m_device, static_cast<VkAccelerationStructureKHR>( accelerationStructure ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
17321 }
17322 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17323
17324 // wrapper function for command vkCmdBuildAccelerationStructuresKHR, see
17325 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructuresKHR.html
17326 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildAccelerationStructuresKHR ), bool>::type>
17327 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructuresKHR( uint32_t infoCount,
17328 AccelerationStructureBuildGeometryInfoKHR const * pInfos,
17329 AccelerationStructureBuildRangeInfoKHR const * const * ppBuildRangeInfos,
17330 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17331 {
17332 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17333 d.vkCmdBuildAccelerationStructuresKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17334 infoCount,
17335 reinterpret_cast<VkAccelerationStructureBuildGeometryInfoKHR const *>( pInfos ),
17336 reinterpret_cast<VkAccelerationStructureBuildRangeInfoKHR const * const *>( ppBuildRangeInfos ) );
17337 }
17338
17339 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17340 // wrapper function for command vkCmdBuildAccelerationStructuresKHR, see
17341 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructuresKHR.html
17342 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildAccelerationStructuresKHR ), bool>::type>
17343 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructuresKHR(
17344 ArrayProxy<AccelerationStructureBuildGeometryInfoKHR const> const & infos,
17345 ArrayProxy<AccelerationStructureBuildRangeInfoKHR const * const> const & pBuildRangeInfos,
17346 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
17347 {
17348 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17349 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17350 VULKAN_HPP_ASSERT( d.vkCmdBuildAccelerationStructuresKHR && "Function <vkCmdBuildAccelerationStructuresKHR> requires <VK_KHR_acceleration_structure>" );
17351 # endif
17352 # ifdef VULKAN_HPP_NO_EXCEPTIONS
17353 VULKAN_HPP_ASSERT( infos.size() == pBuildRangeInfos.size() );
17354 # else
17355 if ( infos.size() != pBuildRangeInfos.size() )
17356 {
17357 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::buildAccelerationStructuresKHR: infos.size() != pBuildRangeInfos.size()" );
17358 }
17359 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
17360
17361 d.vkCmdBuildAccelerationStructuresKHR( m_commandBuffer,
17362 infos.size(),
17363 reinterpret_cast<VkAccelerationStructureBuildGeometryInfoKHR const *>( infos.data() ),
17364 reinterpret_cast<VkAccelerationStructureBuildRangeInfoKHR const * const *>( pBuildRangeInfos.data() ) );
17365 }
17366 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17367
17368 // wrapper function for command vkCmdBuildAccelerationStructuresIndirectKHR, see
17369 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructuresIndirectKHR.html
17370 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildAccelerationStructuresIndirectKHR ), bool>::type>
17371 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructuresIndirectKHR( uint32_t infoCount,
17372 AccelerationStructureBuildGeometryInfoKHR const * pInfos,
17373 DeviceAddress const * pIndirectDeviceAddresses,
17374 uint32_t const * pIndirectStrides,
17375 uint32_t const * const * ppMaxPrimitiveCounts,
17376 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17377 {
17378 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17379 d.vkCmdBuildAccelerationStructuresIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17380 infoCount,
17381 reinterpret_cast<VkAccelerationStructureBuildGeometryInfoKHR const *>( pInfos ),
17382 reinterpret_cast<VkDeviceAddress const *>( pIndirectDeviceAddresses ),
17383 pIndirectStrides,
17384 ppMaxPrimitiveCounts );
17385 }
17386
17387 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17388 // wrapper function for command vkCmdBuildAccelerationStructuresIndirectKHR, see
17389 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructuresIndirectKHR.html
17390 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildAccelerationStructuresIndirectKHR ), bool>::type>
17391 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructuresIndirectKHR( ArrayProxy<AccelerationStructureBuildGeometryInfoKHR const> const & infos,
17392 ArrayProxy<DeviceAddress const> const & indirectDeviceAddresses,
17393 ArrayProxy<uint32_t const> const & indirectStrides,
17394 ArrayProxy<uint32_t const * const> const & pMaxPrimitiveCounts,
17395 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
17396 {
17397 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17398 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17399 VULKAN_HPP_ASSERT( d.vkCmdBuildAccelerationStructuresIndirectKHR &&
17400 "Function <vkCmdBuildAccelerationStructuresIndirectKHR> requires <VK_KHR_acceleration_structure>" );
17401 # endif
17402 # ifdef VULKAN_HPP_NO_EXCEPTIONS
17403 VULKAN_HPP_ASSERT( infos.size() == indirectDeviceAddresses.size() );
17404 VULKAN_HPP_ASSERT( infos.size() == indirectStrides.size() );
17405 VULKAN_HPP_ASSERT( infos.size() == pMaxPrimitiveCounts.size() );
17406 # else
17407 if ( infos.size() != indirectDeviceAddresses.size() )
17408 {
17409 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::buildAccelerationStructuresIndirectKHR: infos.size() != indirectDeviceAddresses.size()" );
17410 }
17411 if ( infos.size() != indirectStrides.size() )
17412 {
17413 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::buildAccelerationStructuresIndirectKHR: infos.size() != indirectStrides.size()" );
17414 }
17415 if ( infos.size() != pMaxPrimitiveCounts.size() )
17416 {
17417 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::buildAccelerationStructuresIndirectKHR: infos.size() != pMaxPrimitiveCounts.size()" );
17418 }
17419 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
17420
17421 d.vkCmdBuildAccelerationStructuresIndirectKHR( m_commandBuffer,
17422 infos.size(),
17423 reinterpret_cast<VkAccelerationStructureBuildGeometryInfoKHR const *>( infos.data() ),
17424 reinterpret_cast<VkDeviceAddress const *>( indirectDeviceAddresses.data() ),
17425 indirectStrides.data(),
17426 pMaxPrimitiveCounts.data() );
17427 }
17428 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17429
17430 // wrapper function for command vkBuildAccelerationStructuresKHR, see
17431 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBuildAccelerationStructuresKHR.html
17432 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBuildAccelerationStructuresKHR ), bool>::type>
17433 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::buildAccelerationStructuresKHR(
17434 DeferredOperationKHR deferredOperation,
17435 uint32_t infoCount,
17436 AccelerationStructureBuildGeometryInfoKHR const * pInfos,
17437 AccelerationStructureBuildRangeInfoKHR const * const * ppBuildRangeInfos,
17438 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17439 {
17440 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17441 return static_cast<Result>(
17442 d.vkBuildAccelerationStructuresKHR( static_cast<VkDevice>( m_device ),
17443 static_cast<VkDeferredOperationKHR>( deferredOperation ),
17444 infoCount,
17445 reinterpret_cast<VkAccelerationStructureBuildGeometryInfoKHR const *>( pInfos ),
17446 reinterpret_cast<VkAccelerationStructureBuildRangeInfoKHR const * const *>( ppBuildRangeInfos ) ) );
17447 }
17448
17449 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17450 // wrapper function for command vkBuildAccelerationStructuresKHR, see
17451 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBuildAccelerationStructuresKHR.html
17452 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBuildAccelerationStructuresKHR ), bool>::type>
17453 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::buildAccelerationStructuresKHR(
17454 DeferredOperationKHR deferredOperation,
17455 ArrayProxy<AccelerationStructureBuildGeometryInfoKHR const> const & infos,
17456 ArrayProxy<AccelerationStructureBuildRangeInfoKHR const * const> const & pBuildRangeInfos,
17457 Dispatch const & d ) const
17458 {
17459 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17460 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17461 VULKAN_HPP_ASSERT( d.vkBuildAccelerationStructuresKHR && "Function <vkBuildAccelerationStructuresKHR> requires <VK_KHR_acceleration_structure>" );
17462 # endif
17463 # ifdef VULKAN_HPP_NO_EXCEPTIONS
17464 VULKAN_HPP_ASSERT( infos.size() == pBuildRangeInfos.size() );
17465 # else
17466 if ( infos.size() != pBuildRangeInfos.size() )
17467 {
17468 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::buildAccelerationStructuresKHR: infos.size() != pBuildRangeInfos.size()" );
17469 }
17470 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
17471
17472 Result result = static_cast<Result>(
17473 d.vkBuildAccelerationStructuresKHR( m_device,
17474 static_cast<VkDeferredOperationKHR>( deferredOperation ),
17475 infos.size(),
17476 reinterpret_cast<VkAccelerationStructureBuildGeometryInfoKHR const *>( infos.data() ),
17477 reinterpret_cast<VkAccelerationStructureBuildRangeInfoKHR const * const *>( pBuildRangeInfos.data() ) ) );
17478 detail::resultCheck( result,
17479 VULKAN_HPP_NAMESPACE_STRING "::Device::buildAccelerationStructuresKHR",
17480 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
17481
17482 return static_cast<Result>( result );
17483 }
17484 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17485
17486 // wrapper function for command vkCopyAccelerationStructureKHR, see
17487 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyAccelerationStructureKHR.html
17488 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyAccelerationStructureKHR ), bool>::type>
17489 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyAccelerationStructureKHR(
17490 DeferredOperationKHR deferredOperation, CopyAccelerationStructureInfoKHR const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17491 {
17492 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17493 return static_cast<Result>( d.vkCopyAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
17494 static_cast<VkDeferredOperationKHR>( deferredOperation ),
17495 reinterpret_cast<VkCopyAccelerationStructureInfoKHR const *>( pInfo ) ) );
17496 }
17497
17498 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17499 // wrapper function for command vkCopyAccelerationStructureKHR, see
17500 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyAccelerationStructureKHR.html
17501 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyAccelerationStructureKHR ), bool>::type>
17502 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyAccelerationStructureKHR(
17503 DeferredOperationKHR deferredOperation, CopyAccelerationStructureInfoKHR const & info, Dispatch const & d ) const
17504 {
17505 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17506 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17507 VULKAN_HPP_ASSERT( d.vkCopyAccelerationStructureKHR && "Function <vkCopyAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17508 # endif
17509
17510 Result result = static_cast<Result>( d.vkCopyAccelerationStructureKHR(
17511 m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<VkCopyAccelerationStructureInfoKHR const *>( &info ) ) );
17512 detail::resultCheck( result,
17513 VULKAN_HPP_NAMESPACE_STRING "::Device::copyAccelerationStructureKHR",
17514 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
17515
17516 return static_cast<Result>( result );
17517 }
17518 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17519
17520 // wrapper function for command vkCopyAccelerationStructureToMemoryKHR, see
17521 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyAccelerationStructureToMemoryKHR.html
17522 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyAccelerationStructureToMemoryKHR ), bool>::type>
17523 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyAccelerationStructureToMemoryKHR(
17524 DeferredOperationKHR deferredOperation, CopyAccelerationStructureToMemoryInfoKHR const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17525 {
17526 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17527 return static_cast<Result>( d.vkCopyAccelerationStructureToMemoryKHR( static_cast<VkDevice>( m_device ),
17528 static_cast<VkDeferredOperationKHR>( deferredOperation ),
17529 reinterpret_cast<VkCopyAccelerationStructureToMemoryInfoKHR const *>( pInfo ) ) );
17530 }
17531
17532 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17533 // wrapper function for command vkCopyAccelerationStructureToMemoryKHR, see
17534 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyAccelerationStructureToMemoryKHR.html
17535 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyAccelerationStructureToMemoryKHR ), bool>::type>
17536 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyAccelerationStructureToMemoryKHR(
17537 DeferredOperationKHR deferredOperation, CopyAccelerationStructureToMemoryInfoKHR const & info, Dispatch const & d ) const
17538 {
17539 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17540 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17541 VULKAN_HPP_ASSERT( d.vkCopyAccelerationStructureToMemoryKHR &&
17542 "Function <vkCopyAccelerationStructureToMemoryKHR> requires <VK_KHR_acceleration_structure>" );
17543 # endif
17544
17545 Result result = static_cast<Result>( d.vkCopyAccelerationStructureToMemoryKHR(
17546 m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<VkCopyAccelerationStructureToMemoryInfoKHR const *>( &info ) ) );
17547 detail::resultCheck( result,
17548 VULKAN_HPP_NAMESPACE_STRING "::Device::copyAccelerationStructureToMemoryKHR",
17549 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
17550
17551 return static_cast<Result>( result );
17552 }
17553 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17554
17555 // wrapper function for command vkCopyMemoryToAccelerationStructureKHR, see
17556 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToAccelerationStructureKHR.html
17557 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToAccelerationStructureKHR ), bool>::type>
17558 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToAccelerationStructureKHR(
17559 DeferredOperationKHR deferredOperation, CopyMemoryToAccelerationStructureInfoKHR const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17560 {
17561 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17562 return static_cast<Result>( d.vkCopyMemoryToAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
17563 static_cast<VkDeferredOperationKHR>( deferredOperation ),
17564 reinterpret_cast<VkCopyMemoryToAccelerationStructureInfoKHR const *>( pInfo ) ) );
17565 }
17566
17567 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17568 // wrapper function for command vkCopyMemoryToAccelerationStructureKHR, see
17569 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToAccelerationStructureKHR.html
17570 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToAccelerationStructureKHR ), bool>::type>
17571 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToAccelerationStructureKHR(
17572 DeferredOperationKHR deferredOperation, CopyMemoryToAccelerationStructureInfoKHR const & info, Dispatch const & d ) const
17573 {
17574 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17575 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17576 VULKAN_HPP_ASSERT( d.vkCopyMemoryToAccelerationStructureKHR &&
17577 "Function <vkCopyMemoryToAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17578 # endif
17579
17580 Result result = static_cast<Result>( d.vkCopyMemoryToAccelerationStructureKHR(
17581 m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<VkCopyMemoryToAccelerationStructureInfoKHR const *>( &info ) ) );
17582 detail::resultCheck( result,
17583 VULKAN_HPP_NAMESPACE_STRING "::Device::copyMemoryToAccelerationStructureKHR",
17584 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
17585
17586 return static_cast<Result>( result );
17587 }
17588 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17589
17590 // wrapper function for command vkWriteAccelerationStructuresPropertiesKHR, see
17591 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteAccelerationStructuresPropertiesKHR.html
17592 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteAccelerationStructuresPropertiesKHR ), bool>::type>
17593 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::writeAccelerationStructuresPropertiesKHR( uint32_t accelerationStructureCount,
17594 AccelerationStructureKHR const * pAccelerationStructures,
17595 QueryType queryType,
17596 size_t dataSize,
17597 void * pData,
17598 size_t stride,
17599 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17600 {
17601 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17602 return static_cast<Result>( d.vkWriteAccelerationStructuresPropertiesKHR( static_cast<VkDevice>( m_device ),
17603 accelerationStructureCount,
17604 reinterpret_cast<VkAccelerationStructureKHR const *>( pAccelerationStructures ),
17605 static_cast<VkQueryType>( queryType ),
17606 dataSize,
17607 pData,
17608 stride ) );
17609 }
17610
17611 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17612 // wrapper function for command vkWriteAccelerationStructuresPropertiesKHR, see
17613 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteAccelerationStructuresPropertiesKHR.html
17614 template <typename DataType,
17615 typename DataTypeAllocator,
17616 typename Dispatch,
17617 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
17618 typename std::enable_if<IS_DISPATCHED( vkWriteAccelerationStructuresPropertiesKHR ), bool>::type>
17619 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType, DataTypeAllocator>>::type
17620 Device::writeAccelerationStructuresPropertiesKHR(
17621 ArrayProxy<AccelerationStructureKHR const> const & accelerationStructures, QueryType queryType, size_t dataSize, size_t stride, Dispatch const & d ) const
17622 {
17623 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17624 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17625 VULKAN_HPP_ASSERT( d.vkWriteAccelerationStructuresPropertiesKHR &&
17626 "Function <vkWriteAccelerationStructuresPropertiesKHR> requires <VK_KHR_acceleration_structure>" );
17627 # endif
17628
17629 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
17630 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
17631 Result result =
17632 static_cast<Result>( d.vkWriteAccelerationStructuresPropertiesKHR( m_device,
17633 accelerationStructures.size(),
17634 reinterpret_cast<VkAccelerationStructureKHR const *>( accelerationStructures.data() ),
17635 static_cast<VkQueryType>( queryType ),
17636 data.size() * sizeof( DataType ),
17637 reinterpret_cast<void *>( data.data() ),
17638 stride ) );
17639 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeAccelerationStructuresPropertiesKHR" );
17640
17641 return detail::createResultValueType( result, std::move( data ) );
17642 }
17643
17644 // wrapper function for command vkWriteAccelerationStructuresPropertiesKHR, see
17645 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteAccelerationStructuresPropertiesKHR.html
17646 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteAccelerationStructuresPropertiesKHR ), bool>::type>
17647 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::writeAccelerationStructuresPropertyKHR(
17648 ArrayProxy<AccelerationStructureKHR const> const & accelerationStructures, QueryType queryType, size_t stride, Dispatch const & d ) const
17649 {
17650 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17651 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17652 VULKAN_HPP_ASSERT( d.vkWriteAccelerationStructuresPropertiesKHR &&
17653 "Function <vkWriteAccelerationStructuresPropertiesKHR> requires <VK_KHR_acceleration_structure>" );
17654 # endif
17655
17656 DataType data;
17657 Result result =
17658 static_cast<Result>( d.vkWriteAccelerationStructuresPropertiesKHR( m_device,
17659 accelerationStructures.size(),
17660 reinterpret_cast<VkAccelerationStructureKHR const *>( accelerationStructures.data() ),
17661 static_cast<VkQueryType>( queryType ),
17662 sizeof( DataType ),
17663 reinterpret_cast<void *>( &data ),
17664 stride ) );
17665 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeAccelerationStructuresPropertyKHR" );
17666
17667 return detail::createResultValueType( result, std::move( data ) );
17668 }
17669 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17670
17671 // wrapper function for command vkCmdCopyAccelerationStructureKHR, see
17672 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureKHR.html
17673 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyAccelerationStructureKHR ), bool>::type>
17674 VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureKHR( CopyAccelerationStructureInfoKHR const * pInfo, Dispatch const & d )
17675 const VULKAN_HPP_NOEXCEPT
17676 {
17677 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17678 d.vkCmdCopyAccelerationStructureKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17679 reinterpret_cast<VkCopyAccelerationStructureInfoKHR const *>( pInfo ) );
17680 }
17681
17682 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17683 // wrapper function for command vkCmdCopyAccelerationStructureKHR, see
17684 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureKHR.html
17685 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyAccelerationStructureKHR ), bool>::type>
17686 VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureKHR( CopyAccelerationStructureInfoKHR const & info, Dispatch const & d )
17687 const VULKAN_HPP_NOEXCEPT
17688 {
17689 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17690 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17691 VULKAN_HPP_ASSERT( d.vkCmdCopyAccelerationStructureKHR && "Function <vkCmdCopyAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17692 # endif
17693
17694 d.vkCmdCopyAccelerationStructureKHR( m_commandBuffer, reinterpret_cast<VkCopyAccelerationStructureInfoKHR const *>( &info ) );
17695 }
17696 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17697
17698 // wrapper function for command vkCmdCopyAccelerationStructureToMemoryKHR, see
17699 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureToMemoryKHR.html
17700 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyAccelerationStructureToMemoryKHR ), bool>::type>
17701 VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureToMemoryKHR( CopyAccelerationStructureToMemoryInfoKHR const * pInfo, Dispatch const & d )
17702 const VULKAN_HPP_NOEXCEPT
17703 {
17704 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17705 d.vkCmdCopyAccelerationStructureToMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17706 reinterpret_cast<VkCopyAccelerationStructureToMemoryInfoKHR const *>( pInfo ) );
17707 }
17708
17709 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17710 // wrapper function for command vkCmdCopyAccelerationStructureToMemoryKHR, see
17711 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureToMemoryKHR.html
17712 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyAccelerationStructureToMemoryKHR ), bool>::type>
17713 VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureToMemoryKHR( CopyAccelerationStructureToMemoryInfoKHR const & info, Dispatch const & d )
17714 const VULKAN_HPP_NOEXCEPT
17715 {
17716 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17717 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17718 VULKAN_HPP_ASSERT( d.vkCmdCopyAccelerationStructureToMemoryKHR &&
17719 "Function <vkCmdCopyAccelerationStructureToMemoryKHR> requires <VK_KHR_acceleration_structure>" );
17720 # endif
17721
17722 d.vkCmdCopyAccelerationStructureToMemoryKHR( m_commandBuffer, reinterpret_cast<VkCopyAccelerationStructureToMemoryInfoKHR const *>( &info ) );
17723 }
17724 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17725
17726 // wrapper function for command vkCmdCopyMemoryToAccelerationStructureKHR, see
17727 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToAccelerationStructureKHR.html
17728 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToAccelerationStructureKHR ), bool>::type>
17729 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToAccelerationStructureKHR( CopyMemoryToAccelerationStructureInfoKHR const * pInfo, Dispatch const & d )
17730 const VULKAN_HPP_NOEXCEPT
17731 {
17732 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17733 d.vkCmdCopyMemoryToAccelerationStructureKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17734 reinterpret_cast<VkCopyMemoryToAccelerationStructureInfoKHR const *>( pInfo ) );
17735 }
17736
17737 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17738 // wrapper function for command vkCmdCopyMemoryToAccelerationStructureKHR, see
17739 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToAccelerationStructureKHR.html
17740 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToAccelerationStructureKHR ), bool>::type>
17741 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToAccelerationStructureKHR( CopyMemoryToAccelerationStructureInfoKHR const & info, Dispatch const & d )
17742 const VULKAN_HPP_NOEXCEPT
17743 {
17744 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17745 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17746 VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToAccelerationStructureKHR &&
17747 "Function <vkCmdCopyMemoryToAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17748 # endif
17749
17750 d.vkCmdCopyMemoryToAccelerationStructureKHR( m_commandBuffer, reinterpret_cast<VkCopyMemoryToAccelerationStructureInfoKHR const *>( &info ) );
17751 }
17752 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17753
17754 // wrapper function for command vkGetAccelerationStructureDeviceAddressKHR, see
17755 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureDeviceAddressKHR.html
17756 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureDeviceAddressKHR ), bool>::type>
17757 VULKAN_HPP_INLINE DeviceAddress Device::getAccelerationStructureAddressKHR( AccelerationStructureDeviceAddressInfoKHR const * pInfo, Dispatch const & d )
17758 const VULKAN_HPP_NOEXCEPT
17759 {
17760 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17761 return static_cast<DeviceAddress>( d.vkGetAccelerationStructureDeviceAddressKHR(
17762 static_cast<VkDevice>( m_device ), reinterpret_cast<VkAccelerationStructureDeviceAddressInfoKHR const *>( pInfo ) ) );
17763 }
17764
17765 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17766 // wrapper function for command vkGetAccelerationStructureDeviceAddressKHR, see
17767 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureDeviceAddressKHR.html
17768 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureDeviceAddressKHR ), bool>::type>
17769 VULKAN_HPP_INLINE DeviceAddress Device::getAccelerationStructureAddressKHR( AccelerationStructureDeviceAddressInfoKHR const & info, Dispatch const & d )
17770 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.vkGetAccelerationStructureDeviceAddressKHR &&
17775 "Function <vkGetAccelerationStructureDeviceAddressKHR> requires <VK_KHR_acceleration_structure>" );
17776 # endif
17777
17778 VkDeviceAddress result =
17779 d.vkGetAccelerationStructureDeviceAddressKHR( m_device, reinterpret_cast<VkAccelerationStructureDeviceAddressInfoKHR const *>( &info ) );
17780
17781 return static_cast<DeviceAddress>( result );
17782 }
17783 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17784
17785 // wrapper function for command vkCmdWriteAccelerationStructuresPropertiesKHR, see
17786 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteAccelerationStructuresPropertiesKHR.html
17787 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteAccelerationStructuresPropertiesKHR ), bool>::type>
17788 VULKAN_HPP_INLINE void CommandBuffer::writeAccelerationStructuresPropertiesKHR( uint32_t accelerationStructureCount,
17789 AccelerationStructureKHR const * pAccelerationStructures,
17790 QueryType queryType,
17791 QueryPool queryPool,
17792 uint32_t firstQuery,
17793 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17794 {
17795 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17796 d.vkCmdWriteAccelerationStructuresPropertiesKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17797 accelerationStructureCount,
17798 reinterpret_cast<VkAccelerationStructureKHR const *>( pAccelerationStructures ),
17799 static_cast<VkQueryType>( queryType ),
17800 static_cast<VkQueryPool>( queryPool ),
17801 firstQuery );
17802 }
17803
17804 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17805 // wrapper function for command vkCmdWriteAccelerationStructuresPropertiesKHR, see
17806 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteAccelerationStructuresPropertiesKHR.html
17807 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteAccelerationStructuresPropertiesKHR ), bool>::type>
17808 VULKAN_HPP_INLINE void CommandBuffer::writeAccelerationStructuresPropertiesKHR( ArrayProxy<AccelerationStructureKHR const> const & accelerationStructures,
17809 QueryType queryType,
17810 QueryPool queryPool,
17811 uint32_t firstQuery,
17812 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17813 {
17814 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17815 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17816 VULKAN_HPP_ASSERT( d.vkCmdWriteAccelerationStructuresPropertiesKHR &&
17817 "Function <vkCmdWriteAccelerationStructuresPropertiesKHR> requires <VK_KHR_acceleration_structure>" );
17818 # endif
17819
17820 d.vkCmdWriteAccelerationStructuresPropertiesKHR( m_commandBuffer,
17821 accelerationStructures.size(),
17822 reinterpret_cast<VkAccelerationStructureKHR const *>( accelerationStructures.data() ),
17823 static_cast<VkQueryType>( queryType ),
17824 static_cast<VkQueryPool>( queryPool ),
17825 firstQuery );
17826 }
17827 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17828
17829 // wrapper function for command vkGetDeviceAccelerationStructureCompatibilityKHR, see
17830 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceAccelerationStructureCompatibilityKHR.html
17831 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceAccelerationStructureCompatibilityKHR ), bool>::type>
17832 VULKAN_HPP_INLINE void Device::getAccelerationStructureCompatibilityKHR(
17833 AccelerationStructureVersionInfoKHR const * pVersionInfo, AccelerationStructureCompatibilityKHR * pCompatibility, Dispatch const & d )
17834 const VULKAN_HPP_NOEXCEPT
17835 {
17836 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17837 d.vkGetDeviceAccelerationStructureCompatibilityKHR( static_cast<VkDevice>( m_device ),
17838 reinterpret_cast<VkAccelerationStructureVersionInfoKHR const *>( pVersionInfo ),
17839 reinterpret_cast<VkAccelerationStructureCompatibilityKHR *>( pCompatibility ) );
17840 }
17841
17842 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17843 // wrapper function for command vkGetDeviceAccelerationStructureCompatibilityKHR, see
17844 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceAccelerationStructureCompatibilityKHR.html
17845 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceAccelerationStructureCompatibilityKHR ), bool>::type>
17846 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureCompatibilityKHR Device::getAccelerationStructureCompatibilityKHR(
17847 AccelerationStructureVersionInfoKHR const & versionInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17848 {
17849 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17850 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17851 VULKAN_HPP_ASSERT( d.vkGetDeviceAccelerationStructureCompatibilityKHR &&
17852 "Function <vkGetDeviceAccelerationStructureCompatibilityKHR> requires <VK_KHR_acceleration_structure>" );
17853 # endif
17854
17855 AccelerationStructureCompatibilityKHR compatibility;
17856 d.vkGetDeviceAccelerationStructureCompatibilityKHR( m_device,
17857 reinterpret_cast<VkAccelerationStructureVersionInfoKHR const *>( &versionInfo ),
17858 reinterpret_cast<VkAccelerationStructureCompatibilityKHR *>( &compatibility ) );
17859
17860 return compatibility;
17861 }
17862 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17863
17864 // wrapper function for command vkGetAccelerationStructureBuildSizesKHR, see
17865 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureBuildSizesKHR.html
17866 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureBuildSizesKHR ), bool>::type>
17867 VULKAN_HPP_INLINE void Device::getAccelerationStructureBuildSizesKHR( AccelerationStructureBuildTypeKHR buildType,
17868 AccelerationStructureBuildGeometryInfoKHR const * pBuildInfo,
17869 uint32_t const * pMaxPrimitiveCounts,
17870 AccelerationStructureBuildSizesInfoKHR * pSizeInfo,
17871 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17872 {
17873 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17874 d.vkGetAccelerationStructureBuildSizesKHR( static_cast<VkDevice>( m_device ),
17875 static_cast<VkAccelerationStructureBuildTypeKHR>( buildType ),
17876 reinterpret_cast<VkAccelerationStructureBuildGeometryInfoKHR const *>( pBuildInfo ),
17877 pMaxPrimitiveCounts,
17878 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( pSizeInfo ) );
17879 }
17880
17881 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17882 // wrapper function for command vkGetAccelerationStructureBuildSizesKHR, see
17883 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureBuildSizesKHR.html
17884 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureBuildSizesKHR ), bool>::type>
17885 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureBuildSizesInfoKHR Device::getAccelerationStructureBuildSizesKHR(
17886 AccelerationStructureBuildTypeKHR buildType,
17887 AccelerationStructureBuildGeometryInfoKHR const & buildInfo,
17888 ArrayProxy<uint32_t const> const & maxPrimitiveCounts,
17889 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
17890 {
17891 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17892 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17893 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureBuildSizesKHR &&
17894 "Function <vkGetAccelerationStructureBuildSizesKHR> requires <VK_KHR_acceleration_structure>" );
17895 # endif
17896 # ifdef VULKAN_HPP_NO_EXCEPTIONS
17897 VULKAN_HPP_ASSERT( maxPrimitiveCounts.size() == buildInfo.geometryCount );
17898 # else
17899 if ( maxPrimitiveCounts.size() != buildInfo.geometryCount )
17900 {
17901 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureBuildSizesKHR: maxPrimitiveCounts.size() != buildInfo.geometryCount" );
17902 }
17903 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
17904
17905 AccelerationStructureBuildSizesInfoKHR sizeInfo;
17906 d.vkGetAccelerationStructureBuildSizesKHR( m_device,
17907 static_cast<VkAccelerationStructureBuildTypeKHR>( buildType ),
17908 reinterpret_cast<VkAccelerationStructureBuildGeometryInfoKHR const *>( &buildInfo ),
17909 maxPrimitiveCounts.data(),
17910 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( &sizeInfo ) );
17911
17912 return sizeInfo;
17913 }
17914 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17915
17916 //=== VK_KHR_ray_tracing_pipeline ===
17917
17918 // wrapper function for command vkCmdTraceRaysKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysKHR.html
17919 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdTraceRaysKHR ), bool>::type>
17920 VULKAN_HPP_INLINE void CommandBuffer::traceRaysKHR( StridedDeviceAddressRegionKHR const * pRaygenShaderBindingTable,
17921 StridedDeviceAddressRegionKHR const * pMissShaderBindingTable,
17922 StridedDeviceAddressRegionKHR const * pHitShaderBindingTable,
17923 StridedDeviceAddressRegionKHR const * pCallableShaderBindingTable,
17924 uint32_t width,
17925 uint32_t height,
17926 uint32_t depth,
17927 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17928 {
17929 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17930 d.vkCmdTraceRaysKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17931 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( pRaygenShaderBindingTable ),
17932 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( pMissShaderBindingTable ),
17933 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( pHitShaderBindingTable ),
17934 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( pCallableShaderBindingTable ),
17935 width,
17936 height,
17937 depth );
17938 }
17939
17940 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17941 // wrapper function for command vkCmdTraceRaysKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysKHR.html
17942 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdTraceRaysKHR ), bool>::type>
17943 VULKAN_HPP_INLINE void CommandBuffer::traceRaysKHR( StridedDeviceAddressRegionKHR const & raygenShaderBindingTable,
17944 StridedDeviceAddressRegionKHR const & missShaderBindingTable,
17945 StridedDeviceAddressRegionKHR const & hitShaderBindingTable,
17946 StridedDeviceAddressRegionKHR const & callableShaderBindingTable,
17947 uint32_t width,
17948 uint32_t height,
17949 uint32_t depth,
17950 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17951 {
17952 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17953 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17954 VULKAN_HPP_ASSERT( d.vkCmdTraceRaysKHR && "Function <vkCmdTraceRaysKHR> requires <VK_KHR_ray_tracing_pipeline>" );
17955 # endif
17956
17957 d.vkCmdTraceRaysKHR( m_commandBuffer,
17958 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &raygenShaderBindingTable ),
17959 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &missShaderBindingTable ),
17960 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &hitShaderBindingTable ),
17961 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &callableShaderBindingTable ),
17962 width,
17963 height,
17964 depth );
17965 }
17966 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17967
17968 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
17969 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
17970 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
17971 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createRayTracingPipelinesKHR( DeferredOperationKHR deferredOperation,
17972 PipelineCache pipelineCache,
17973 uint32_t createInfoCount,
17974 RayTracingPipelineCreateInfoKHR const * pCreateInfos,
17975 AllocationCallbacks const * pAllocator,
17976 Pipeline * pPipelines,
17977 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17978 {
17979 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17980 return static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( static_cast<VkDevice>( m_device ),
17981 static_cast<VkDeferredOperationKHR>( deferredOperation ),
17982 static_cast<VkPipelineCache>( pipelineCache ),
17983 createInfoCount,
17984 reinterpret_cast<VkRayTracingPipelineCreateInfoKHR const *>( pCreateInfos ),
17985 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
17986 reinterpret_cast<VkPipeline *>( pPipelines ) ) );
17987 }
17988
17989 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17990 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
17991 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
17992 template <typename PipelineAllocator,
17993 typename Dispatch,
17994 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
17995 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
17996 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>> Device::createRayTracingPipelinesKHR(
17997 DeferredOperationKHR deferredOperation,
17998 PipelineCache pipelineCache,
17999 ArrayProxy<RayTracingPipelineCreateInfoKHR const> const & createInfos,
18000 Optional<AllocationCallbacks const> allocator,
18001 Dispatch const & d ) const
18002 {
18003 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18004 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18005 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesKHR && "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18006 # endif
18007
18008 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size() );
18009 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( m_device,
18010 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18011 static_cast<VkPipelineCache>( pipelineCache ),
18012 createInfos.size(),
18013 reinterpret_cast<VkRayTracingPipelineCreateInfoKHR const *>( createInfos.data() ),
18014 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18015 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
18016 detail::resultCheck( result,
18017 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesKHR",
18018 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT },
18019 m_device,
18020 pipelines,
18021 allocator.get(),
18022 d );
18023
18024 return { result, pipelines };
18025 }
18026
18027 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
18028 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
18029 template <typename PipelineAllocator,
18030 typename Dispatch,
18031 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
18032 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
18033 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>> Device::createRayTracingPipelinesKHR(
18034 DeferredOperationKHR deferredOperation,
18035 PipelineCache pipelineCache,
18036 ArrayProxy<RayTracingPipelineCreateInfoKHR const> const & createInfos,
18037 Optional<AllocationCallbacks const> allocator,
18038 PipelineAllocator const & pipelineAllocator,
18039 Dispatch const & d ) const
18040 {
18041 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18042 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18043 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesKHR && "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18044 # endif
18045
18046 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size(), {}, pipelineAllocator );
18047 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( m_device,
18048 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18049 static_cast<VkPipelineCache>( pipelineCache ),
18050 createInfos.size(),
18051 reinterpret_cast<VkRayTracingPipelineCreateInfoKHR const *>( createInfos.data() ),
18052 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18053 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
18054 detail::resultCheck( result,
18055 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesKHR",
18056 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT },
18057 m_device,
18058 pipelines,
18059 allocator.get(),
18060 d );
18061
18062 return { result, pipelines };
18063 }
18064
18065 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
18066 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
18067 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
18068 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<Pipeline> Device::createRayTracingPipelineKHR( DeferredOperationKHR deferredOperation,
18069 PipelineCache pipelineCache,
18070 RayTracingPipelineCreateInfoKHR const & createInfo,
18071 Optional<AllocationCallbacks const> allocator,
18072 Dispatch const & d ) const
18073 {
18074 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18075 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18076 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesKHR && "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18077 # endif
18078
18079 Pipeline pipeline;
18080 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( m_device,
18081 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18082 static_cast<VkPipelineCache>( pipelineCache ),
18083 1,
18084 reinterpret_cast<VkRayTracingPipelineCreateInfoKHR const *>( &createInfo ),
18085 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18086 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
18087 detail::resultCheck( result,
18088 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelineKHR",
18089 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT } );
18090
18091 return { result, pipeline };
18092 }
18093
18094 # ifndef VULKAN_HPP_NO_SMART_HANDLE
18095 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
18096 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
18097 template <typename Dispatch,
18098 typename PipelineAllocator,
18099 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
18100 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
18101 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
18102 Device::createRayTracingPipelinesKHRUnique( DeferredOperationKHR deferredOperation,
18103 PipelineCache pipelineCache,
18104 ArrayProxy<RayTracingPipelineCreateInfoKHR const> const & createInfos,
18105 Optional<AllocationCallbacks const> allocator,
18106 Dispatch const & d ) const
18107 {
18108 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18109 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18110 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesKHR && "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18111 # endif
18112
18113 std::vector<Pipeline> pipelines( createInfos.size() );
18114 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( m_device,
18115 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18116 static_cast<VkPipelineCache>( pipelineCache ),
18117 createInfos.size(),
18118 reinterpret_cast<VkRayTracingPipelineCreateInfoKHR const *>( createInfos.data() ),
18119 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18120 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
18121 detail::resultCheck( result,
18122 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesKHRUnique",
18123 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT },
18124 m_device,
18125 pipelines,
18126 allocator.get(),
18127 d );
18128 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines;
18129 uniquePipelines.reserve( createInfos.size() );
18130 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
18131 for ( auto const & pipeline : pipelines )
18132 {
18133 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
18134 }
18135 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
18136 }
18137
18138 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
18139 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
18140 template <typename Dispatch,
18141 typename PipelineAllocator,
18142 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
18143 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
18144 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
18145 Device::createRayTracingPipelinesKHRUnique( DeferredOperationKHR deferredOperation,
18146 PipelineCache pipelineCache,
18147 ArrayProxy<RayTracingPipelineCreateInfoKHR const> const & createInfos,
18148 Optional<AllocationCallbacks const> allocator,
18149 PipelineAllocator const & pipelineAllocator,
18150 Dispatch const & d ) const
18151 {
18152 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18153 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18154 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesKHR && "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18155 # endif
18156
18157 std::vector<Pipeline> pipelines( createInfos.size() );
18158 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( m_device,
18159 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18160 static_cast<VkPipelineCache>( pipelineCache ),
18161 createInfos.size(),
18162 reinterpret_cast<VkRayTracingPipelineCreateInfoKHR const *>( createInfos.data() ),
18163 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18164 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
18165 detail::resultCheck( result,
18166 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesKHRUnique",
18167 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT },
18168 m_device,
18169 pipelines,
18170 allocator.get(),
18171 d );
18172 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines( pipelineAllocator );
18173 uniquePipelines.reserve( createInfos.size() );
18174 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
18175 for ( auto const & pipeline : pipelines )
18176 {
18177 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
18178 }
18179 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
18180 }
18181
18182 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
18183 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
18184 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
18185 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<Pipeline, Dispatch>> Device::createRayTracingPipelineKHRUnique(
18186 DeferredOperationKHR deferredOperation,
18187 PipelineCache pipelineCache,
18188 RayTracingPipelineCreateInfoKHR const & createInfo,
18189 Optional<AllocationCallbacks const> allocator,
18190 Dispatch const & d ) const
18191 {
18192 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18193 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18194 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesKHR && "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18195 # endif
18196
18197 Pipeline pipeline;
18198 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( m_device,
18199 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18200 static_cast<VkPipelineCache>( pipelineCache ),
18201 1,
18202 reinterpret_cast<VkRayTracingPipelineCreateInfoKHR const *>( &createInfo ),
18203 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18204 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
18205 detail::resultCheck( result,
18206 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelineKHRUnique",
18207 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT } );
18208
18209 return ResultValue<UniqueHandle<Pipeline, Dispatch>>(
18210 result, UniqueHandle<Pipeline, Dispatch>( pipeline, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
18211 }
18212 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
18213 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18214
18215 // wrapper function for command vkGetRayTracingShaderGroupHandlesKHR, see
18216 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesKHR.html
18217 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupHandlesKHR ), bool>::type>
18218 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getRayTracingShaderGroupHandlesKHR(
18219 Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18220 {
18221 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18222 return static_cast<Result>( d.vkGetRayTracingShaderGroupHandlesKHR(
18223 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, dataSize, pData ) );
18224 }
18225
18226 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18227 // wrapper function for command vkGetRayTracingShaderGroupHandlesKHR, see
18228 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesKHR.html
18229 template <typename DataType,
18230 typename DataTypeAllocator,
18231 typename Dispatch,
18232 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
18233 typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupHandlesKHR ), bool>::type>
18234 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType, DataTypeAllocator>>::type Device::getRayTracingShaderGroupHandlesKHR(
18235 Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, Dispatch const & d ) const
18236 {
18237 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18238 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18239 VULKAN_HPP_ASSERT( d.vkGetRayTracingShaderGroupHandlesKHR &&
18240 "Function <vkGetRayTracingShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
18241 # endif
18242
18243 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
18244 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
18245 Result result = static_cast<Result>( d.vkGetRayTracingShaderGroupHandlesKHR(
18246 m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast<void *>( data.data() ) ) );
18247 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandlesKHR" );
18248
18249 return detail::createResultValueType( result, std::move( data ) );
18250 }
18251
18252 // wrapper function for command vkGetRayTracingShaderGroupHandlesKHR, see
18253 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesKHR.html
18254 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupHandlesKHR ), bool>::type>
18255 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::getRayTracingShaderGroupHandleKHR(
18256 Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, Dispatch const & d ) const
18257 {
18258 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18259 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18260 VULKAN_HPP_ASSERT( d.vkGetRayTracingShaderGroupHandlesKHR &&
18261 "Function <vkGetRayTracingShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
18262 # endif
18263
18264 DataType data;
18265 Result result = static_cast<Result>( d.vkGetRayTracingShaderGroupHandlesKHR(
18266 m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast<void *>( &data ) ) );
18267 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandleKHR" );
18268
18269 return detail::createResultValueType( result, std::move( data ) );
18270 }
18271 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18272
18273 // wrapper function for command vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, see
18274 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html
18275 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingCaptureReplayShaderGroupHandlesKHR ), bool>::type>
18276 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getRayTracingCaptureReplayShaderGroupHandlesKHR(
18277 Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18278 {
18279 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18280 return static_cast<Result>( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR(
18281 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, dataSize, pData ) );
18282 }
18283
18284 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18285 // wrapper function for command vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, see
18286 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html
18287 template <typename DataType,
18288 typename DataTypeAllocator,
18289 typename Dispatch,
18290 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
18291 typename std::enable_if<IS_DISPATCHED( vkGetRayTracingCaptureReplayShaderGroupHandlesKHR ), bool>::type>
18292 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType, DataTypeAllocator>>::type
18293 Device::getRayTracingCaptureReplayShaderGroupHandlesKHR( Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, Dispatch const & d )
18294 const
18295 {
18296 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18297 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18298 VULKAN_HPP_ASSERT( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR &&
18299 "Function <vkGetRayTracingCaptureReplayShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18300 # endif
18301
18302 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
18303 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
18304 Result result = static_cast<Result>( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR(
18305 m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast<void *>( data.data() ) ) );
18306 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingCaptureReplayShaderGroupHandlesKHR" );
18307
18308 return detail::createResultValueType( result, std::move( data ) );
18309 }
18310
18311 // wrapper function for command vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, see
18312 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html
18313 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingCaptureReplayShaderGroupHandlesKHR ), bool>::type>
18314 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::getRayTracingCaptureReplayShaderGroupHandleKHR(
18315 Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, Dispatch const & d ) const
18316 {
18317 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18318 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18319 VULKAN_HPP_ASSERT( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR &&
18320 "Function <vkGetRayTracingCaptureReplayShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18321 # endif
18322
18323 DataType data;
18324 Result result = static_cast<Result>( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR(
18325 m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast<void *>( &data ) ) );
18326 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingCaptureReplayShaderGroupHandleKHR" );
18327
18328 return detail::createResultValueType( result, std::move( data ) );
18329 }
18330 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18331
18332 // wrapper function for command vkCmdTraceRaysIndirectKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysIndirectKHR.html
18333 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdTraceRaysIndirectKHR ), bool>::type>
18334 VULKAN_HPP_INLINE void CommandBuffer::traceRaysIndirectKHR( StridedDeviceAddressRegionKHR const * pRaygenShaderBindingTable,
18335 StridedDeviceAddressRegionKHR const * pMissShaderBindingTable,
18336 StridedDeviceAddressRegionKHR const * pHitShaderBindingTable,
18337 StridedDeviceAddressRegionKHR const * pCallableShaderBindingTable,
18338 DeviceAddress indirectDeviceAddress,
18339 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18340 {
18341 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18342 d.vkCmdTraceRaysIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
18343 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( pRaygenShaderBindingTable ),
18344 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( pMissShaderBindingTable ),
18345 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( pHitShaderBindingTable ),
18346 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( pCallableShaderBindingTable ),
18347 static_cast<VkDeviceAddress>( indirectDeviceAddress ) );
18348 }
18349
18350 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18351 // wrapper function for command vkCmdTraceRaysIndirectKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysIndirectKHR.html
18352 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdTraceRaysIndirectKHR ), bool>::type>
18353 VULKAN_HPP_INLINE void CommandBuffer::traceRaysIndirectKHR( StridedDeviceAddressRegionKHR const & raygenShaderBindingTable,
18354 StridedDeviceAddressRegionKHR const & missShaderBindingTable,
18355 StridedDeviceAddressRegionKHR const & hitShaderBindingTable,
18356 StridedDeviceAddressRegionKHR const & callableShaderBindingTable,
18357 DeviceAddress indirectDeviceAddress,
18358 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18359 {
18360 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18361 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18362 VULKAN_HPP_ASSERT( d.vkCmdTraceRaysIndirectKHR && "Function <vkCmdTraceRaysIndirectKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18363 # endif
18364
18365 d.vkCmdTraceRaysIndirectKHR( m_commandBuffer,
18366 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &raygenShaderBindingTable ),
18367 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &missShaderBindingTable ),
18368 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &hitShaderBindingTable ),
18369 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &callableShaderBindingTable ),
18370 static_cast<VkDeviceAddress>( indirectDeviceAddress ) );
18371 }
18372 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18373
18374 // wrapper function for command vkGetRayTracingShaderGroupStackSizeKHR, see
18375 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupStackSizeKHR.html
18376 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupStackSizeKHR ), bool>::type>
18377 VULKAN_HPP_INLINE DeviceSize Device::getRayTracingShaderGroupStackSizeKHR(
18378 Pipeline pipeline, uint32_t group, ShaderGroupShaderKHR groupShader, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18379 {
18380 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18381 return static_cast<DeviceSize>( d.vkGetRayTracingShaderGroupStackSizeKHR(
18382 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), group, static_cast<VkShaderGroupShaderKHR>( groupShader ) ) );
18383 }
18384
18385 // wrapper function for command vkCmdSetRayTracingPipelineStackSizeKHR, see
18386 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRayTracingPipelineStackSizeKHR.html
18387 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRayTracingPipelineStackSizeKHR ), bool>::type>
18388 VULKAN_HPP_INLINE void CommandBuffer::setRayTracingPipelineStackSizeKHR( uint32_t pipelineStackSize, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18389 {
18390 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18391 d.vkCmdSetRayTracingPipelineStackSizeKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), pipelineStackSize );
18392 }
18393
18394 //=== VK_KHR_sampler_ycbcr_conversion ===
18395
18396 // wrapper function for command vkCreateSamplerYcbcrConversionKHR, see
18397 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversionKHR.html
18398 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSamplerYcbcrConversionKHR ), bool>::type>
18399 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createSamplerYcbcrConversionKHR( SamplerYcbcrConversionCreateInfo const * pCreateInfo,
18400 AllocationCallbacks const * pAllocator,
18401 SamplerYcbcrConversion * pYcbcrConversion,
18402 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18403 {
18404 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18405 return static_cast<Result>( d.vkCreateSamplerYcbcrConversionKHR( static_cast<VkDevice>( m_device ),
18406 reinterpret_cast<VkSamplerYcbcrConversionCreateInfo const *>( pCreateInfo ),
18407 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
18408 reinterpret_cast<VkSamplerYcbcrConversion *>( pYcbcrConversion ) ) );
18409 }
18410
18411 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18412 // wrapper function for command vkCreateSamplerYcbcrConversionKHR, see
18413 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversionKHR.html
18414 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSamplerYcbcrConversionKHR ), bool>::type>
18415 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SamplerYcbcrConversion>::type Device::createSamplerYcbcrConversionKHR(
18416 SamplerYcbcrConversionCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
18417 {
18418 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18419 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18420 VULKAN_HPP_ASSERT( d.vkCreateSamplerYcbcrConversionKHR &&
18421 "Function <vkCreateSamplerYcbcrConversionKHR> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
18422 # endif
18423
18424 SamplerYcbcrConversion ycbcrConversion;
18425 Result result = static_cast<Result>( d.vkCreateSamplerYcbcrConversionKHR( m_device,
18426 reinterpret_cast<VkSamplerYcbcrConversionCreateInfo const *>( &createInfo ),
18427 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18428 reinterpret_cast<VkSamplerYcbcrConversion *>( &ycbcrConversion ) ) );
18429 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerYcbcrConversionKHR" );
18430
18431 return detail::createResultValueType( result, std::move( ycbcrConversion ) );
18432 }
18433
18434 # ifndef VULKAN_HPP_NO_SMART_HANDLE
18435 // wrapper function for command vkCreateSamplerYcbcrConversionKHR, see
18436 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversionKHR.html
18437 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSamplerYcbcrConversionKHR ), bool>::type>
18438 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SamplerYcbcrConversion, Dispatch>>::type
18439 Device::createSamplerYcbcrConversionKHRUnique(
18440 SamplerYcbcrConversionCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
18441 {
18442 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18443 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18444 VULKAN_HPP_ASSERT( d.vkCreateSamplerYcbcrConversionKHR &&
18445 "Function <vkCreateSamplerYcbcrConversionKHR> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
18446 # endif
18447
18448 SamplerYcbcrConversion ycbcrConversion;
18449 Result result = static_cast<Result>( d.vkCreateSamplerYcbcrConversionKHR( m_device,
18450 reinterpret_cast<VkSamplerYcbcrConversionCreateInfo const *>( &createInfo ),
18451 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18452 reinterpret_cast<VkSamplerYcbcrConversion *>( &ycbcrConversion ) ) );
18453 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerYcbcrConversionKHRUnique" );
18454
18455 return detail::createResultValueType(
18456 result, UniqueHandle<SamplerYcbcrConversion, Dispatch>( ycbcrConversion, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
18457 }
18458 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
18459 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18460
18461 // wrapper function for command vkDestroySamplerYcbcrConversionKHR, see
18462 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversionKHR.html
18463 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySamplerYcbcrConversionKHR ), bool>::type>
18464 VULKAN_HPP_INLINE void Device::destroySamplerYcbcrConversionKHR(
18465 SamplerYcbcrConversion ycbcrConversion, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18466 {
18467 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18468 d.vkDestroySamplerYcbcrConversionKHR( static_cast<VkDevice>( m_device ),
18469 static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ),
18470 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
18471 }
18472
18473 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18474 // wrapper function for command vkDestroySamplerYcbcrConversionKHR, see
18475 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversionKHR.html
18476 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySamplerYcbcrConversionKHR ), bool>::type>
18477 VULKAN_HPP_INLINE void Device::destroySamplerYcbcrConversionKHR(
18478 SamplerYcbcrConversion ycbcrConversion, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18479 {
18480 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18481 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18482 VULKAN_HPP_ASSERT( d.vkDestroySamplerYcbcrConversionKHR &&
18483 "Function <vkDestroySamplerYcbcrConversionKHR> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
18484 # endif
18485
18486 d.vkDestroySamplerYcbcrConversionKHR(
18487 m_device, static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
18488 }
18489 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18490
18491 //=== VK_KHR_bind_memory2 ===
18492
18493 // wrapper function for command vkBindBufferMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory2KHR.html
18494 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindBufferMemory2KHR ), bool>::type>
18495 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindBufferMemory2KHR(
18496 uint32_t bindInfoCount, BindBufferMemoryInfo const * pBindInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18497 {
18498 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18499 return static_cast<Result>(
18500 d.vkBindBufferMemory2KHR( static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<VkBindBufferMemoryInfo const *>( pBindInfos ) ) );
18501 }
18502
18503 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18504 // wrapper function for command vkBindBufferMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory2KHR.html
18505 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindBufferMemory2KHR ), bool>::type>
18506 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindBufferMemory2KHR(
18507 ArrayProxy<BindBufferMemoryInfo const> const & bindInfos, Dispatch const & d ) const
18508 {
18509 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18510 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18511 VULKAN_HPP_ASSERT( d.vkBindBufferMemory2KHR && "Function <vkBindBufferMemory2KHR> requires <VK_KHR_bind_memory2> or <VK_VERSION_1_1>" );
18512 # endif
18513
18514 Result result =
18515 static_cast<Result>( d.vkBindBufferMemory2KHR( m_device, bindInfos.size(), reinterpret_cast<VkBindBufferMemoryInfo const *>( bindInfos.data() ) ) );
18516 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindBufferMemory2KHR" );
18517
18518 return detail::createResultValueType( result );
18519 }
18520 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18521
18522 // wrapper function for command vkBindImageMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory2KHR.html
18523 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindImageMemory2KHR ), bool>::type>
18524 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindImageMemory2KHR(
18525 uint32_t bindInfoCount, BindImageMemoryInfo const * pBindInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18526 {
18527 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18528 return static_cast<Result>(
18529 d.vkBindImageMemory2KHR( static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<VkBindImageMemoryInfo const *>( pBindInfos ) ) );
18530 }
18531
18532 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18533 // wrapper function for command vkBindImageMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory2KHR.html
18534 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindImageMemory2KHR ), bool>::type>
18535 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindImageMemory2KHR(
18536 ArrayProxy<BindImageMemoryInfo const> const & bindInfos, 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.vkBindImageMemory2KHR && "Function <vkBindImageMemory2KHR> requires <VK_KHR_bind_memory2> or <VK_VERSION_1_1>" );
18541 # endif
18542
18543 Result result =
18544 static_cast<Result>( d.vkBindImageMemory2KHR( m_device, bindInfos.size(), reinterpret_cast<VkBindImageMemoryInfo const *>( bindInfos.data() ) ) );
18545 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindImageMemory2KHR" );
18546
18547 return detail::createResultValueType( result );
18548 }
18549 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18550
18551 //=== VK_EXT_image_drm_format_modifier ===
18552
18553 // wrapper function for command vkGetImageDrmFormatModifierPropertiesEXT, see
18554 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageDrmFormatModifierPropertiesEXT.html
18555 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageDrmFormatModifierPropertiesEXT ), bool>::type>
18556 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getImageDrmFormatModifierPropertiesEXT(
18557 Image image, ImageDrmFormatModifierPropertiesEXT * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18558 {
18559 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18560 return static_cast<Result>( d.vkGetImageDrmFormatModifierPropertiesEXT(
18561 static_cast<VkDevice>( m_device ), static_cast<VkImage>( image ), reinterpret_cast<VkImageDrmFormatModifierPropertiesEXT *>( pProperties ) ) );
18562 }
18563
18564 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18565 // wrapper function for command vkGetImageDrmFormatModifierPropertiesEXT, see
18566 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageDrmFormatModifierPropertiesEXT.html
18567 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageDrmFormatModifierPropertiesEXT ), bool>::type>
18568 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageDrmFormatModifierPropertiesEXT>::type Device::getImageDrmFormatModifierPropertiesEXT(
18569 Image image, Dispatch const & d ) const
18570 {
18571 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18572 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18573 VULKAN_HPP_ASSERT( d.vkGetImageDrmFormatModifierPropertiesEXT &&
18574 "Function <vkGetImageDrmFormatModifierPropertiesEXT> requires <VK_EXT_image_drm_format_modifier>" );
18575 # endif
18576
18577 ImageDrmFormatModifierPropertiesEXT properties;
18578 Result result = static_cast<Result>( d.vkGetImageDrmFormatModifierPropertiesEXT(
18579 m_device, static_cast<VkImage>( image ), reinterpret_cast<VkImageDrmFormatModifierPropertiesEXT *>( &properties ) ) );
18580 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageDrmFormatModifierPropertiesEXT" );
18581
18582 return detail::createResultValueType( result, std::move( properties ) );
18583 }
18584 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18585
18586 //=== VK_EXT_validation_cache ===
18587
18588 // wrapper function for command vkCreateValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateValidationCacheEXT.html
18589 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateValidationCacheEXT ), bool>::type>
18590 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createValidationCacheEXT(
18591 ValidationCacheCreateInfoEXT const * pCreateInfo, AllocationCallbacks const * pAllocator, ValidationCacheEXT * pValidationCache, Dispatch const & d )
18592 const VULKAN_HPP_NOEXCEPT
18593 {
18594 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18595 return static_cast<Result>( d.vkCreateValidationCacheEXT( static_cast<VkDevice>( m_device ),
18596 reinterpret_cast<VkValidationCacheCreateInfoEXT const *>( pCreateInfo ),
18597 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
18598 reinterpret_cast<VkValidationCacheEXT *>( pValidationCache ) ) );
18599 }
18600
18601 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18602 // wrapper function for command vkCreateValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateValidationCacheEXT.html
18603 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateValidationCacheEXT ), bool>::type>
18604 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ValidationCacheEXT>::type Device::createValidationCacheEXT(
18605 ValidationCacheCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
18606 {
18607 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18608 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18609 VULKAN_HPP_ASSERT( d.vkCreateValidationCacheEXT && "Function <vkCreateValidationCacheEXT> requires <VK_EXT_validation_cache>" );
18610 # endif
18611
18612 ValidationCacheEXT validationCache;
18613 Result result = static_cast<Result>( d.vkCreateValidationCacheEXT( m_device,
18614 reinterpret_cast<VkValidationCacheCreateInfoEXT const *>( &createInfo ),
18615 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18616 reinterpret_cast<VkValidationCacheEXT *>( &validationCache ) ) );
18617 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createValidationCacheEXT" );
18618
18619 return detail::createResultValueType( result, std::move( validationCache ) );
18620 }
18621
18622 # ifndef VULKAN_HPP_NO_SMART_HANDLE
18623 // wrapper function for command vkCreateValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateValidationCacheEXT.html
18624 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateValidationCacheEXT ), bool>::type>
18625 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<ValidationCacheEXT, Dispatch>>::type Device::createValidationCacheEXTUnique(
18626 ValidationCacheCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
18627 {
18628 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18629 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18630 VULKAN_HPP_ASSERT( d.vkCreateValidationCacheEXT && "Function <vkCreateValidationCacheEXT> requires <VK_EXT_validation_cache>" );
18631 # endif
18632
18633 ValidationCacheEXT validationCache;
18634 Result result = static_cast<Result>( d.vkCreateValidationCacheEXT( m_device,
18635 reinterpret_cast<VkValidationCacheCreateInfoEXT const *>( &createInfo ),
18636 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18637 reinterpret_cast<VkValidationCacheEXT *>( &validationCache ) ) );
18638 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createValidationCacheEXTUnique" );
18639
18640 return detail::createResultValueType(
18641 result, UniqueHandle<ValidationCacheEXT, Dispatch>( validationCache, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
18642 }
18643 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
18644 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18645
18646 // wrapper function for command vkDestroyValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyValidationCacheEXT.html
18647 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyValidationCacheEXT ), bool>::type>
18648 VULKAN_HPP_INLINE void Device::destroyValidationCacheEXT( ValidationCacheEXT validationCache, AllocationCallbacks const * pAllocator, Dispatch const & d )
18649 const VULKAN_HPP_NOEXCEPT
18650 {
18651 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18652 d.vkDestroyValidationCacheEXT(
18653 static_cast<VkDevice>( m_device ), static_cast<VkValidationCacheEXT>( validationCache ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
18654 }
18655
18656 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18657 // wrapper function for command vkDestroyValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyValidationCacheEXT.html
18658 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyValidationCacheEXT ), bool>::type>
18659 VULKAN_HPP_INLINE void Device::destroyValidationCacheEXT(
18660 ValidationCacheEXT validationCache, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18661 {
18662 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18663 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18664 VULKAN_HPP_ASSERT( d.vkDestroyValidationCacheEXT && "Function <vkDestroyValidationCacheEXT> requires <VK_EXT_validation_cache>" );
18665 # endif
18666
18667 d.vkDestroyValidationCacheEXT(
18668 m_device, static_cast<VkValidationCacheEXT>( validationCache ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
18669 }
18670 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18671
18672 // wrapper function for command vkDestroyValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyValidationCacheEXT.html
18673 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyValidationCacheEXT ), bool>::type>
18674 VULKAN_HPP_INLINE void Device::destroy( ValidationCacheEXT validationCache, AllocationCallbacks const * pAllocator, Dispatch const & d )
18675 const VULKAN_HPP_NOEXCEPT
18676 {
18677 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18678 d.vkDestroyValidationCacheEXT(
18679 static_cast<VkDevice>( m_device ), static_cast<VkValidationCacheEXT>( validationCache ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
18680 }
18681
18682 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18683 // wrapper function for command vkDestroyValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyValidationCacheEXT.html
18684 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyValidationCacheEXT ), bool>::type>
18685 VULKAN_HPP_INLINE void Device::destroy( ValidationCacheEXT validationCache, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
18686 const VULKAN_HPP_NOEXCEPT
18687 {
18688 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18689 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18690 VULKAN_HPP_ASSERT( d.vkDestroyValidationCacheEXT && "Function <vkDestroyValidationCacheEXT> requires <VK_EXT_validation_cache>" );
18691 # endif
18692
18693 d.vkDestroyValidationCacheEXT(
18694 m_device, static_cast<VkValidationCacheEXT>( validationCache ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
18695 }
18696 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18697
18698 // wrapper function for command vkMergeValidationCachesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMergeValidationCachesEXT.html
18699 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMergeValidationCachesEXT ), bool>::type>
18700 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::mergeValidationCachesEXT(
18701 ValidationCacheEXT dstCache, uint32_t srcCacheCount, ValidationCacheEXT const * pSrcCaches, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18702 {
18703 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18704 return static_cast<Result>( d.vkMergeValidationCachesEXT( static_cast<VkDevice>( m_device ),
18705 static_cast<VkValidationCacheEXT>( dstCache ),
18706 srcCacheCount,
18707 reinterpret_cast<VkValidationCacheEXT const *>( pSrcCaches ) ) );
18708 }
18709
18710 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18711 // wrapper function for command vkMergeValidationCachesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMergeValidationCachesEXT.html
18712 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMergeValidationCachesEXT ), bool>::type>
18713 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::mergeValidationCachesEXT(
18714 ValidationCacheEXT dstCache, ArrayProxy<ValidationCacheEXT const> const & srcCaches, Dispatch const & d ) const
18715 {
18716 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18717 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18718 VULKAN_HPP_ASSERT( d.vkMergeValidationCachesEXT && "Function <vkMergeValidationCachesEXT> requires <VK_EXT_validation_cache>" );
18719 # endif
18720
18721 Result result = static_cast<Result>( d.vkMergeValidationCachesEXT(
18722 m_device, static_cast<VkValidationCacheEXT>( dstCache ), srcCaches.size(), reinterpret_cast<VkValidationCacheEXT const *>( srcCaches.data() ) ) );
18723 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mergeValidationCachesEXT" );
18724
18725 return detail::createResultValueType( result );
18726 }
18727 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18728
18729 // wrapper function for command vkGetValidationCacheDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetValidationCacheDataEXT.html
18730 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetValidationCacheDataEXT ), bool>::type>
18731 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getValidationCacheDataEXT(
18732 ValidationCacheEXT validationCache, size_t * pDataSize, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18733 {
18734 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18735 return static_cast<Result>(
18736 d.vkGetValidationCacheDataEXT( static_cast<VkDevice>( m_device ), static_cast<VkValidationCacheEXT>( validationCache ), pDataSize, pData ) );
18737 }
18738
18739 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18740 // wrapper function for command vkGetValidationCacheDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetValidationCacheDataEXT.html
18741 template <typename Uint8_tAllocator,
18742 typename Dispatch,
18743 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
18744 typename std::enable_if<IS_DISPATCHED( vkGetValidationCacheDataEXT ), bool>::type>
18745 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type Device::getValidationCacheDataEXT(
18746 ValidationCacheEXT validationCache, Dispatch const & d ) const
18747 {
18748 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18749 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18750 VULKAN_HPP_ASSERT( d.vkGetValidationCacheDataEXT && "Function <vkGetValidationCacheDataEXT> requires <VK_EXT_validation_cache>" );
18751 # endif
18752
18753 std::vector<uint8_t, Uint8_tAllocator> data;
18754 size_t dataSize;
18755 Result result;
18756 do
18757 {
18758 result = static_cast<Result>( d.vkGetValidationCacheDataEXT( m_device, static_cast<VkValidationCacheEXT>( validationCache ), &dataSize, nullptr ) );
18759 if ( ( result == Result::eSuccess ) && dataSize )
18760 {
18761 data.resize( dataSize );
18762 result = static_cast<Result>(
18763 d.vkGetValidationCacheDataEXT( m_device, static_cast<VkValidationCacheEXT>( validationCache ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
18764 }
18765 } while ( result == Result::eIncomplete );
18766 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getValidationCacheDataEXT" );
18767 VULKAN_HPP_ASSERT( dataSize <= data.size() );
18768 if ( dataSize < data.size() )
18769 {
18770 data.resize( dataSize );
18771 }
18772 return detail::createResultValueType( result, std::move( data ) );
18773 }
18774
18775 // wrapper function for command vkGetValidationCacheDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetValidationCacheDataEXT.html
18776 template <typename Uint8_tAllocator,
18777 typename Dispatch,
18778 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
18779 typename std::enable_if<IS_DISPATCHED( vkGetValidationCacheDataEXT ), bool>::type>
18780 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type Device::getValidationCacheDataEXT(
18781 ValidationCacheEXT validationCache, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
18782 {
18783 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18784 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18785 VULKAN_HPP_ASSERT( d.vkGetValidationCacheDataEXT && "Function <vkGetValidationCacheDataEXT> requires <VK_EXT_validation_cache>" );
18786 # endif
18787
18788 std::vector<uint8_t, Uint8_tAllocator> data( uint8_tAllocator );
18789 size_t dataSize;
18790 Result result;
18791 do
18792 {
18793 result = static_cast<Result>( d.vkGetValidationCacheDataEXT( m_device, static_cast<VkValidationCacheEXT>( validationCache ), &dataSize, nullptr ) );
18794 if ( ( result == Result::eSuccess ) && dataSize )
18795 {
18796 data.resize( dataSize );
18797 result = static_cast<Result>(
18798 d.vkGetValidationCacheDataEXT( m_device, static_cast<VkValidationCacheEXT>( validationCache ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
18799 }
18800 } while ( result == Result::eIncomplete );
18801 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getValidationCacheDataEXT" );
18802 VULKAN_HPP_ASSERT( dataSize <= data.size() );
18803 if ( dataSize < data.size() )
18804 {
18805 data.resize( dataSize );
18806 }
18807 return detail::createResultValueType( result, std::move( data ) );
18808 }
18809 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18810
18811 //=== VK_NV_shading_rate_image ===
18812
18813 // wrapper function for command vkCmdBindShadingRateImageNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindShadingRateImageNV.html
18814 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindShadingRateImageNV ), bool>::type>
18815 VULKAN_HPP_INLINE void CommandBuffer::bindShadingRateImageNV( ImageView imageView, ImageLayout imageLayout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18816 {
18817 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18818 d.vkCmdBindShadingRateImageNV(
18819 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkImageView>( imageView ), static_cast<VkImageLayout>( imageLayout ) );
18820 }
18821
18822 // wrapper function for command vkCmdSetViewportShadingRatePaletteNV, see
18823 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportShadingRatePaletteNV.html
18824 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportShadingRatePaletteNV ), bool>::type>
18825 VULKAN_HPP_INLINE void CommandBuffer::setViewportShadingRatePaletteNV(
18826 uint32_t firstViewport, uint32_t viewportCount, ShadingRatePaletteNV const * pShadingRatePalettes, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18827 {
18828 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18829 d.vkCmdSetViewportShadingRatePaletteNV(
18830 static_cast<VkCommandBuffer>( m_commandBuffer ), firstViewport, viewportCount, reinterpret_cast<VkShadingRatePaletteNV const *>( pShadingRatePalettes ) );
18831 }
18832
18833 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18834 // wrapper function for command vkCmdSetViewportShadingRatePaletteNV, see
18835 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportShadingRatePaletteNV.html
18836 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportShadingRatePaletteNV ), bool>::type>
18837 VULKAN_HPP_INLINE void CommandBuffer::setViewportShadingRatePaletteNV(
18838 uint32_t firstViewport, ArrayProxy<ShadingRatePaletteNV const> const & shadingRatePalettes, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18839 {
18840 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18841 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18842 VULKAN_HPP_ASSERT( d.vkCmdSetViewportShadingRatePaletteNV && "Function <vkCmdSetViewportShadingRatePaletteNV> requires <VK_NV_shading_rate_image>" );
18843 # endif
18844
18845 d.vkCmdSetViewportShadingRatePaletteNV(
18846 m_commandBuffer, firstViewport, shadingRatePalettes.size(), reinterpret_cast<VkShadingRatePaletteNV const *>( shadingRatePalettes.data() ) );
18847 }
18848 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18849
18850 // wrapper function for command vkCmdSetCoarseSampleOrderNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoarseSampleOrderNV.html
18851 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoarseSampleOrderNV ), bool>::type>
18852 VULKAN_HPP_INLINE void CommandBuffer::setCoarseSampleOrderNV(
18853 CoarseSampleOrderTypeNV sampleOrderType, uint32_t customSampleOrderCount, CoarseSampleOrderCustomNV const * pCustomSampleOrders, Dispatch const & d )
18854 const VULKAN_HPP_NOEXCEPT
18855 {
18856 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18857 d.vkCmdSetCoarseSampleOrderNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
18858 static_cast<VkCoarseSampleOrderTypeNV>( sampleOrderType ),
18859 customSampleOrderCount,
18860 reinterpret_cast<VkCoarseSampleOrderCustomNV const *>( pCustomSampleOrders ) );
18861 }
18862
18863 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18864 // wrapper function for command vkCmdSetCoarseSampleOrderNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoarseSampleOrderNV.html
18865 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoarseSampleOrderNV ), bool>::type>
18866 VULKAN_HPP_INLINE void CommandBuffer::setCoarseSampleOrderNV(
18867 CoarseSampleOrderTypeNV sampleOrderType, ArrayProxy<CoarseSampleOrderCustomNV const> const & customSampleOrders, Dispatch const & d )
18868 const VULKAN_HPP_NOEXCEPT
18869 {
18870 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18871 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18872 VULKAN_HPP_ASSERT( d.vkCmdSetCoarseSampleOrderNV && "Function <vkCmdSetCoarseSampleOrderNV> requires <VK_NV_shading_rate_image>" );
18873 # endif
18874
18875 d.vkCmdSetCoarseSampleOrderNV( m_commandBuffer,
18876 static_cast<VkCoarseSampleOrderTypeNV>( sampleOrderType ),
18877 customSampleOrders.size(),
18878 reinterpret_cast<VkCoarseSampleOrderCustomNV const *>( customSampleOrders.data() ) );
18879 }
18880 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18881
18882 //=== VK_NV_ray_tracing ===
18883
18884 // wrapper function for command vkCreateAccelerationStructureNV, see
18885 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureNV.html
18886 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructureNV ), bool>::type>
18887 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createAccelerationStructureNV( AccelerationStructureCreateInfoNV const * pCreateInfo,
18888 AllocationCallbacks const * pAllocator,
18889 AccelerationStructureNV * pAccelerationStructure,
18890 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18891 {
18892 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18893 return static_cast<Result>( d.vkCreateAccelerationStructureNV( static_cast<VkDevice>( m_device ),
18894 reinterpret_cast<VkAccelerationStructureCreateInfoNV const *>( pCreateInfo ),
18895 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
18896 reinterpret_cast<VkAccelerationStructureNV *>( pAccelerationStructure ) ) );
18897 }
18898
18899 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18900 // wrapper function for command vkCreateAccelerationStructureNV, see
18901 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureNV.html
18902 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructureNV ), bool>::type>
18903 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<AccelerationStructureNV>::type Device::createAccelerationStructureNV(
18904 AccelerationStructureCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
18905 {
18906 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18907 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18908 VULKAN_HPP_ASSERT( d.vkCreateAccelerationStructureNV && "Function <vkCreateAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
18909 # endif
18910
18911 AccelerationStructureNV accelerationStructure;
18912 Result result = static_cast<Result>( d.vkCreateAccelerationStructureNV( m_device,
18913 reinterpret_cast<VkAccelerationStructureCreateInfoNV const *>( &createInfo ),
18914 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18915 reinterpret_cast<VkAccelerationStructureNV *>( &accelerationStructure ) ) );
18916 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createAccelerationStructureNV" );
18917
18918 return detail::createResultValueType( result, std::move( accelerationStructure ) );
18919 }
18920
18921 # ifndef VULKAN_HPP_NO_SMART_HANDLE
18922 // wrapper function for command vkCreateAccelerationStructureNV, see
18923 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureNV.html
18924 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructureNV ), bool>::type>
18925 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<AccelerationStructureNV, Dispatch>>::type
18926 Device::createAccelerationStructureNVUnique(
18927 AccelerationStructureCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
18928 {
18929 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18930 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18931 VULKAN_HPP_ASSERT( d.vkCreateAccelerationStructureNV && "Function <vkCreateAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
18932 # endif
18933
18934 AccelerationStructureNV accelerationStructure;
18935 Result result = static_cast<Result>( d.vkCreateAccelerationStructureNV( m_device,
18936 reinterpret_cast<VkAccelerationStructureCreateInfoNV const *>( &createInfo ),
18937 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18938 reinterpret_cast<VkAccelerationStructureNV *>( &accelerationStructure ) ) );
18939 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createAccelerationStructureNVUnique" );
18940
18941 return detail::createResultValueType(
18942 result, UniqueHandle<AccelerationStructureNV, Dispatch>( accelerationStructure, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
18943 }
18944 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
18945 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18946
18947 // wrapper function for command vkDestroyAccelerationStructureNV, see
18948 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureNV.html
18949 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureNV ), bool>::type>
18950 VULKAN_HPP_INLINE void Device::destroyAccelerationStructureNV(
18951 AccelerationStructureNV accelerationStructure, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18952 {
18953 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18954 d.vkDestroyAccelerationStructureNV( static_cast<VkDevice>( m_device ),
18955 static_cast<VkAccelerationStructureNV>( accelerationStructure ),
18956 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
18957 }
18958
18959 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18960 // wrapper function for command vkDestroyAccelerationStructureNV, see
18961 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureNV.html
18962 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureNV ), bool>::type>
18963 VULKAN_HPP_INLINE void Device::destroyAccelerationStructureNV(
18964 AccelerationStructureNV accelerationStructure, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18965 {
18966 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18967 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18968 VULKAN_HPP_ASSERT( d.vkDestroyAccelerationStructureNV && "Function <vkDestroyAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
18969 # endif
18970
18971 d.vkDestroyAccelerationStructureNV(
18972 m_device, static_cast<VkAccelerationStructureNV>( accelerationStructure ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
18973 }
18974 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18975
18976 // wrapper function for command vkDestroyAccelerationStructureNV, see
18977 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureNV.html
18978 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureNV ), bool>::type>
18979 VULKAN_HPP_INLINE void Device::destroy( AccelerationStructureNV accelerationStructure, AllocationCallbacks const * pAllocator, Dispatch const & d )
18980 const VULKAN_HPP_NOEXCEPT
18981 {
18982 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18983 d.vkDestroyAccelerationStructureNV( static_cast<VkDevice>( m_device ),
18984 static_cast<VkAccelerationStructureNV>( accelerationStructure ),
18985 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
18986 }
18987
18988 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18989 // wrapper function for command vkDestroyAccelerationStructureNV, see
18990 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureNV.html
18991 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureNV ), bool>::type>
18992 VULKAN_HPP_INLINE void Device::destroy( AccelerationStructureNV accelerationStructure, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
18993 const VULKAN_HPP_NOEXCEPT
18994 {
18995 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18996 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18997 VULKAN_HPP_ASSERT( d.vkDestroyAccelerationStructureNV && "Function <vkDestroyAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
18998 # endif
18999
19000 d.vkDestroyAccelerationStructureNV(
19001 m_device, static_cast<VkAccelerationStructureNV>( accelerationStructure ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
19002 }
19003 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19004
19005 // wrapper function for command vkGetAccelerationStructureMemoryRequirementsNV, see
19006 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureMemoryRequirementsNV.html
19007 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureMemoryRequirementsNV ), bool>::type>
19008 VULKAN_HPP_INLINE void Device::getAccelerationStructureMemoryRequirementsNV(
19009 AccelerationStructureMemoryRequirementsInfoNV const * pInfo, MemoryRequirements2KHR * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19010 {
19011 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19012 d.vkGetAccelerationStructureMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
19013 reinterpret_cast<VkAccelerationStructureMemoryRequirementsInfoNV const *>( pInfo ),
19014 reinterpret_cast<VkMemoryRequirements2KHR *>( pMemoryRequirements ) );
19015 }
19016
19017 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19018 // wrapper function for command vkGetAccelerationStructureMemoryRequirementsNV, see
19019 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureMemoryRequirementsNV.html
19020 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureMemoryRequirementsNV ), bool>::type>
19021 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2KHR Device::getAccelerationStructureMemoryRequirementsNV(
19022 AccelerationStructureMemoryRequirementsInfoNV const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19023 {
19024 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19025 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19026 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureMemoryRequirementsNV &&
19027 "Function <vkGetAccelerationStructureMemoryRequirementsNV> requires <VK_NV_ray_tracing>" );
19028 # endif
19029
19030 MemoryRequirements2KHR memoryRequirements;
19031 d.vkGetAccelerationStructureMemoryRequirementsNV( m_device,
19032 reinterpret_cast<VkAccelerationStructureMemoryRequirementsInfoNV const *>( &info ),
19033 reinterpret_cast<VkMemoryRequirements2KHR *>( &memoryRequirements ) );
19034
19035 return memoryRequirements;
19036 }
19037
19038 // wrapper function for command vkGetAccelerationStructureMemoryRequirementsNV, see
19039 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureMemoryRequirementsNV.html
19040 template <typename X,
19041 typename Y,
19042 typename... Z,
19043 typename Dispatch,
19044 typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureMemoryRequirementsNV ), bool>::type>
19045 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getAccelerationStructureMemoryRequirementsNV(
19046 AccelerationStructureMemoryRequirementsInfoNV const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19047 {
19048 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19049 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19050 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureMemoryRequirementsNV &&
19051 "Function <vkGetAccelerationStructureMemoryRequirementsNV> requires <VK_NV_ray_tracing>" );
19052 # endif
19053
19054 StructureChain<X, Y, Z...> structureChain;
19055 MemoryRequirements2KHR & memoryRequirements = structureChain.template get<MemoryRequirements2KHR>();
19056 d.vkGetAccelerationStructureMemoryRequirementsNV( m_device,
19057 reinterpret_cast<VkAccelerationStructureMemoryRequirementsInfoNV const *>( &info ),
19058 reinterpret_cast<VkMemoryRequirements2KHR *>( &memoryRequirements ) );
19059
19060 return structureChain;
19061 }
19062 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19063
19064 // wrapper function for command vkBindAccelerationStructureMemoryNV, see
19065 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindAccelerationStructureMemoryNV.html
19066 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindAccelerationStructureMemoryNV ), bool>::type>
19067 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindAccelerationStructureMemoryNV(
19068 uint32_t bindInfoCount, BindAccelerationStructureMemoryInfoNV const * pBindInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19069 {
19070 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19071 return static_cast<Result>( d.vkBindAccelerationStructureMemoryNV(
19072 static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<VkBindAccelerationStructureMemoryInfoNV const *>( pBindInfos ) ) );
19073 }
19074
19075 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19076 // wrapper function for command vkBindAccelerationStructureMemoryNV, see
19077 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindAccelerationStructureMemoryNV.html
19078 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindAccelerationStructureMemoryNV ), bool>::type>
19079 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindAccelerationStructureMemoryNV(
19080 ArrayProxy<BindAccelerationStructureMemoryInfoNV const> const & bindInfos, Dispatch const & d ) const
19081 {
19082 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19083 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19084 VULKAN_HPP_ASSERT( d.vkBindAccelerationStructureMemoryNV && "Function <vkBindAccelerationStructureMemoryNV> requires <VK_NV_ray_tracing>" );
19085 # endif
19086
19087 Result result = static_cast<Result>( d.vkBindAccelerationStructureMemoryNV(
19088 m_device, bindInfos.size(), reinterpret_cast<VkBindAccelerationStructureMemoryInfoNV const *>( bindInfos.data() ) ) );
19089 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindAccelerationStructureMemoryNV" );
19090
19091 return detail::createResultValueType( result );
19092 }
19093 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19094
19095 // wrapper function for command vkCmdBuildAccelerationStructureNV, see
19096 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructureNV.html
19097 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildAccelerationStructureNV ), bool>::type>
19098 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructureNV( AccelerationStructureInfoNV const * pInfo,
19099 Buffer instanceData,
19100 DeviceSize instanceOffset,
19101 Bool32 update,
19102 AccelerationStructureNV dst,
19103 AccelerationStructureNV src,
19104 Buffer scratch,
19105 DeviceSize scratchOffset,
19106 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19107 {
19108 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19109 d.vkCmdBuildAccelerationStructureNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19110 reinterpret_cast<VkAccelerationStructureInfoNV const *>( pInfo ),
19111 static_cast<VkBuffer>( instanceData ),
19112 static_cast<VkDeviceSize>( instanceOffset ),
19113 static_cast<VkBool32>( update ),
19114 static_cast<VkAccelerationStructureNV>( dst ),
19115 static_cast<VkAccelerationStructureNV>( src ),
19116 static_cast<VkBuffer>( scratch ),
19117 static_cast<VkDeviceSize>( scratchOffset ) );
19118 }
19119
19120 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19121 // wrapper function for command vkCmdBuildAccelerationStructureNV, see
19122 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructureNV.html
19123 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildAccelerationStructureNV ), bool>::type>
19124 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructureNV( AccelerationStructureInfoNV const & info,
19125 Buffer instanceData,
19126 DeviceSize instanceOffset,
19127 Bool32 update,
19128 AccelerationStructureNV dst,
19129 AccelerationStructureNV src,
19130 Buffer scratch,
19131 DeviceSize scratchOffset,
19132 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19133 {
19134 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19135 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19136 VULKAN_HPP_ASSERT( d.vkCmdBuildAccelerationStructureNV && "Function <vkCmdBuildAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
19137 # endif
19138
19139 d.vkCmdBuildAccelerationStructureNV( m_commandBuffer,
19140 reinterpret_cast<VkAccelerationStructureInfoNV const *>( &info ),
19141 static_cast<VkBuffer>( instanceData ),
19142 static_cast<VkDeviceSize>( instanceOffset ),
19143 static_cast<VkBool32>( update ),
19144 static_cast<VkAccelerationStructureNV>( dst ),
19145 static_cast<VkAccelerationStructureNV>( src ),
19146 static_cast<VkBuffer>( scratch ),
19147 static_cast<VkDeviceSize>( scratchOffset ) );
19148 }
19149 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19150
19151 // wrapper function for command vkCmdCopyAccelerationStructureNV, see
19152 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureNV.html
19153 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyAccelerationStructureNV ), bool>::type>
19154 VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureNV(
19155 AccelerationStructureNV dst, AccelerationStructureNV src, CopyAccelerationStructureModeKHR mode, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19156 {
19157 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19158 d.vkCmdCopyAccelerationStructureNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19159 static_cast<VkAccelerationStructureNV>( dst ),
19160 static_cast<VkAccelerationStructureNV>( src ),
19161 static_cast<VkCopyAccelerationStructureModeKHR>( mode ) );
19162 }
19163
19164 // wrapper function for command vkCmdTraceRaysNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysNV.html
19165 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdTraceRaysNV ), bool>::type>
19166 VULKAN_HPP_INLINE void CommandBuffer::traceRaysNV( Buffer raygenShaderBindingTableBuffer,
19167 DeviceSize raygenShaderBindingOffset,
19168 Buffer missShaderBindingTableBuffer,
19169 DeviceSize missShaderBindingOffset,
19170 DeviceSize missShaderBindingStride,
19171 Buffer hitShaderBindingTableBuffer,
19172 DeviceSize hitShaderBindingOffset,
19173 DeviceSize hitShaderBindingStride,
19174 Buffer callableShaderBindingTableBuffer,
19175 DeviceSize callableShaderBindingOffset,
19176 DeviceSize callableShaderBindingStride,
19177 uint32_t width,
19178 uint32_t height,
19179 uint32_t depth,
19180 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19181 {
19182 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19183 d.vkCmdTraceRaysNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19184 static_cast<VkBuffer>( raygenShaderBindingTableBuffer ),
19185 static_cast<VkDeviceSize>( raygenShaderBindingOffset ),
19186 static_cast<VkBuffer>( missShaderBindingTableBuffer ),
19187 static_cast<VkDeviceSize>( missShaderBindingOffset ),
19188 static_cast<VkDeviceSize>( missShaderBindingStride ),
19189 static_cast<VkBuffer>( hitShaderBindingTableBuffer ),
19190 static_cast<VkDeviceSize>( hitShaderBindingOffset ),
19191 static_cast<VkDeviceSize>( hitShaderBindingStride ),
19192 static_cast<VkBuffer>( callableShaderBindingTableBuffer ),
19193 static_cast<VkDeviceSize>( callableShaderBindingOffset ),
19194 static_cast<VkDeviceSize>( callableShaderBindingStride ),
19195 width,
19196 height,
19197 depth );
19198 }
19199
19200 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19201 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19202 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19203 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createRayTracingPipelinesNV( PipelineCache pipelineCache,
19204 uint32_t createInfoCount,
19205 RayTracingPipelineCreateInfoNV const * pCreateInfos,
19206 AllocationCallbacks const * pAllocator,
19207 Pipeline * pPipelines,
19208 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19209 {
19210 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19211 return static_cast<Result>( d.vkCreateRayTracingPipelinesNV( static_cast<VkDevice>( m_device ),
19212 static_cast<VkPipelineCache>( pipelineCache ),
19213 createInfoCount,
19214 reinterpret_cast<VkRayTracingPipelineCreateInfoNV const *>( pCreateInfos ),
19215 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
19216 reinterpret_cast<VkPipeline *>( pPipelines ) ) );
19217 }
19218
19219 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19220 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19221 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19222 template <typename PipelineAllocator,
19223 typename Dispatch,
19224 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
19225 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19226 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>> Device::createRayTracingPipelinesNV(
19227 PipelineCache pipelineCache,
19228 ArrayProxy<RayTracingPipelineCreateInfoNV const> const & createInfos,
19229 Optional<AllocationCallbacks const> allocator,
19230 Dispatch const & d ) const
19231 {
19232 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19233 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19234 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
19235 # endif
19236
19237 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size() );
19238 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesNV( m_device,
19239 static_cast<VkPipelineCache>( pipelineCache ),
19240 createInfos.size(),
19241 reinterpret_cast<VkRayTracingPipelineCreateInfoNV const *>( createInfos.data() ),
19242 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19243 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
19244 detail::resultCheck( result,
19245 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesNV",
19246 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
19247 m_device,
19248 pipelines,
19249 allocator.get(),
19250 d );
19251
19252 return { result, pipelines };
19253 }
19254
19255 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19256 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19257 template <typename PipelineAllocator,
19258 typename Dispatch,
19259 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
19260 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19261 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>> Device::createRayTracingPipelinesNV(
19262 PipelineCache pipelineCache,
19263 ArrayProxy<RayTracingPipelineCreateInfoNV const> const & createInfos,
19264 Optional<AllocationCallbacks const> allocator,
19265 PipelineAllocator const & pipelineAllocator,
19266 Dispatch const & d ) const
19267 {
19268 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19269 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19270 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
19271 # endif
19272
19273 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size(), {}, pipelineAllocator );
19274 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesNV( m_device,
19275 static_cast<VkPipelineCache>( pipelineCache ),
19276 createInfos.size(),
19277 reinterpret_cast<VkRayTracingPipelineCreateInfoNV const *>( createInfos.data() ),
19278 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19279 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
19280 detail::resultCheck( result,
19281 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesNV",
19282 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
19283 m_device,
19284 pipelines,
19285 allocator.get(),
19286 d );
19287
19288 return { result, pipelines };
19289 }
19290
19291 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19292 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19293 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19294 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<Pipeline> Device::createRayTracingPipelineNV(
19295 PipelineCache pipelineCache, RayTracingPipelineCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
19296 {
19297 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19298 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19299 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
19300 # endif
19301
19302 Pipeline pipeline;
19303 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesNV( m_device,
19304 static_cast<VkPipelineCache>( pipelineCache ),
19305 1,
19306 reinterpret_cast<VkRayTracingPipelineCreateInfoNV const *>( &createInfo ),
19307 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19308 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
19309 detail::resultCheck(
19310 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelineNV", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
19311
19312 return { result, pipeline };
19313 }
19314
19315 # ifndef VULKAN_HPP_NO_SMART_HANDLE
19316 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19317 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19318 template <typename Dispatch,
19319 typename PipelineAllocator,
19320 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
19321 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19322 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
19323 Device::createRayTracingPipelinesNVUnique( PipelineCache pipelineCache,
19324 ArrayProxy<RayTracingPipelineCreateInfoNV const> const & createInfos,
19325 Optional<AllocationCallbacks const> allocator,
19326 Dispatch const & d ) const
19327 {
19328 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19329 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19330 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
19331 # endif
19332
19333 std::vector<Pipeline> pipelines( createInfos.size() );
19334 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesNV( m_device,
19335 static_cast<VkPipelineCache>( pipelineCache ),
19336 createInfos.size(),
19337 reinterpret_cast<VkRayTracingPipelineCreateInfoNV const *>( createInfos.data() ),
19338 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19339 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
19340 detail::resultCheck( result,
19341 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesNVUnique",
19342 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
19343 m_device,
19344 pipelines,
19345 allocator.get(),
19346 d );
19347 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines;
19348 uniquePipelines.reserve( createInfos.size() );
19349 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
19350 for ( auto const & pipeline : pipelines )
19351 {
19352 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
19353 }
19354 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
19355 }
19356
19357 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19358 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19359 template <typename Dispatch,
19360 typename PipelineAllocator,
19361 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
19362 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19363 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
19364 Device::createRayTracingPipelinesNVUnique( PipelineCache pipelineCache,
19365 ArrayProxy<RayTracingPipelineCreateInfoNV const> const & createInfos,
19366 Optional<AllocationCallbacks const> allocator,
19367 PipelineAllocator const & pipelineAllocator,
19368 Dispatch const & d ) const
19369 {
19370 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19371 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19372 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
19373 # endif
19374
19375 std::vector<Pipeline> pipelines( createInfos.size() );
19376 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesNV( m_device,
19377 static_cast<VkPipelineCache>( pipelineCache ),
19378 createInfos.size(),
19379 reinterpret_cast<VkRayTracingPipelineCreateInfoNV const *>( createInfos.data() ),
19380 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19381 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
19382 detail::resultCheck( result,
19383 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesNVUnique",
19384 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
19385 m_device,
19386 pipelines,
19387 allocator.get(),
19388 d );
19389 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines( pipelineAllocator );
19390 uniquePipelines.reserve( createInfos.size() );
19391 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
19392 for ( auto const & pipeline : pipelines )
19393 {
19394 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
19395 }
19396 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
19397 }
19398
19399 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19400 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19401 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19402 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<Pipeline, Dispatch>> Device::createRayTracingPipelineNVUnique(
19403 PipelineCache pipelineCache, RayTracingPipelineCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
19404 {
19405 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19406 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19407 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
19408 # endif
19409
19410 Pipeline pipeline;
19411 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesNV( m_device,
19412 static_cast<VkPipelineCache>( pipelineCache ),
19413 1,
19414 reinterpret_cast<VkRayTracingPipelineCreateInfoNV const *>( &createInfo ),
19415 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19416 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
19417 detail::resultCheck(
19418 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelineNVUnique", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
19419
19420 return ResultValue<UniqueHandle<Pipeline, Dispatch>>(
19421 result, UniqueHandle<Pipeline, Dispatch>( pipeline, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
19422 }
19423 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
19424 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19425
19426 // wrapper function for command vkGetRayTracingShaderGroupHandlesNV, see
19427 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesNV.html
19428 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupHandlesNV ), bool>::type>
19429 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getRayTracingShaderGroupHandlesNV(
19430 Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19431 {
19432 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19433 return static_cast<Result>( d.vkGetRayTracingShaderGroupHandlesNV(
19434 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, dataSize, pData ) );
19435 }
19436
19437 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19438 // wrapper function for command vkGetRayTracingShaderGroupHandlesNV, see
19439 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesNV.html
19440 template <typename DataType,
19441 typename DataTypeAllocator,
19442 typename Dispatch,
19443 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
19444 typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupHandlesNV ), bool>::type>
19445 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType, DataTypeAllocator>>::type Device::getRayTracingShaderGroupHandlesNV(
19446 Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, Dispatch const & d ) const
19447 {
19448 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19449 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19450 VULKAN_HPP_ASSERT( d.vkGetRayTracingShaderGroupHandlesNV &&
19451 "Function <vkGetRayTracingShaderGroupHandlesNV> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
19452 # endif
19453
19454 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
19455 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
19456 Result result = static_cast<Result>( d.vkGetRayTracingShaderGroupHandlesNV(
19457 m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast<void *>( data.data() ) ) );
19458 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandlesNV" );
19459
19460 return detail::createResultValueType( result, std::move( data ) );
19461 }
19462
19463 // wrapper function for command vkGetRayTracingShaderGroupHandlesNV, see
19464 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesNV.html
19465 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupHandlesNV ), bool>::type>
19466 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::getRayTracingShaderGroupHandleNV(
19467 Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, Dispatch const & d ) const
19468 {
19469 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19470 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19471 VULKAN_HPP_ASSERT( d.vkGetRayTracingShaderGroupHandlesNV &&
19472 "Function <vkGetRayTracingShaderGroupHandlesNV> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
19473 # endif
19474
19475 DataType data;
19476 Result result = static_cast<Result>( d.vkGetRayTracingShaderGroupHandlesNV(
19477 m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast<void *>( &data ) ) );
19478 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandleNV" );
19479
19480 return detail::createResultValueType( result, std::move( data ) );
19481 }
19482 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19483
19484 // wrapper function for command vkGetAccelerationStructureHandleNV, see
19485 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureHandleNV.html
19486 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureHandleNV ), bool>::type>
19487 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getAccelerationStructureHandleNV(
19488 AccelerationStructureNV accelerationStructure, size_t dataSize, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19489 {
19490 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19491 return static_cast<Result>( d.vkGetAccelerationStructureHandleNV(
19492 static_cast<VkDevice>( m_device ), static_cast<VkAccelerationStructureNV>( accelerationStructure ), dataSize, pData ) );
19493 }
19494
19495 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19496 // wrapper function for command vkGetAccelerationStructureHandleNV, see
19497 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureHandleNV.html
19498 template <typename DataType,
19499 typename DataTypeAllocator,
19500 typename Dispatch,
19501 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
19502 typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureHandleNV ), bool>::type>
19503 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType, DataTypeAllocator>>::type Device::getAccelerationStructureHandleNV(
19504 AccelerationStructureNV accelerationStructure, size_t dataSize, Dispatch const & d ) const
19505 {
19506 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19507 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19508 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureHandleNV && "Function <vkGetAccelerationStructureHandleNV> requires <VK_NV_ray_tracing>" );
19509 # endif
19510
19511 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
19512 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
19513 Result result = static_cast<Result>( d.vkGetAccelerationStructureHandleNV(
19514 m_device, static_cast<VkAccelerationStructureNV>( accelerationStructure ), data.size() * sizeof( DataType ), reinterpret_cast<void *>( data.data() ) ) );
19515 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureHandleNV" );
19516
19517 return detail::createResultValueType( result, std::move( data ) );
19518 }
19519
19520 // wrapper function for command vkGetAccelerationStructureHandleNV, see
19521 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureHandleNV.html
19522 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureHandleNV ), bool>::type>
19523 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::getAccelerationStructureHandleNV(
19524 AccelerationStructureNV accelerationStructure, Dispatch const & d ) const
19525 {
19526 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19527 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19528 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureHandleNV && "Function <vkGetAccelerationStructureHandleNV> requires <VK_NV_ray_tracing>" );
19529 # endif
19530
19531 DataType data;
19532 Result result = static_cast<Result>( d.vkGetAccelerationStructureHandleNV(
19533 m_device, static_cast<VkAccelerationStructureNV>( accelerationStructure ), sizeof( DataType ), reinterpret_cast<void *>( &data ) ) );
19534 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureHandleNV" );
19535
19536 return detail::createResultValueType( result, std::move( data ) );
19537 }
19538 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19539
19540 // wrapper function for command vkCmdWriteAccelerationStructuresPropertiesNV, see
19541 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteAccelerationStructuresPropertiesNV.html
19542 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteAccelerationStructuresPropertiesNV ), bool>::type>
19543 VULKAN_HPP_INLINE void CommandBuffer::writeAccelerationStructuresPropertiesNV( uint32_t accelerationStructureCount,
19544 AccelerationStructureNV const * pAccelerationStructures,
19545 QueryType queryType,
19546 QueryPool queryPool,
19547 uint32_t firstQuery,
19548 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19549 {
19550 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19551 d.vkCmdWriteAccelerationStructuresPropertiesNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19552 accelerationStructureCount,
19553 reinterpret_cast<VkAccelerationStructureNV const *>( pAccelerationStructures ),
19554 static_cast<VkQueryType>( queryType ),
19555 static_cast<VkQueryPool>( queryPool ),
19556 firstQuery );
19557 }
19558
19559 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19560 // wrapper function for command vkCmdWriteAccelerationStructuresPropertiesNV, see
19561 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteAccelerationStructuresPropertiesNV.html
19562 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteAccelerationStructuresPropertiesNV ), bool>::type>
19563 VULKAN_HPP_INLINE void CommandBuffer::writeAccelerationStructuresPropertiesNV( ArrayProxy<AccelerationStructureNV const> const & accelerationStructures,
19564 QueryType queryType,
19565 QueryPool queryPool,
19566 uint32_t firstQuery,
19567 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19568 {
19569 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19570 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19571 VULKAN_HPP_ASSERT( d.vkCmdWriteAccelerationStructuresPropertiesNV &&
19572 "Function <vkCmdWriteAccelerationStructuresPropertiesNV> requires <VK_NV_ray_tracing>" );
19573 # endif
19574
19575 d.vkCmdWriteAccelerationStructuresPropertiesNV( m_commandBuffer,
19576 accelerationStructures.size(),
19577 reinterpret_cast<VkAccelerationStructureNV const *>( accelerationStructures.data() ),
19578 static_cast<VkQueryType>( queryType ),
19579 static_cast<VkQueryPool>( queryPool ),
19580 firstQuery );
19581 }
19582 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19583
19584 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
19585 // wrapper function for command vkCompileDeferredNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCompileDeferredNV.html
19586 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCompileDeferredNV ), bool>::type>
19587 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::compileDeferredNV( Pipeline pipeline, uint32_t shader, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19588 {
19589 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19590 return static_cast<Result>( d.vkCompileDeferredNV( static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), shader ) );
19591 }
19592 #else
19593 // wrapper function for command vkCompileDeferredNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCompileDeferredNV.html
19594 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCompileDeferredNV ), bool>::type>
19595 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::compileDeferredNV(
19596 Pipeline pipeline, uint32_t shader, Dispatch const & d ) const
19597 {
19598 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19599 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19600 VULKAN_HPP_ASSERT( d.vkCompileDeferredNV && "Function <vkCompileDeferredNV> requires <VK_NV_ray_tracing>" );
19601 # endif
19602
19603 Result result = static_cast<Result>( d.vkCompileDeferredNV( m_device, static_cast<VkPipeline>( pipeline ), shader ) );
19604 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::compileDeferredNV" );
19605
19606 return detail::createResultValueType( result );
19607 }
19608 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
19609
19610 //=== VK_KHR_maintenance3 ===
19611
19612 // wrapper function for command vkGetDescriptorSetLayoutSupportKHR, see
19613 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupportKHR.html
19614 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSupportKHR ), bool>::type>
19615 VULKAN_HPP_INLINE void Device::getDescriptorSetLayoutSupportKHR(
19616 DescriptorSetLayoutCreateInfo const * pCreateInfo, DescriptorSetLayoutSupport * pSupport, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19617 {
19618 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19619 d.vkGetDescriptorSetLayoutSupportKHR( static_cast<VkDevice>( m_device ),
19620 reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( pCreateInfo ),
19621 reinterpret_cast<VkDescriptorSetLayoutSupport *>( pSupport ) );
19622 }
19623
19624 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19625 // wrapper function for command vkGetDescriptorSetLayoutSupportKHR, see
19626 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupportKHR.html
19627 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSupportKHR ), bool>::type>
19628 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DescriptorSetLayoutSupport Device::getDescriptorSetLayoutSupportKHR( DescriptorSetLayoutCreateInfo const & createInfo,
19629 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19630 {
19631 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19632 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19633 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutSupportKHR &&
19634 "Function <vkGetDescriptorSetLayoutSupportKHR> requires <VK_KHR_maintenance3> or <VK_VERSION_1_1>" );
19635 # endif
19636
19637 DescriptorSetLayoutSupport support;
19638 d.vkGetDescriptorSetLayoutSupportKHR(
19639 m_device, reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( &createInfo ), reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
19640
19641 return support;
19642 }
19643
19644 // wrapper function for command vkGetDescriptorSetLayoutSupportKHR, see
19645 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupportKHR.html
19646 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSupportKHR ), bool>::type>
19647 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getDescriptorSetLayoutSupportKHR( DescriptorSetLayoutCreateInfo const & createInfo,
19648 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19649 {
19650 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19651 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19652 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutSupportKHR &&
19653 "Function <vkGetDescriptorSetLayoutSupportKHR> requires <VK_KHR_maintenance3> or <VK_VERSION_1_1>" );
19654 # endif
19655
19656 StructureChain<X, Y, Z...> structureChain;
19657 DescriptorSetLayoutSupport & support = structureChain.template get<DescriptorSetLayoutSupport>();
19658 d.vkGetDescriptorSetLayoutSupportKHR(
19659 m_device, reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( &createInfo ), reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
19660
19661 return structureChain;
19662 }
19663 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19664
19665 //=== VK_KHR_draw_indirect_count ===
19666
19667 // wrapper function for command vkCmdDrawIndirectCountKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCountKHR.html
19668 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirectCountKHR ), bool>::type>
19669 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectCountKHR(
19670 Buffer buffer, DeviceSize offset, Buffer countBuffer, DeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride, Dispatch const & d )
19671 const VULKAN_HPP_NOEXCEPT
19672 {
19673 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19674 d.vkCmdDrawIndirectCountKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
19675 static_cast<VkBuffer>( buffer ),
19676 static_cast<VkDeviceSize>( offset ),
19677 static_cast<VkBuffer>( countBuffer ),
19678 static_cast<VkDeviceSize>( countBufferOffset ),
19679 maxDrawCount,
19680 stride );
19681 }
19682
19683 // wrapper function for command vkCmdDrawIndexedIndirectCountKHR, see
19684 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCountKHR.html
19685 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexedIndirectCountKHR ), bool>::type>
19686 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirectCountKHR(
19687 Buffer buffer, DeviceSize offset, Buffer countBuffer, DeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride, Dispatch const & d )
19688 const VULKAN_HPP_NOEXCEPT
19689 {
19690 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19691 d.vkCmdDrawIndexedIndirectCountKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
19692 static_cast<VkBuffer>( buffer ),
19693 static_cast<VkDeviceSize>( offset ),
19694 static_cast<VkBuffer>( countBuffer ),
19695 static_cast<VkDeviceSize>( countBufferOffset ),
19696 maxDrawCount,
19697 stride );
19698 }
19699
19700 //=== VK_EXT_external_memory_host ===
19701
19702 // wrapper function for command vkGetMemoryHostPointerPropertiesEXT, see
19703 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryHostPointerPropertiesEXT.html
19704 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryHostPointerPropertiesEXT ), bool>::type>
19705 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryHostPointerPropertiesEXT(
19706 ExternalMemoryHandleTypeFlagBits handleType, void const * pHostPointer, MemoryHostPointerPropertiesEXT * pMemoryHostPointerProperties, Dispatch const & d )
19707 const VULKAN_HPP_NOEXCEPT
19708 {
19709 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19710 return static_cast<Result>( d.vkGetMemoryHostPointerPropertiesEXT( static_cast<VkDevice>( m_device ),
19711 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
19712 pHostPointer,
19713 reinterpret_cast<VkMemoryHostPointerPropertiesEXT *>( pMemoryHostPointerProperties ) ) );
19714 }
19715
19716 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19717 // wrapper function for command vkGetMemoryHostPointerPropertiesEXT, see
19718 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryHostPointerPropertiesEXT.html
19719 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryHostPointerPropertiesEXT ), bool>::type>
19720 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryHostPointerPropertiesEXT>::type Device::getMemoryHostPointerPropertiesEXT(
19721 ExternalMemoryHandleTypeFlagBits handleType, void const * pHostPointer, Dispatch const & d ) const
19722 {
19723 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19724 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19725 VULKAN_HPP_ASSERT( d.vkGetMemoryHostPointerPropertiesEXT && "Function <vkGetMemoryHostPointerPropertiesEXT> requires <VK_EXT_external_memory_host>" );
19726 # endif
19727
19728 MemoryHostPointerPropertiesEXT memoryHostPointerProperties;
19729 Result result =
19730 static_cast<Result>( d.vkGetMemoryHostPointerPropertiesEXT( m_device,
19731 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
19732 pHostPointer,
19733 reinterpret_cast<VkMemoryHostPointerPropertiesEXT *>( &memoryHostPointerProperties ) ) );
19734 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryHostPointerPropertiesEXT" );
19735
19736 return detail::createResultValueType( result, std::move( memoryHostPointerProperties ) );
19737 }
19738 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19739
19740 //=== VK_AMD_buffer_marker ===
19741
19742 // wrapper function for command vkCmdWriteBufferMarkerAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteBufferMarkerAMD.html
19743 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteBufferMarkerAMD ), bool>::type>
19744 VULKAN_HPP_INLINE void CommandBuffer::writeBufferMarkerAMD(
19745 PipelineStageFlagBits pipelineStage, Buffer dstBuffer, DeviceSize dstOffset, uint32_t marker, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19746 {
19747 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19748 d.vkCmdWriteBufferMarkerAMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
19749 static_cast<VkPipelineStageFlagBits>( pipelineStage ),
19750 static_cast<VkBuffer>( dstBuffer ),
19751 static_cast<VkDeviceSize>( dstOffset ),
19752 marker );
19753 }
19754
19755 // wrapper function for command vkCmdWriteBufferMarker2AMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteBufferMarker2AMD.html
19756 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteBufferMarker2AMD ), bool>::type>
19757 VULKAN_HPP_INLINE void CommandBuffer::writeBufferMarker2AMD(
19758 PipelineStageFlags2 stage, Buffer dstBuffer, DeviceSize dstOffset, uint32_t marker, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19759 {
19760 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19761 d.vkCmdWriteBufferMarker2AMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
19762 static_cast<VkPipelineStageFlags2>( stage ),
19763 static_cast<VkBuffer>( dstBuffer ),
19764 static_cast<VkDeviceSize>( dstOffset ),
19765 marker );
19766 }
19767
19768 //=== VK_EXT_calibrated_timestamps ===
19769
19770 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsEXT, see
19771 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsEXT.html
19772 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsEXT ), bool>::type>
19773 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCalibrateableTimeDomainsEXT(
19774 uint32_t * pTimeDomainCount, TimeDomainKHR * pTimeDomains, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19775 {
19776 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19777 return static_cast<Result>( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT(
19778 static_cast<VkPhysicalDevice>( m_physicalDevice ), pTimeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( pTimeDomains ) ) );
19779 }
19780
19781 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19782 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsEXT, see
19783 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsEXT.html
19784 template <typename TimeDomainKHRAllocator,
19785 typename Dispatch,
19786 typename std::enable_if<std::is_same<typename TimeDomainKHRAllocator::value_type, TimeDomainKHR>::value, int>::type,
19787 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsEXT ), bool>::type>
19788 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TimeDomainKHR, TimeDomainKHRAllocator>>::type
19789 PhysicalDevice::getCalibrateableTimeDomainsEXT( Dispatch const & d ) const
19790 {
19791 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19792 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19793 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT &&
19794 "Function <vkGetPhysicalDeviceCalibrateableTimeDomainsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
19795 # endif
19796
19797 std::vector<TimeDomainKHR, TimeDomainKHRAllocator> timeDomains;
19798 uint32_t timeDomainCount;
19799 Result result;
19800 do
19801 {
19802 result = static_cast<Result>( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( m_physicalDevice, &timeDomainCount, nullptr ) );
19803 if ( ( result == Result::eSuccess ) && timeDomainCount )
19804 {
19805 timeDomains.resize( timeDomainCount );
19806 result = static_cast<Result>(
19807 d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( m_physicalDevice, &timeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( timeDomains.data() ) ) );
19808 }
19809 } while ( result == Result::eIncomplete );
19810 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsEXT" );
19811 VULKAN_HPP_ASSERT( timeDomainCount <= timeDomains.size() );
19812 if ( timeDomainCount < timeDomains.size() )
19813 {
19814 timeDomains.resize( timeDomainCount );
19815 }
19816 return detail::createResultValueType( result, std::move( timeDomains ) );
19817 }
19818
19819 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsEXT, see
19820 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsEXT.html
19821 template <typename TimeDomainKHRAllocator,
19822 typename Dispatch,
19823 typename std::enable_if<std::is_same<typename TimeDomainKHRAllocator::value_type, TimeDomainKHR>::value, int>::type,
19824 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsEXT ), bool>::type>
19825 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TimeDomainKHR, TimeDomainKHRAllocator>>::type
19826 PhysicalDevice::getCalibrateableTimeDomainsEXT( TimeDomainKHRAllocator const & timeDomainKHRAllocator, Dispatch const & d ) const
19827 {
19828 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19829 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19830 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT &&
19831 "Function <vkGetPhysicalDeviceCalibrateableTimeDomainsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
19832 # endif
19833
19834 std::vector<TimeDomainKHR, TimeDomainKHRAllocator> timeDomains( timeDomainKHRAllocator );
19835 uint32_t timeDomainCount;
19836 Result result;
19837 do
19838 {
19839 result = static_cast<Result>( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( m_physicalDevice, &timeDomainCount, nullptr ) );
19840 if ( ( result == Result::eSuccess ) && timeDomainCount )
19841 {
19842 timeDomains.resize( timeDomainCount );
19843 result = static_cast<Result>(
19844 d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( m_physicalDevice, &timeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( timeDomains.data() ) ) );
19845 }
19846 } while ( result == Result::eIncomplete );
19847 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsEXT" );
19848 VULKAN_HPP_ASSERT( timeDomainCount <= timeDomains.size() );
19849 if ( timeDomainCount < timeDomains.size() )
19850 {
19851 timeDomains.resize( timeDomainCount );
19852 }
19853 return detail::createResultValueType( result, std::move( timeDomains ) );
19854 }
19855 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19856
19857 // wrapper function for command vkGetCalibratedTimestampsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsEXT.html
19858 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsEXT ), bool>::type>
19859 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getCalibratedTimestampsEXT(
19860 uint32_t timestampCount, CalibratedTimestampInfoKHR const * pTimestampInfos, uint64_t * pTimestamps, uint64_t * pMaxDeviation, Dispatch const & d )
19861 const VULKAN_HPP_NOEXCEPT
19862 {
19863 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19864 return static_cast<Result>( d.vkGetCalibratedTimestampsEXT( static_cast<VkDevice>( m_device ),
19865 timestampCount,
19866 reinterpret_cast<VkCalibratedTimestampInfoKHR const *>( pTimestampInfos ),
19867 pTimestamps,
19868 pMaxDeviation ) );
19869 }
19870
19871 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19872 // wrapper function for command vkGetCalibratedTimestampsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsEXT.html
19873 template <typename Uint64_tAllocator,
19874 typename Dispatch,
19875 typename std::enable_if<std::is_same<typename Uint64_tAllocator::value_type, uint64_t>::value, int>::type,
19876 typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsEXT ), bool>::type>
19877 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t>>::type
19878 Device::getCalibratedTimestampsEXT( ArrayProxy<CalibratedTimestampInfoKHR const> const & timestampInfos, Dispatch const & d ) const
19879 {
19880 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19881 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19882 VULKAN_HPP_ASSERT( d.vkGetCalibratedTimestampsEXT &&
19883 "Function <vkGetCalibratedTimestampsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
19884 # endif
19885
19886 std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t> data_(
19887 std::piecewise_construct, std::forward_as_tuple( timestampInfos.size() ), std::forward_as_tuple( 0 ) );
19888 std::vector<uint64_t, Uint64_tAllocator> & timestamps = data_.first;
19889 uint64_t & maxDeviation = data_.second;
19890 Result result = static_cast<Result>( d.vkGetCalibratedTimestampsEXT(
19891 m_device, timestampInfos.size(), reinterpret_cast<VkCalibratedTimestampInfoKHR const *>( timestampInfos.data() ), timestamps.data(), &maxDeviation ) );
19892 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" );
19893
19894 return detail::createResultValueType( result, std::move( data_ ) );
19895 }
19896
19897 // wrapper function for command vkGetCalibratedTimestampsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsEXT.html
19898 template <typename Uint64_tAllocator,
19899 typename Dispatch,
19900 typename std::enable_if<std::is_same<typename Uint64_tAllocator::value_type, uint64_t>::value, int>::type,
19901 typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsEXT ), bool>::type>
19902 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t>>::type
19903 Device::getCalibratedTimestampsEXT(
19904 ArrayProxy<CalibratedTimestampInfoKHR const> const & timestampInfos, Uint64_tAllocator const & uint64_tAllocator, Dispatch const & d ) const
19905 {
19906 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19907 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19908 VULKAN_HPP_ASSERT( d.vkGetCalibratedTimestampsEXT &&
19909 "Function <vkGetCalibratedTimestampsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
19910 # endif
19911
19912 std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t> data_(
19913 std::piecewise_construct, std::forward_as_tuple( timestampInfos.size(), uint64_tAllocator ), std::forward_as_tuple( 0 ) );
19914 std::vector<uint64_t, Uint64_tAllocator> & timestamps = data_.first;
19915 uint64_t & maxDeviation = data_.second;
19916 Result result = static_cast<Result>( d.vkGetCalibratedTimestampsEXT(
19917 m_device, timestampInfos.size(), reinterpret_cast<VkCalibratedTimestampInfoKHR const *>( timestampInfos.data() ), timestamps.data(), &maxDeviation ) );
19918 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" );
19919
19920 return detail::createResultValueType( result, std::move( data_ ) );
19921 }
19922
19923 // wrapper function for command vkGetCalibratedTimestampsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsEXT.html
19924 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsEXT ), bool>::type>
19925 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<uint64_t, uint64_t>>::type Device::getCalibratedTimestampEXT(
19926 CalibratedTimestampInfoKHR const & timestampInfo, Dispatch const & d ) const
19927 {
19928 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19929 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19930 VULKAN_HPP_ASSERT( d.vkGetCalibratedTimestampsEXT &&
19931 "Function <vkGetCalibratedTimestampsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
19932 # endif
19933
19934 std::pair<uint64_t, uint64_t> data_;
19935 uint64_t & timestamp = data_.first;
19936 uint64_t & maxDeviation = data_.second;
19937 Result result = static_cast<Result>(
19938 d.vkGetCalibratedTimestampsEXT( m_device, 1, reinterpret_cast<VkCalibratedTimestampInfoKHR const *>( &timestampInfo ), &timestamp, &maxDeviation ) );
19939 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampEXT" );
19940
19941 return detail::createResultValueType( result, std::move( data_ ) );
19942 }
19943 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19944
19945 //=== VK_NV_mesh_shader ===
19946
19947 // wrapper function for command vkCmdDrawMeshTasksNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksNV.html
19948 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksNV ), bool>::type>
19949 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksNV( uint32_t taskCount, uint32_t firstTask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19950 {
19951 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19952 d.vkCmdDrawMeshTasksNV( static_cast<VkCommandBuffer>( m_commandBuffer ), taskCount, firstTask );
19953 }
19954
19955 // wrapper function for command vkCmdDrawMeshTasksIndirectNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectNV.html
19956 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksIndirectNV ), bool>::type>
19957 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectNV( Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride, Dispatch const & d )
19958 const VULKAN_HPP_NOEXCEPT
19959 {
19960 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19961 d.vkCmdDrawMeshTasksIndirectNV(
19962 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ), drawCount, stride );
19963 }
19964
19965 // wrapper function for command vkCmdDrawMeshTasksIndirectCountNV, see
19966 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectCountNV.html
19967 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksIndirectCountNV ), bool>::type>
19968 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectCountNV(
19969 Buffer buffer, DeviceSize offset, Buffer countBuffer, DeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride, Dispatch const & d )
19970 const VULKAN_HPP_NOEXCEPT
19971 {
19972 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19973 d.vkCmdDrawMeshTasksIndirectCountNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19974 static_cast<VkBuffer>( buffer ),
19975 static_cast<VkDeviceSize>( offset ),
19976 static_cast<VkBuffer>( countBuffer ),
19977 static_cast<VkDeviceSize>( countBufferOffset ),
19978 maxDrawCount,
19979 stride );
19980 }
19981
19982 //=== VK_NV_scissor_exclusive ===
19983
19984 // wrapper function for command vkCmdSetExclusiveScissorEnableNV, see
19985 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExclusiveScissorEnableNV.html
19986 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetExclusiveScissorEnableNV ), bool>::type>
19987 VULKAN_HPP_INLINE void CommandBuffer::setExclusiveScissorEnableNV(
19988 uint32_t firstExclusiveScissor, uint32_t exclusiveScissorCount, Bool32 const * pExclusiveScissorEnables, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19989 {
19990 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19991 d.vkCmdSetExclusiveScissorEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19992 firstExclusiveScissor,
19993 exclusiveScissorCount,
19994 reinterpret_cast<VkBool32 const *>( pExclusiveScissorEnables ) );
19995 }
19996
19997 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19998 // wrapper function for command vkCmdSetExclusiveScissorEnableNV, see
19999 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExclusiveScissorEnableNV.html
20000 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetExclusiveScissorEnableNV ), bool>::type>
20001 VULKAN_HPP_INLINE void CommandBuffer::setExclusiveScissorEnableNV(
20002 uint32_t firstExclusiveScissor, ArrayProxy<Bool32 const> const & exclusiveScissorEnables, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20003 {
20004 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20005 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20006 VULKAN_HPP_ASSERT( d.vkCmdSetExclusiveScissorEnableNV && "Function <vkCmdSetExclusiveScissorEnableNV> requires <VK_NV_scissor_exclusive>" );
20007 # endif
20008
20009 d.vkCmdSetExclusiveScissorEnableNV(
20010 m_commandBuffer, firstExclusiveScissor, exclusiveScissorEnables.size(), reinterpret_cast<VkBool32 const *>( exclusiveScissorEnables.data() ) );
20011 }
20012 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20013
20014 // wrapper function for command vkCmdSetExclusiveScissorNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExclusiveScissorNV.html
20015 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetExclusiveScissorNV ), bool>::type>
20016 VULKAN_HPP_INLINE void CommandBuffer::setExclusiveScissorNV(
20017 uint32_t firstExclusiveScissor, uint32_t exclusiveScissorCount, Rect2D const * pExclusiveScissors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20018 {
20019 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20020 d.vkCmdSetExclusiveScissorNV(
20021 static_cast<VkCommandBuffer>( m_commandBuffer ), firstExclusiveScissor, exclusiveScissorCount, reinterpret_cast<VkRect2D const *>( pExclusiveScissors ) );
20022 }
20023
20024 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20025 // wrapper function for command vkCmdSetExclusiveScissorNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExclusiveScissorNV.html
20026 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetExclusiveScissorNV ), bool>::type>
20027 VULKAN_HPP_INLINE void CommandBuffer::setExclusiveScissorNV(
20028 uint32_t firstExclusiveScissor, ArrayProxy<Rect2D const> const & exclusiveScissors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20029 {
20030 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20031 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20032 VULKAN_HPP_ASSERT( d.vkCmdSetExclusiveScissorNV && "Function <vkCmdSetExclusiveScissorNV> requires <VK_NV_scissor_exclusive>" );
20033 # endif
20034
20035 d.vkCmdSetExclusiveScissorNV(
20036 m_commandBuffer, firstExclusiveScissor, exclusiveScissors.size(), reinterpret_cast<VkRect2D const *>( exclusiveScissors.data() ) );
20037 }
20038 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20039
20040 //=== VK_NV_device_diagnostic_checkpoints ===
20041
20042 // wrapper function for command vkCmdSetCheckpointNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCheckpointNV.html
20043 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCheckpointNV ), bool>::type>
20044 VULKAN_HPP_INLINE void CommandBuffer::setCheckpointNV( void const * pCheckpointMarker, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20045 {
20046 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20047 d.vkCmdSetCheckpointNV( static_cast<VkCommandBuffer>( m_commandBuffer ), pCheckpointMarker );
20048 }
20049
20050 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20051 // wrapper function for command vkCmdSetCheckpointNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCheckpointNV.html
20052 template <typename CheckpointMarkerType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCheckpointNV ), bool>::type>
20053 VULKAN_HPP_INLINE void CommandBuffer::setCheckpointNV( CheckpointMarkerType const & checkpointMarker, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20054 {
20055 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20056 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20057 VULKAN_HPP_ASSERT( d.vkCmdSetCheckpointNV && "Function <vkCmdSetCheckpointNV> requires <VK_NV_device_diagnostic_checkpoints>" );
20058 # endif
20059
20060 d.vkCmdSetCheckpointNV( m_commandBuffer, reinterpret_cast<void const *>( &checkpointMarker ) );
20061 }
20062 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20063
20064 // wrapper function for command vkGetQueueCheckpointDataNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointDataNV.html
20065 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetQueueCheckpointDataNV ), bool>::type>
20066 VULKAN_HPP_INLINE void Queue::getCheckpointDataNV( uint32_t * pCheckpointDataCount, CheckpointDataNV * pCheckpointData, Dispatch const & d )
20067 const VULKAN_HPP_NOEXCEPT
20068 {
20069 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20070 d.vkGetQueueCheckpointDataNV( static_cast<VkQueue>( m_queue ), pCheckpointDataCount, reinterpret_cast<VkCheckpointDataNV *>( pCheckpointData ) );
20071 }
20072
20073 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20074 // wrapper function for command vkGetQueueCheckpointDataNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointDataNV.html
20075 template <typename CheckpointDataNVAllocator,
20076 typename Dispatch,
20077 typename std::enable_if<std::is_same<typename CheckpointDataNVAllocator::value_type, CheckpointDataNV>::value, int>::type,
20078 typename std::enable_if<IS_DISPATCHED( vkGetQueueCheckpointDataNV ), bool>::type>
20079 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<CheckpointDataNV, CheckpointDataNVAllocator> Queue::getCheckpointDataNV( Dispatch const & d ) const
20080 {
20081 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20082 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20083 VULKAN_HPP_ASSERT( d.vkGetQueueCheckpointDataNV && "Function <vkGetQueueCheckpointDataNV> requires <VK_NV_device_diagnostic_checkpoints>" );
20084 # endif
20085
20086 std::vector<CheckpointDataNV, CheckpointDataNVAllocator> checkpointData;
20087 uint32_t checkpointDataCount;
20088 d.vkGetQueueCheckpointDataNV( m_queue, &checkpointDataCount, nullptr );
20089 checkpointData.resize( checkpointDataCount );
20090 d.vkGetQueueCheckpointDataNV( m_queue, &checkpointDataCount, reinterpret_cast<VkCheckpointDataNV *>( checkpointData.data() ) );
20091
20092 VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() );
20093 if ( checkpointDataCount < checkpointData.size() )
20094 {
20095 checkpointData.resize( checkpointDataCount );
20096 }
20097 return checkpointData;
20098 }
20099
20100 // wrapper function for command vkGetQueueCheckpointDataNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointDataNV.html
20101 template <typename CheckpointDataNVAllocator,
20102 typename Dispatch,
20103 typename std::enable_if<std::is_same<typename CheckpointDataNVAllocator::value_type, CheckpointDataNV>::value, int>::type,
20104 typename std::enable_if<IS_DISPATCHED( vkGetQueueCheckpointDataNV ), bool>::type>
20105 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<CheckpointDataNV, CheckpointDataNVAllocator> Queue::getCheckpointDataNV(
20106 CheckpointDataNVAllocator const & checkpointDataNVAllocator, Dispatch const & d ) const
20107 {
20108 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20109 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20110 VULKAN_HPP_ASSERT( d.vkGetQueueCheckpointDataNV && "Function <vkGetQueueCheckpointDataNV> requires <VK_NV_device_diagnostic_checkpoints>" );
20111 # endif
20112
20113 std::vector<CheckpointDataNV, CheckpointDataNVAllocator> checkpointData( checkpointDataNVAllocator );
20114 uint32_t checkpointDataCount;
20115 d.vkGetQueueCheckpointDataNV( m_queue, &checkpointDataCount, nullptr );
20116 checkpointData.resize( checkpointDataCount );
20117 d.vkGetQueueCheckpointDataNV( m_queue, &checkpointDataCount, reinterpret_cast<VkCheckpointDataNV *>( checkpointData.data() ) );
20118
20119 VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() );
20120 if ( checkpointDataCount < checkpointData.size() )
20121 {
20122 checkpointData.resize( checkpointDataCount );
20123 }
20124 return checkpointData;
20125 }
20126 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20127
20128 // wrapper function for command vkGetQueueCheckpointData2NV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointData2NV.html
20129 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetQueueCheckpointData2NV ), bool>::type>
20130 VULKAN_HPP_INLINE void Queue::getCheckpointData2NV( uint32_t * pCheckpointDataCount, CheckpointData2NV * pCheckpointData, Dispatch const & d )
20131 const VULKAN_HPP_NOEXCEPT
20132 {
20133 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20134 d.vkGetQueueCheckpointData2NV( static_cast<VkQueue>( m_queue ), pCheckpointDataCount, reinterpret_cast<VkCheckpointData2NV *>( pCheckpointData ) );
20135 }
20136
20137 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20138 // wrapper function for command vkGetQueueCheckpointData2NV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointData2NV.html
20139 template <typename CheckpointData2NVAllocator,
20140 typename Dispatch,
20141 typename std::enable_if<std::is_same<typename CheckpointData2NVAllocator::value_type, CheckpointData2NV>::value, int>::type,
20142 typename std::enable_if<IS_DISPATCHED( vkGetQueueCheckpointData2NV ), bool>::type>
20143 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<CheckpointData2NV, CheckpointData2NVAllocator> Queue::getCheckpointData2NV( Dispatch const & d ) const
20144 {
20145 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20146 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20147 VULKAN_HPP_ASSERT( d.vkGetQueueCheckpointData2NV && "Function <vkGetQueueCheckpointData2NV> requires <VK_NV_device_diagnostic_checkpoints>" );
20148 # endif
20149
20150 std::vector<CheckpointData2NV, CheckpointData2NVAllocator> checkpointData;
20151 uint32_t checkpointDataCount;
20152 d.vkGetQueueCheckpointData2NV( m_queue, &checkpointDataCount, nullptr );
20153 checkpointData.resize( checkpointDataCount );
20154 d.vkGetQueueCheckpointData2NV( m_queue, &checkpointDataCount, reinterpret_cast<VkCheckpointData2NV *>( checkpointData.data() ) );
20155
20156 VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() );
20157 if ( checkpointDataCount < checkpointData.size() )
20158 {
20159 checkpointData.resize( checkpointDataCount );
20160 }
20161 return checkpointData;
20162 }
20163
20164 // wrapper function for command vkGetQueueCheckpointData2NV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointData2NV.html
20165 template <typename CheckpointData2NVAllocator,
20166 typename Dispatch,
20167 typename std::enable_if<std::is_same<typename CheckpointData2NVAllocator::value_type, CheckpointData2NV>::value, int>::type,
20168 typename std::enable_if<IS_DISPATCHED( vkGetQueueCheckpointData2NV ), bool>::type>
20169 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<CheckpointData2NV, CheckpointData2NVAllocator> Queue::getCheckpointData2NV(
20170 CheckpointData2NVAllocator const & checkpointData2NVAllocator, Dispatch const & d ) const
20171 {
20172 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20173 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20174 VULKAN_HPP_ASSERT( d.vkGetQueueCheckpointData2NV && "Function <vkGetQueueCheckpointData2NV> requires <VK_NV_device_diagnostic_checkpoints>" );
20175 # endif
20176
20177 std::vector<CheckpointData2NV, CheckpointData2NVAllocator> checkpointData( checkpointData2NVAllocator );
20178 uint32_t checkpointDataCount;
20179 d.vkGetQueueCheckpointData2NV( m_queue, &checkpointDataCount, nullptr );
20180 checkpointData.resize( checkpointDataCount );
20181 d.vkGetQueueCheckpointData2NV( m_queue, &checkpointDataCount, reinterpret_cast<VkCheckpointData2NV *>( checkpointData.data() ) );
20182
20183 VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() );
20184 if ( checkpointDataCount < checkpointData.size() )
20185 {
20186 checkpointData.resize( checkpointDataCount );
20187 }
20188 return checkpointData;
20189 }
20190 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20191
20192 //=== VK_KHR_timeline_semaphore ===
20193
20194 // wrapper function for command vkGetSemaphoreCounterValueKHR, see
20195 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValueKHR.html
20196 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreCounterValueKHR ), bool>::type>
20197 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSemaphoreCounterValueKHR( Semaphore semaphore, uint64_t * pValue, Dispatch const & d )
20198 const VULKAN_HPP_NOEXCEPT
20199 {
20200 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20201 return static_cast<Result>( d.vkGetSemaphoreCounterValueKHR( static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( semaphore ), pValue ) );
20202 }
20203
20204 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20205 // wrapper function for command vkGetSemaphoreCounterValueKHR, see
20206 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValueKHR.html
20207 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreCounterValueKHR ), bool>::type>
20208 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint64_t>::type Device::getSemaphoreCounterValueKHR( Semaphore semaphore, Dispatch const & d )
20209 const
20210 {
20211 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20212 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20213 VULKAN_HPP_ASSERT( d.vkGetSemaphoreCounterValueKHR && "Function <vkGetSemaphoreCounterValueKHR> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
20214 # endif
20215
20216 uint64_t value;
20217 Result result = static_cast<Result>( d.vkGetSemaphoreCounterValueKHR( m_device, static_cast<VkSemaphore>( semaphore ), &value ) );
20218 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreCounterValueKHR" );
20219
20220 return detail::createResultValueType( result, std::move( value ) );
20221 }
20222 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20223
20224 // wrapper function for command vkWaitSemaphoresKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitSemaphoresKHR.html
20225 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitSemaphoresKHR ), bool>::type>
20226 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitSemaphoresKHR( SemaphoreWaitInfo const * pWaitInfo, uint64_t timeout, Dispatch const & d )
20227 const VULKAN_HPP_NOEXCEPT
20228 {
20229 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20230 return static_cast<Result>(
20231 d.vkWaitSemaphoresKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreWaitInfo const *>( pWaitInfo ), timeout ) );
20232 }
20233
20234 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20235 // wrapper function for command vkWaitSemaphoresKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitSemaphoresKHR.html
20236 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitSemaphoresKHR ), bool>::type>
20237 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitSemaphoresKHR( SemaphoreWaitInfo const & waitInfo, uint64_t timeout, Dispatch const & d ) const
20238 {
20239 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20240 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20241 VULKAN_HPP_ASSERT( d.vkWaitSemaphoresKHR && "Function <vkWaitSemaphoresKHR> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
20242 # endif
20243
20244 Result result = static_cast<Result>( d.vkWaitSemaphoresKHR( m_device, reinterpret_cast<VkSemaphoreWaitInfo const *>( &waitInfo ), timeout ) );
20245 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitSemaphoresKHR", { Result::eSuccess, Result::eTimeout } );
20246
20247 return static_cast<Result>( result );
20248 }
20249 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20250
20251 // wrapper function for command vkSignalSemaphoreKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSignalSemaphoreKHR.html
20252 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSignalSemaphoreKHR ), bool>::type>
20253 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::signalSemaphoreKHR( SemaphoreSignalInfo const * pSignalInfo, Dispatch const & d )
20254 const VULKAN_HPP_NOEXCEPT
20255 {
20256 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20257 return static_cast<Result>( d.vkSignalSemaphoreKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreSignalInfo const *>( pSignalInfo ) ) );
20258 }
20259
20260 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20261 // wrapper function for command vkSignalSemaphoreKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSignalSemaphoreKHR.html
20262 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSignalSemaphoreKHR ), bool>::type>
20263 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::signalSemaphoreKHR(
20264 SemaphoreSignalInfo const & signalInfo, Dispatch const & d ) const
20265 {
20266 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20267 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20268 VULKAN_HPP_ASSERT( d.vkSignalSemaphoreKHR && "Function <vkSignalSemaphoreKHR> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
20269 # endif
20270
20271 Result result = static_cast<Result>( d.vkSignalSemaphoreKHR( m_device, reinterpret_cast<VkSemaphoreSignalInfo const *>( &signalInfo ) ) );
20272 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::signalSemaphoreKHR" );
20273
20274 return detail::createResultValueType( result );
20275 }
20276 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20277
20278 //=== VK_EXT_present_timing ===
20279
20280 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
20281 // wrapper function for command vkSetSwapchainPresentTimingQueueSizeEXT, see
20282 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetSwapchainPresentTimingQueueSizeEXT.html
20283 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetSwapchainPresentTimingQueueSizeEXT ), bool>::type>
20284 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setSwapchainPresentTimingQueueSizeEXT( SwapchainKHR swapchain, uint32_t size, Dispatch const & d )
20285 const VULKAN_HPP_NOEXCEPT
20286 {
20287 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20288 return static_cast<Result>(
20289 d.vkSetSwapchainPresentTimingQueueSizeEXT( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), size ) );
20290 }
20291 #else
20292 // wrapper function for command vkSetSwapchainPresentTimingQueueSizeEXT, see
20293 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetSwapchainPresentTimingQueueSizeEXT.html
20294 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetSwapchainPresentTimingQueueSizeEXT ), bool>::type>
20295 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setSwapchainPresentTimingQueueSizeEXT( SwapchainKHR swapchain, uint32_t size, Dispatch const & d ) const
20296 {
20297 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20298 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20299 VULKAN_HPP_ASSERT( d.vkSetSwapchainPresentTimingQueueSizeEXT && "Function <vkSetSwapchainPresentTimingQueueSizeEXT> requires <VK_EXT_present_timing>" );
20300 # endif
20301
20302 Result result = static_cast<Result>( d.vkSetSwapchainPresentTimingQueueSizeEXT( m_device, static_cast<VkSwapchainKHR>( swapchain ), size ) );
20303 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setSwapchainPresentTimingQueueSizeEXT", { Result::eSuccess, Result::eNotReady } );
20304
20305 return static_cast<Result>( result );
20306 }
20307 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
20308
20309 // wrapper function for command vkGetSwapchainTimingPropertiesEXT, see
20310 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainTimingPropertiesEXT.html
20311 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainTimingPropertiesEXT ), bool>::type>
20312 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSwapchainTimingPropertiesEXT(
20313 SwapchainKHR swapchain, SwapchainTimingPropertiesEXT * pSwapchainTimingProperties, uint64_t * pSwapchainTimingPropertiesCounter, Dispatch const & d )
20314 const VULKAN_HPP_NOEXCEPT
20315 {
20316 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20317 return static_cast<Result>( d.vkGetSwapchainTimingPropertiesEXT( static_cast<VkDevice>( m_device ),
20318 static_cast<VkSwapchainKHR>( swapchain ),
20319 reinterpret_cast<VkSwapchainTimingPropertiesEXT *>( pSwapchainTimingProperties ),
20320 pSwapchainTimingPropertiesCounter ) );
20321 }
20322
20323 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20324 // wrapper function for command vkGetSwapchainTimingPropertiesEXT, see
20325 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainTimingPropertiesEXT.html
20326 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainTimingPropertiesEXT ), bool>::type>
20327 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::pair<SwapchainTimingPropertiesEXT, uint64_t>> Device::getSwapchainTimingPropertiesEXT(
20328 SwapchainKHR swapchain, Dispatch const & d ) const
20329 {
20330 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20331 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20332 VULKAN_HPP_ASSERT( d.vkGetSwapchainTimingPropertiesEXT && "Function <vkGetSwapchainTimingPropertiesEXT> requires <VK_EXT_present_timing>" );
20333 # endif
20334
20335 std::pair<SwapchainTimingPropertiesEXT, uint64_t> data_;
20336 SwapchainTimingPropertiesEXT & swapchainTimingProperties = data_.first;
20337 uint64_t & swapchainTimingPropertiesCounter = data_.second;
20338 Result result = static_cast<Result>( d.vkGetSwapchainTimingPropertiesEXT( m_device,
20339 static_cast<VkSwapchainKHR>( swapchain ),
20340 reinterpret_cast<VkSwapchainTimingPropertiesEXT *>( &swapchainTimingProperties ),
20341 &swapchainTimingPropertiesCounter ) );
20342 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainTimingPropertiesEXT", { Result::eSuccess, Result::eNotReady } );
20343
20344 return { result, data_ };
20345 }
20346 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20347
20348 // wrapper function for command vkGetSwapchainTimeDomainPropertiesEXT, see
20349 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainTimeDomainPropertiesEXT.html
20350 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainTimeDomainPropertiesEXT ), bool>::type>
20351 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSwapchainTimeDomainPropertiesEXT(
20352 SwapchainKHR swapchain, SwapchainTimeDomainPropertiesEXT * pSwapchainTimeDomainProperties, uint64_t * pTimeDomainsCounter, Dispatch const & d )
20353 const VULKAN_HPP_NOEXCEPT
20354 {
20355 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20356 return static_cast<Result>(
20357 d.vkGetSwapchainTimeDomainPropertiesEXT( static_cast<VkDevice>( m_device ),
20358 static_cast<VkSwapchainKHR>( swapchain ),
20359 reinterpret_cast<VkSwapchainTimeDomainPropertiesEXT *>( pSwapchainTimeDomainProperties ),
20360 pTimeDomainsCounter ) );
20361 }
20362
20363 // wrapper function for command vkGetPastPresentationTimingEXT, see
20364 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPastPresentationTimingEXT.html
20365 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPastPresentationTimingEXT ), bool>::type>
20366 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPastPresentationTimingEXT( PastPresentationTimingInfoEXT const * pPastPresentationTimingInfo,
20367 PastPresentationTimingPropertiesEXT * pPastPresentationTimingProperties,
20368 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20369 {
20370 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20371 return static_cast<Result>(
20372 d.vkGetPastPresentationTimingEXT( static_cast<VkDevice>( m_device ),
20373 reinterpret_cast<VkPastPresentationTimingInfoEXT const *>( pPastPresentationTimingInfo ),
20374 reinterpret_cast<VkPastPresentationTimingPropertiesEXT *>( pPastPresentationTimingProperties ) ) );
20375 }
20376
20377 //=== VK_INTEL_performance_query ===
20378
20379 // wrapper function for command vkInitializePerformanceApiINTEL, see
20380 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkInitializePerformanceApiINTEL.html
20381 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkInitializePerformanceApiINTEL ), bool>::type>
20382 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::initializePerformanceApiINTEL( InitializePerformanceApiInfoINTEL const * pInitializeInfo,
20383 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20384 {
20385 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20386 return static_cast<Result>( d.vkInitializePerformanceApiINTEL( static_cast<VkDevice>( m_device ),
20387 reinterpret_cast<VkInitializePerformanceApiInfoINTEL const *>( pInitializeInfo ) ) );
20388 }
20389
20390 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20391 // wrapper function for command vkInitializePerformanceApiINTEL, see
20392 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkInitializePerformanceApiINTEL.html
20393 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkInitializePerformanceApiINTEL ), bool>::type>
20394 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::initializePerformanceApiINTEL(
20395 InitializePerformanceApiInfoINTEL const & initializeInfo, Dispatch const & d ) const
20396 {
20397 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20398 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20399 VULKAN_HPP_ASSERT( d.vkInitializePerformanceApiINTEL && "Function <vkInitializePerformanceApiINTEL> requires <VK_INTEL_performance_query>" );
20400 # endif
20401
20402 Result result =
20403 static_cast<Result>( d.vkInitializePerformanceApiINTEL( m_device, reinterpret_cast<VkInitializePerformanceApiInfoINTEL const *>( &initializeInfo ) ) );
20404 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::initializePerformanceApiINTEL" );
20405
20406 return detail::createResultValueType( result );
20407 }
20408 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20409
20410 // wrapper function for command vkUninitializePerformanceApiINTEL, see
20411 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUninitializePerformanceApiINTEL.html
20412 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUninitializePerformanceApiINTEL ), bool>::type>
20413 VULKAN_HPP_INLINE void Device::uninitializePerformanceApiINTEL( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20414 {
20415 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20416 d.vkUninitializePerformanceApiINTEL( static_cast<VkDevice>( m_device ) );
20417 }
20418
20419 // wrapper function for command vkCmdSetPerformanceMarkerINTEL, see
20420 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceMarkerINTEL.html
20421 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPerformanceMarkerINTEL ), bool>::type>
20422 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result CommandBuffer::setPerformanceMarkerINTEL( PerformanceMarkerInfoINTEL const * pMarkerInfo, Dispatch const & d )
20423 const VULKAN_HPP_NOEXCEPT
20424 {
20425 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20426 return static_cast<Result>( d.vkCmdSetPerformanceMarkerINTEL( static_cast<VkCommandBuffer>( m_commandBuffer ),
20427 reinterpret_cast<VkPerformanceMarkerInfoINTEL const *>( pMarkerInfo ) ) );
20428 }
20429
20430 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20431 // wrapper function for command vkCmdSetPerformanceMarkerINTEL, see
20432 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceMarkerINTEL.html
20433 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPerformanceMarkerINTEL ), bool>::type>
20434 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::setPerformanceMarkerINTEL(
20435 PerformanceMarkerInfoINTEL const & markerInfo, Dispatch const & d ) const
20436 {
20437 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20438 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20439 VULKAN_HPP_ASSERT( d.vkCmdSetPerformanceMarkerINTEL && "Function <vkCmdSetPerformanceMarkerINTEL> requires <VK_INTEL_performance_query>" );
20440 # endif
20441
20442 Result result =
20443 static_cast<Result>( d.vkCmdSetPerformanceMarkerINTEL( m_commandBuffer, reinterpret_cast<VkPerformanceMarkerInfoINTEL const *>( &markerInfo ) ) );
20444 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setPerformanceMarkerINTEL" );
20445
20446 return detail::createResultValueType( result );
20447 }
20448 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20449
20450 // wrapper function for command vkCmdSetPerformanceStreamMarkerINTEL, see
20451 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceStreamMarkerINTEL.html
20452 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPerformanceStreamMarkerINTEL ), bool>::type>
20453 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result CommandBuffer::setPerformanceStreamMarkerINTEL( PerformanceStreamMarkerInfoINTEL const * pMarkerInfo,
20454 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20455 {
20456 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20457 return static_cast<Result>( d.vkCmdSetPerformanceStreamMarkerINTEL( static_cast<VkCommandBuffer>( m_commandBuffer ),
20458 reinterpret_cast<VkPerformanceStreamMarkerInfoINTEL const *>( pMarkerInfo ) ) );
20459 }
20460
20461 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20462 // wrapper function for command vkCmdSetPerformanceStreamMarkerINTEL, see
20463 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceStreamMarkerINTEL.html
20464 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPerformanceStreamMarkerINTEL ), bool>::type>
20465 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::setPerformanceStreamMarkerINTEL(
20466 PerformanceStreamMarkerInfoINTEL const & markerInfo, Dispatch const & d ) const
20467 {
20468 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20469 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20470 VULKAN_HPP_ASSERT( d.vkCmdSetPerformanceStreamMarkerINTEL && "Function <vkCmdSetPerformanceStreamMarkerINTEL> requires <VK_INTEL_performance_query>" );
20471 # endif
20472
20473 Result result = static_cast<Result>(
20474 d.vkCmdSetPerformanceStreamMarkerINTEL( m_commandBuffer, reinterpret_cast<VkPerformanceStreamMarkerInfoINTEL const *>( &markerInfo ) ) );
20475 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setPerformanceStreamMarkerINTEL" );
20476
20477 return detail::createResultValueType( result );
20478 }
20479 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20480
20481 // wrapper function for command vkCmdSetPerformanceOverrideINTEL, see
20482 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceOverrideINTEL.html
20483 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPerformanceOverrideINTEL ), bool>::type>
20484 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result CommandBuffer::setPerformanceOverrideINTEL( PerformanceOverrideInfoINTEL const * pOverrideInfo,
20485 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20486 {
20487 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20488 return static_cast<Result>( d.vkCmdSetPerformanceOverrideINTEL( static_cast<VkCommandBuffer>( m_commandBuffer ),
20489 reinterpret_cast<VkPerformanceOverrideInfoINTEL const *>( pOverrideInfo ) ) );
20490 }
20491
20492 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20493 // wrapper function for command vkCmdSetPerformanceOverrideINTEL, see
20494 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceOverrideINTEL.html
20495 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPerformanceOverrideINTEL ), bool>::type>
20496 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::setPerformanceOverrideINTEL(
20497 PerformanceOverrideInfoINTEL const & overrideInfo, Dispatch const & d ) const
20498 {
20499 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20500 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20501 VULKAN_HPP_ASSERT( d.vkCmdSetPerformanceOverrideINTEL && "Function <vkCmdSetPerformanceOverrideINTEL> requires <VK_INTEL_performance_query>" );
20502 # endif
20503
20504 Result result =
20505 static_cast<Result>( d.vkCmdSetPerformanceOverrideINTEL( m_commandBuffer, reinterpret_cast<VkPerformanceOverrideInfoINTEL const *>( &overrideInfo ) ) );
20506 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setPerformanceOverrideINTEL" );
20507
20508 return detail::createResultValueType( result );
20509 }
20510 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20511
20512 // wrapper function for command vkAcquirePerformanceConfigurationINTEL, see
20513 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquirePerformanceConfigurationINTEL.html
20514 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquirePerformanceConfigurationINTEL ), bool>::type>
20515 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::acquirePerformanceConfigurationINTEL(
20516 PerformanceConfigurationAcquireInfoINTEL const * pAcquireInfo, PerformanceConfigurationINTEL * pConfiguration, Dispatch const & d )
20517 const VULKAN_HPP_NOEXCEPT
20518 {
20519 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20520 return static_cast<Result>( d.vkAcquirePerformanceConfigurationINTEL( static_cast<VkDevice>( m_device ),
20521 reinterpret_cast<VkPerformanceConfigurationAcquireInfoINTEL const *>( pAcquireInfo ),
20522 reinterpret_cast<VkPerformanceConfigurationINTEL *>( pConfiguration ) ) );
20523 }
20524
20525 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20526 // wrapper function for command vkAcquirePerformanceConfigurationINTEL, see
20527 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquirePerformanceConfigurationINTEL.html
20528 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquirePerformanceConfigurationINTEL ), bool>::type>
20529 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PerformanceConfigurationINTEL>::type Device::acquirePerformanceConfigurationINTEL(
20530 PerformanceConfigurationAcquireInfoINTEL const & acquireInfo, Dispatch const & d ) const
20531 {
20532 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20533 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20534 VULKAN_HPP_ASSERT( d.vkAcquirePerformanceConfigurationINTEL && "Function <vkAcquirePerformanceConfigurationINTEL> requires <VK_INTEL_performance_query>" );
20535 # endif
20536
20537 PerformanceConfigurationINTEL configuration;
20538 Result result =
20539 static_cast<Result>( d.vkAcquirePerformanceConfigurationINTEL( m_device,
20540 reinterpret_cast<VkPerformanceConfigurationAcquireInfoINTEL const *>( &acquireInfo ),
20541 reinterpret_cast<VkPerformanceConfigurationINTEL *>( &configuration ) ) );
20542 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquirePerformanceConfigurationINTEL" );
20543
20544 return detail::createResultValueType( result, std::move( configuration ) );
20545 }
20546
20547 # ifndef VULKAN_HPP_NO_SMART_HANDLE
20548 // wrapper function for command vkAcquirePerformanceConfigurationINTEL, see
20549 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquirePerformanceConfigurationINTEL.html
20550 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquirePerformanceConfigurationINTEL ), bool>::type>
20551 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<PerformanceConfigurationINTEL, Dispatch>>::type
20552 Device::acquirePerformanceConfigurationINTELUnique( PerformanceConfigurationAcquireInfoINTEL const & acquireInfo, Dispatch const & d ) const
20553 {
20554 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20555 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20556 VULKAN_HPP_ASSERT( d.vkAcquirePerformanceConfigurationINTEL && "Function <vkAcquirePerformanceConfigurationINTEL> requires <VK_INTEL_performance_query>" );
20557 # endif
20558
20559 PerformanceConfigurationINTEL configuration;
20560 Result result =
20561 static_cast<Result>( d.vkAcquirePerformanceConfigurationINTEL( m_device,
20562 reinterpret_cast<VkPerformanceConfigurationAcquireInfoINTEL const *>( &acquireInfo ),
20563 reinterpret_cast<VkPerformanceConfigurationINTEL *>( &configuration ) ) );
20564 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquirePerformanceConfigurationINTELUnique" );
20565
20566 return detail::createResultValueType(
20567 result, UniqueHandle<PerformanceConfigurationINTEL, Dispatch>( configuration, detail::ObjectRelease<Device, Dispatch>( *this, d ) ) );
20568 }
20569 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
20570 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20571
20572 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
20573 // wrapper function for command vkReleasePerformanceConfigurationINTEL, see
20574 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleasePerformanceConfigurationINTEL.html
20575 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleasePerformanceConfigurationINTEL ), bool>::type>
20576 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::releasePerformanceConfigurationINTEL( PerformanceConfigurationINTEL configuration, Dispatch const & d )
20577 const VULKAN_HPP_NOEXCEPT
20578 {
20579 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20580 return static_cast<Result>(
20581 d.vkReleasePerformanceConfigurationINTEL( static_cast<VkDevice>( m_device ), static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
20582 }
20583 #else
20584 // wrapper function for command vkReleasePerformanceConfigurationINTEL, see
20585 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleasePerformanceConfigurationINTEL.html
20586 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleasePerformanceConfigurationINTEL ), bool>::type>
20587 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::releasePerformanceConfigurationINTEL(
20588 PerformanceConfigurationINTEL configuration, Dispatch const & d ) const
20589 {
20590 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20591 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20592 VULKAN_HPP_ASSERT( d.vkReleasePerformanceConfigurationINTEL && "Function <vkReleasePerformanceConfigurationINTEL> requires <VK_INTEL_performance_query>" );
20593 # endif
20594
20595 Result result = static_cast<Result>( d.vkReleasePerformanceConfigurationINTEL( m_device, static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
20596 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releasePerformanceConfigurationINTEL" );
20597
20598 return detail::createResultValueType( result );
20599 }
20600 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
20601
20602 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
20603 // wrapper function for command vkReleasePerformanceConfigurationINTEL, see
20604 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleasePerformanceConfigurationINTEL.html
20605 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleasePerformanceConfigurationINTEL ), bool>::type>
20606 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::release( PerformanceConfigurationINTEL configuration, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20607 {
20608 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20609 return static_cast<Result>(
20610 d.vkReleasePerformanceConfigurationINTEL( static_cast<VkDevice>( m_device ), static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
20611 }
20612 #else
20613 // wrapper function for command vkReleasePerformanceConfigurationINTEL, see
20614 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleasePerformanceConfigurationINTEL.html
20615 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleasePerformanceConfigurationINTEL ), bool>::type>
20616 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::release( PerformanceConfigurationINTEL configuration,
20617 Dispatch const & d ) const
20618 {
20619 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20620 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20621 VULKAN_HPP_ASSERT( d.vkReleasePerformanceConfigurationINTEL && "Function <vkReleasePerformanceConfigurationINTEL> requires <VK_INTEL_performance_query>" );
20622 # endif
20623
20624 Result result = static_cast<Result>( d.vkReleasePerformanceConfigurationINTEL( m_device, static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
20625 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::release" );
20626
20627 return detail::createResultValueType( result );
20628 }
20629 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
20630
20631 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
20632 // wrapper function for command vkQueueSetPerformanceConfigurationINTEL, see
20633 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSetPerformanceConfigurationINTEL.html
20634 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSetPerformanceConfigurationINTEL ), bool>::type>
20635 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::setPerformanceConfigurationINTEL( PerformanceConfigurationINTEL configuration, Dispatch const & d )
20636 const VULKAN_HPP_NOEXCEPT
20637 {
20638 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20639 return static_cast<Result>(
20640 d.vkQueueSetPerformanceConfigurationINTEL( static_cast<VkQueue>( m_queue ), static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
20641 }
20642 #else
20643 // wrapper function for command vkQueueSetPerformanceConfigurationINTEL, see
20644 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSetPerformanceConfigurationINTEL.html
20645 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSetPerformanceConfigurationINTEL ), bool>::type>
20646 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Queue::setPerformanceConfigurationINTEL(
20647 PerformanceConfigurationINTEL configuration, Dispatch const & d ) const
20648 {
20649 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20650 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20651 VULKAN_HPP_ASSERT( d.vkQueueSetPerformanceConfigurationINTEL &&
20652 "Function <vkQueueSetPerformanceConfigurationINTEL> requires <VK_INTEL_performance_query>" );
20653 # endif
20654
20655 Result result = static_cast<Result>( d.vkQueueSetPerformanceConfigurationINTEL( m_queue, static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
20656 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::setPerformanceConfigurationINTEL" );
20657
20658 return detail::createResultValueType( result );
20659 }
20660 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
20661
20662 // wrapper function for command vkGetPerformanceParameterINTEL, see
20663 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPerformanceParameterINTEL.html
20664 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPerformanceParameterINTEL ), bool>::type>
20665 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPerformanceParameterINTEL(
20666 PerformanceParameterTypeINTEL parameter, PerformanceValueINTEL * pValue, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20667 {
20668 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20669 return static_cast<Result>( d.vkGetPerformanceParameterINTEL(
20670 static_cast<VkDevice>( m_device ), static_cast<VkPerformanceParameterTypeINTEL>( parameter ), reinterpret_cast<VkPerformanceValueINTEL *>( pValue ) ) );
20671 }
20672
20673 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20674 // wrapper function for command vkGetPerformanceParameterINTEL, see
20675 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPerformanceParameterINTEL.html
20676 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPerformanceParameterINTEL ), bool>::type>
20677 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PerformanceValueINTEL>::type Device::getPerformanceParameterINTEL(
20678 PerformanceParameterTypeINTEL parameter, Dispatch const & d ) const
20679 {
20680 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20681 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20682 VULKAN_HPP_ASSERT( d.vkGetPerformanceParameterINTEL && "Function <vkGetPerformanceParameterINTEL> requires <VK_INTEL_performance_query>" );
20683 # endif
20684
20685 PerformanceValueINTEL value;
20686 Result result = static_cast<Result>( d.vkGetPerformanceParameterINTEL(
20687 m_device, static_cast<VkPerformanceParameterTypeINTEL>( parameter ), reinterpret_cast<VkPerformanceValueINTEL *>( &value ) ) );
20688 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPerformanceParameterINTEL" );
20689
20690 return detail::createResultValueType( result, std::move( value ) );
20691 }
20692 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20693
20694 //=== VK_AMD_display_native_hdr ===
20695
20696 // wrapper function for command vkSetLocalDimmingAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLocalDimmingAMD.html
20697 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetLocalDimmingAMD ), bool>::type>
20698 VULKAN_HPP_INLINE void Device::setLocalDimmingAMD( SwapchainKHR swapChain, Bool32 localDimmingEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20699 {
20700 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20701 d.vkSetLocalDimmingAMD( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapChain ), static_cast<VkBool32>( localDimmingEnable ) );
20702 }
20703
20704 #if defined( VK_USE_PLATFORM_FUCHSIA )
20705 //=== VK_FUCHSIA_imagepipe_surface ===
20706
20707 // wrapper function for command vkCreateImagePipeSurfaceFUCHSIA, see
20708 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImagePipeSurfaceFUCHSIA.html
20709 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImagePipeSurfaceFUCHSIA ), bool>::type>
20710 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createImagePipeSurfaceFUCHSIA(
20711 ImagePipeSurfaceCreateInfoFUCHSIA const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d )
20712 const VULKAN_HPP_NOEXCEPT
20713 {
20714 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20715 return static_cast<Result>( d.vkCreateImagePipeSurfaceFUCHSIA( static_cast<VkInstance>( m_instance ),
20716 reinterpret_cast<VkImagePipeSurfaceCreateInfoFUCHSIA const *>( pCreateInfo ),
20717 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
20718 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
20719 }
20720
20721 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20722 // wrapper function for command vkCreateImagePipeSurfaceFUCHSIA, see
20723 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImagePipeSurfaceFUCHSIA.html
20724 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImagePipeSurfaceFUCHSIA ), bool>::type>
20725 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createImagePipeSurfaceFUCHSIA(
20726 ImagePipeSurfaceCreateInfoFUCHSIA const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
20727 {
20728 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20729 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20730 VULKAN_HPP_ASSERT( d.vkCreateImagePipeSurfaceFUCHSIA && "Function <vkCreateImagePipeSurfaceFUCHSIA> requires <VK_FUCHSIA_imagepipe_surface>" );
20731 # endif
20732
20733 SurfaceKHR surface;
20734 Result result = static_cast<Result>( d.vkCreateImagePipeSurfaceFUCHSIA( m_instance,
20735 reinterpret_cast<VkImagePipeSurfaceCreateInfoFUCHSIA const *>( &createInfo ),
20736 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
20737 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
20738 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createImagePipeSurfaceFUCHSIA" );
20739
20740 return detail::createResultValueType( result, std::move( surface ) );
20741 }
20742
20743 # ifndef VULKAN_HPP_NO_SMART_HANDLE
20744 // wrapper function for command vkCreateImagePipeSurfaceFUCHSIA, see
20745 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImagePipeSurfaceFUCHSIA.html
20746 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImagePipeSurfaceFUCHSIA ), bool>::type>
20747 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createImagePipeSurfaceFUCHSIAUnique(
20748 ImagePipeSurfaceCreateInfoFUCHSIA const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
20749 {
20750 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20751 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20752 VULKAN_HPP_ASSERT( d.vkCreateImagePipeSurfaceFUCHSIA && "Function <vkCreateImagePipeSurfaceFUCHSIA> requires <VK_FUCHSIA_imagepipe_surface>" );
20753 # endif
20754
20755 SurfaceKHR surface;
20756 Result result = static_cast<Result>( d.vkCreateImagePipeSurfaceFUCHSIA( m_instance,
20757 reinterpret_cast<VkImagePipeSurfaceCreateInfoFUCHSIA const *>( &createInfo ),
20758 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
20759 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
20760 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createImagePipeSurfaceFUCHSIAUnique" );
20761
20762 return detail::createResultValueType( result,
20763 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
20764 }
20765 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
20766 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20767 #endif /*VK_USE_PLATFORM_FUCHSIA*/
20768
20769 #if defined( VK_USE_PLATFORM_METAL_EXT )
20770 //=== VK_EXT_metal_surface ===
20771
20772 // wrapper function for command vkCreateMetalSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMetalSurfaceEXT.html
20773 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMetalSurfaceEXT ), bool>::type>
20774 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createMetalSurfaceEXT(
20775 MetalSurfaceCreateInfoEXT const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20776 {
20777 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20778 return static_cast<Result>( d.vkCreateMetalSurfaceEXT( static_cast<VkInstance>( m_instance ),
20779 reinterpret_cast<VkMetalSurfaceCreateInfoEXT const *>( pCreateInfo ),
20780 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
20781 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
20782 }
20783
20784 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20785 // wrapper function for command vkCreateMetalSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMetalSurfaceEXT.html
20786 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMetalSurfaceEXT ), bool>::type>
20787 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createMetalSurfaceEXT(
20788 MetalSurfaceCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
20789 {
20790 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20791 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20792 VULKAN_HPP_ASSERT( d.vkCreateMetalSurfaceEXT && "Function <vkCreateMetalSurfaceEXT> requires <VK_EXT_metal_surface>" );
20793 # endif
20794
20795 SurfaceKHR surface;
20796 Result result = static_cast<Result>( d.vkCreateMetalSurfaceEXT( m_instance,
20797 reinterpret_cast<VkMetalSurfaceCreateInfoEXT const *>( &createInfo ),
20798 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
20799 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
20800 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createMetalSurfaceEXT" );
20801
20802 return detail::createResultValueType( result, std::move( surface ) );
20803 }
20804
20805 # ifndef VULKAN_HPP_NO_SMART_HANDLE
20806 // wrapper function for command vkCreateMetalSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMetalSurfaceEXT.html
20807 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMetalSurfaceEXT ), bool>::type>
20808 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createMetalSurfaceEXTUnique(
20809 MetalSurfaceCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
20810 {
20811 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20812 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20813 VULKAN_HPP_ASSERT( d.vkCreateMetalSurfaceEXT && "Function <vkCreateMetalSurfaceEXT> requires <VK_EXT_metal_surface>" );
20814 # endif
20815
20816 SurfaceKHR surface;
20817 Result result = static_cast<Result>( d.vkCreateMetalSurfaceEXT( m_instance,
20818 reinterpret_cast<VkMetalSurfaceCreateInfoEXT const *>( &createInfo ),
20819 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
20820 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
20821 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createMetalSurfaceEXTUnique" );
20822
20823 return detail::createResultValueType( result,
20824 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
20825 }
20826 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
20827 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20828 #endif /*VK_USE_PLATFORM_METAL_EXT*/
20829
20830 //=== VK_KHR_fragment_shading_rate ===
20831
20832 // wrapper function for command vkGetPhysicalDeviceFragmentShadingRatesKHR, see
20833 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFragmentShadingRatesKHR.html
20834 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFragmentShadingRatesKHR ), bool>::type>
20835 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getFragmentShadingRatesKHR(
20836 uint32_t * pFragmentShadingRateCount, PhysicalDeviceFragmentShadingRateKHR * pFragmentShadingRates, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20837 {
20838 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20839 return static_cast<Result>(
20840 d.vkGetPhysicalDeviceFragmentShadingRatesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20841 pFragmentShadingRateCount,
20842 reinterpret_cast<VkPhysicalDeviceFragmentShadingRateKHR *>( pFragmentShadingRates ) ) );
20843 }
20844
20845 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20846 // wrapper function for command vkGetPhysicalDeviceFragmentShadingRatesKHR, see
20847 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFragmentShadingRatesKHR.html
20848 template <
20849 typename PhysicalDeviceFragmentShadingRateKHRAllocator,
20850 typename Dispatch,
20851 typename std::enable_if<std::is_same<typename PhysicalDeviceFragmentShadingRateKHRAllocator::value_type, PhysicalDeviceFragmentShadingRateKHR>::value,
20852 int>::type,
20853 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFragmentShadingRatesKHR ), bool>::type>
20854 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
20855 typename ResultValueType<std::vector<PhysicalDeviceFragmentShadingRateKHR, PhysicalDeviceFragmentShadingRateKHRAllocator>>::type
20856 PhysicalDevice::getFragmentShadingRatesKHR( Dispatch const & d ) const
20857 {
20858 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20859 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20860 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFragmentShadingRatesKHR &&
20861 "Function <vkGetPhysicalDeviceFragmentShadingRatesKHR> requires <VK_KHR_fragment_shading_rate>" );
20862 # endif
20863
20864 std::vector<PhysicalDeviceFragmentShadingRateKHR, PhysicalDeviceFragmentShadingRateKHRAllocator> fragmentShadingRates;
20865 uint32_t fragmentShadingRateCount;
20866 Result result;
20867 do
20868 {
20869 result = static_cast<Result>( d.vkGetPhysicalDeviceFragmentShadingRatesKHR( m_physicalDevice, &fragmentShadingRateCount, nullptr ) );
20870 if ( ( result == Result::eSuccess ) && fragmentShadingRateCount )
20871 {
20872 fragmentShadingRates.resize( fragmentShadingRateCount );
20873 result = static_cast<Result>( d.vkGetPhysicalDeviceFragmentShadingRatesKHR(
20874 m_physicalDevice, &fragmentShadingRateCount, reinterpret_cast<VkPhysicalDeviceFragmentShadingRateKHR *>( fragmentShadingRates.data() ) ) );
20875 }
20876 } while ( result == Result::eIncomplete );
20877 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getFragmentShadingRatesKHR" );
20878 VULKAN_HPP_ASSERT( fragmentShadingRateCount <= fragmentShadingRates.size() );
20879 if ( fragmentShadingRateCount < fragmentShadingRates.size() )
20880 {
20881 fragmentShadingRates.resize( fragmentShadingRateCount );
20882 }
20883 return detail::createResultValueType( result, std::move( fragmentShadingRates ) );
20884 }
20885
20886 // wrapper function for command vkGetPhysicalDeviceFragmentShadingRatesKHR, see
20887 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFragmentShadingRatesKHR.html
20888 template <
20889 typename PhysicalDeviceFragmentShadingRateKHRAllocator,
20890 typename Dispatch,
20891 typename std::enable_if<std::is_same<typename PhysicalDeviceFragmentShadingRateKHRAllocator::value_type, PhysicalDeviceFragmentShadingRateKHR>::value,
20892 int>::type,
20893 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFragmentShadingRatesKHR ), bool>::type>
20894 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
20895 typename ResultValueType<std::vector<PhysicalDeviceFragmentShadingRateKHR, PhysicalDeviceFragmentShadingRateKHRAllocator>>::type
20896 PhysicalDevice::getFragmentShadingRatesKHR( PhysicalDeviceFragmentShadingRateKHRAllocator const & physicalDeviceFragmentShadingRateKHRAllocator,
20897 Dispatch const & d ) const
20898 {
20899 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20900 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20901 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFragmentShadingRatesKHR &&
20902 "Function <vkGetPhysicalDeviceFragmentShadingRatesKHR> requires <VK_KHR_fragment_shading_rate>" );
20903 # endif
20904
20905 std::vector<PhysicalDeviceFragmentShadingRateKHR, PhysicalDeviceFragmentShadingRateKHRAllocator> fragmentShadingRates(
20906 physicalDeviceFragmentShadingRateKHRAllocator );
20907 uint32_t fragmentShadingRateCount;
20908 Result result;
20909 do
20910 {
20911 result = static_cast<Result>( d.vkGetPhysicalDeviceFragmentShadingRatesKHR( m_physicalDevice, &fragmentShadingRateCount, nullptr ) );
20912 if ( ( result == Result::eSuccess ) && fragmentShadingRateCount )
20913 {
20914 fragmentShadingRates.resize( fragmentShadingRateCount );
20915 result = static_cast<Result>( d.vkGetPhysicalDeviceFragmentShadingRatesKHR(
20916 m_physicalDevice, &fragmentShadingRateCount, reinterpret_cast<VkPhysicalDeviceFragmentShadingRateKHR *>( fragmentShadingRates.data() ) ) );
20917 }
20918 } while ( result == Result::eIncomplete );
20919 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getFragmentShadingRatesKHR" );
20920 VULKAN_HPP_ASSERT( fragmentShadingRateCount <= fragmentShadingRates.size() );
20921 if ( fragmentShadingRateCount < fragmentShadingRates.size() )
20922 {
20923 fragmentShadingRates.resize( fragmentShadingRateCount );
20924 }
20925 return detail::createResultValueType( result, std::move( fragmentShadingRates ) );
20926 }
20927 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20928
20929 // wrapper function for command vkCmdSetFragmentShadingRateKHR, see
20930 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFragmentShadingRateKHR.html
20931 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetFragmentShadingRateKHR ), bool>::type>
20932 VULKAN_HPP_INLINE void CommandBuffer::setFragmentShadingRateKHR(
20933 Extent2D const * pFragmentSize, FragmentShadingRateCombinerOpKHR const combinerOps[2], Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20934 {
20935 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20936 d.vkCmdSetFragmentShadingRateKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
20937 reinterpret_cast<VkExtent2D const *>( pFragmentSize ),
20938 reinterpret_cast<VkFragmentShadingRateCombinerOpKHR const *>( combinerOps ) );
20939 }
20940
20941 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20942 // wrapper function for command vkCmdSetFragmentShadingRateKHR, see
20943 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFragmentShadingRateKHR.html
20944 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetFragmentShadingRateKHR ), bool>::type>
20945 VULKAN_HPP_INLINE void CommandBuffer::setFragmentShadingRateKHR(
20946 Extent2D const & fragmentSize, FragmentShadingRateCombinerOpKHR const combinerOps[2], Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20947 {
20948 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20949 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20950 VULKAN_HPP_ASSERT( d.vkCmdSetFragmentShadingRateKHR && "Function <vkCmdSetFragmentShadingRateKHR> requires <VK_KHR_fragment_shading_rate>" );
20951 # endif
20952
20953 d.vkCmdSetFragmentShadingRateKHR(
20954 m_commandBuffer, reinterpret_cast<VkExtent2D const *>( &fragmentSize ), reinterpret_cast<VkFragmentShadingRateCombinerOpKHR const *>( combinerOps ) );
20955 }
20956 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20957
20958 //=== VK_KHR_dynamic_rendering_local_read ===
20959
20960 // wrapper function for command vkCmdSetRenderingAttachmentLocationsKHR, see
20961 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingAttachmentLocationsKHR.html
20962 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingAttachmentLocationsKHR ), bool>::type>
20963 VULKAN_HPP_INLINE void CommandBuffer::setRenderingAttachmentLocationsKHR( RenderingAttachmentLocationInfo const * pLocationInfo, Dispatch const & d )
20964 const VULKAN_HPP_NOEXCEPT
20965 {
20966 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20967 d.vkCmdSetRenderingAttachmentLocationsKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
20968 reinterpret_cast<VkRenderingAttachmentLocationInfo const *>( pLocationInfo ) );
20969 }
20970
20971 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20972 // wrapper function for command vkCmdSetRenderingAttachmentLocationsKHR, see
20973 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingAttachmentLocationsKHR.html
20974 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingAttachmentLocationsKHR ), bool>::type>
20975 VULKAN_HPP_INLINE void CommandBuffer::setRenderingAttachmentLocationsKHR( RenderingAttachmentLocationInfo const & locationInfo, Dispatch const & d )
20976 const VULKAN_HPP_NOEXCEPT
20977 {
20978 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20979 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20980 VULKAN_HPP_ASSERT( d.vkCmdSetRenderingAttachmentLocationsKHR &&
20981 "Function <vkCmdSetRenderingAttachmentLocationsKHR> requires <VK_KHR_dynamic_rendering_local_read> or <VK_VERSION_1_4>" );
20982 # endif
20983
20984 d.vkCmdSetRenderingAttachmentLocationsKHR( m_commandBuffer, reinterpret_cast<VkRenderingAttachmentLocationInfo const *>( &locationInfo ) );
20985 }
20986 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20987
20988 // wrapper function for command vkCmdSetRenderingInputAttachmentIndicesKHR, see
20989 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingInputAttachmentIndicesKHR.html
20990 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingInputAttachmentIndicesKHR ), bool>::type>
20991 VULKAN_HPP_INLINE void CommandBuffer::setRenderingInputAttachmentIndicesKHR( RenderingInputAttachmentIndexInfo const * pInputAttachmentIndexInfo,
20992 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20993 {
20994 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20995 d.vkCmdSetRenderingInputAttachmentIndicesKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
20996 reinterpret_cast<VkRenderingInputAttachmentIndexInfo const *>( pInputAttachmentIndexInfo ) );
20997 }
20998
20999 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21000 // wrapper function for command vkCmdSetRenderingInputAttachmentIndicesKHR, see
21001 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingInputAttachmentIndicesKHR.html
21002 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingInputAttachmentIndicesKHR ), bool>::type>
21003 VULKAN_HPP_INLINE void CommandBuffer::setRenderingInputAttachmentIndicesKHR( RenderingInputAttachmentIndexInfo const & inputAttachmentIndexInfo,
21004 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21005 {
21006 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21007 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21008 VULKAN_HPP_ASSERT( d.vkCmdSetRenderingInputAttachmentIndicesKHR &&
21009 "Function <vkCmdSetRenderingInputAttachmentIndicesKHR> requires <VK_KHR_dynamic_rendering_local_read> or <VK_VERSION_1_4>" );
21010 # endif
21011
21012 d.vkCmdSetRenderingInputAttachmentIndicesKHR( m_commandBuffer, reinterpret_cast<VkRenderingInputAttachmentIndexInfo const *>( &inputAttachmentIndexInfo ) );
21013 }
21014 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21015
21016 //=== VK_EXT_buffer_device_address ===
21017
21018 // wrapper function for command vkGetBufferDeviceAddressEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddressEXT.html
21019 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferDeviceAddressEXT ), bool>::type>
21020 VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddressEXT( BufferDeviceAddressInfo const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21021 {
21022 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21023 return static_cast<DeviceAddress>(
21024 d.vkGetBufferDeviceAddressEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkBufferDeviceAddressInfo const *>( pInfo ) ) );
21025 }
21026
21027 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21028 // wrapper function for command vkGetBufferDeviceAddressEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddressEXT.html
21029 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferDeviceAddressEXT ), bool>::type>
21030 VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddressEXT( BufferDeviceAddressInfo const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21031 {
21032 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21033 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21034 VULKAN_HPP_ASSERT( d.vkGetBufferDeviceAddressEXT &&
21035 "Function <vkGetBufferDeviceAddressEXT> requires <VK_EXT_buffer_device_address> or <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
21036 # endif
21037
21038 VkDeviceAddress result = d.vkGetBufferDeviceAddressEXT( m_device, reinterpret_cast<VkBufferDeviceAddressInfo const *>( &info ) );
21039
21040 return static_cast<DeviceAddress>( result );
21041 }
21042 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21043
21044 //=== VK_EXT_tooling_info ===
21045
21046 // wrapper function for command vkGetPhysicalDeviceToolPropertiesEXT, see
21047 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolPropertiesEXT.html
21048 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceToolPropertiesEXT ), bool>::type>
21049 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getToolPropertiesEXT(
21050 uint32_t * pToolCount, PhysicalDeviceToolProperties * pToolProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21051 {
21052 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21053 return static_cast<Result>( d.vkGetPhysicalDeviceToolPropertiesEXT(
21054 static_cast<VkPhysicalDevice>( m_physicalDevice ), pToolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( pToolProperties ) ) );
21055 }
21056
21057 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21058 // wrapper function for command vkGetPhysicalDeviceToolPropertiesEXT, see
21059 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolPropertiesEXT.html
21060 template <typename PhysicalDeviceToolPropertiesAllocator,
21061 typename Dispatch,
21062 typename std::enable_if<std::is_same<typename PhysicalDeviceToolPropertiesAllocator::value_type, PhysicalDeviceToolProperties>::value, int>::type,
21063 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceToolPropertiesEXT ), bool>::type>
21064 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator>>::type
21065 PhysicalDevice::getToolPropertiesEXT( Dispatch const & d ) const
21066 {
21067 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21068 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21069 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceToolPropertiesEXT &&
21070 "Function <vkGetPhysicalDeviceToolPropertiesEXT> requires <VK_EXT_tooling_info> or <VK_VERSION_1_3>" );
21071 # endif
21072
21073 std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator> toolProperties;
21074 uint32_t toolCount;
21075 Result result;
21076 do
21077 {
21078 result = static_cast<Result>( d.vkGetPhysicalDeviceToolPropertiesEXT( m_physicalDevice, &toolCount, nullptr ) );
21079 if ( ( result == Result::eSuccess ) && toolCount )
21080 {
21081 toolProperties.resize( toolCount );
21082 result = static_cast<Result>(
21083 d.vkGetPhysicalDeviceToolPropertiesEXT( m_physicalDevice, &toolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( toolProperties.data() ) ) );
21084 }
21085 } while ( result == Result::eIncomplete );
21086 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolPropertiesEXT" );
21087 VULKAN_HPP_ASSERT( toolCount <= toolProperties.size() );
21088 if ( toolCount < toolProperties.size() )
21089 {
21090 toolProperties.resize( toolCount );
21091 }
21092 return detail::createResultValueType( result, std::move( toolProperties ) );
21093 }
21094
21095 // wrapper function for command vkGetPhysicalDeviceToolPropertiesEXT, see
21096 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolPropertiesEXT.html
21097 template <typename PhysicalDeviceToolPropertiesAllocator,
21098 typename Dispatch,
21099 typename std::enable_if<std::is_same<typename PhysicalDeviceToolPropertiesAllocator::value_type, PhysicalDeviceToolProperties>::value, int>::type,
21100 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceToolPropertiesEXT ), bool>::type>
21101 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator>>::type
21102 PhysicalDevice::getToolPropertiesEXT( PhysicalDeviceToolPropertiesAllocator const & physicalDeviceToolPropertiesAllocator, Dispatch const & d ) const
21103 {
21104 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21105 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21106 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceToolPropertiesEXT &&
21107 "Function <vkGetPhysicalDeviceToolPropertiesEXT> requires <VK_EXT_tooling_info> or <VK_VERSION_1_3>" );
21108 # endif
21109
21110 std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator> toolProperties( physicalDeviceToolPropertiesAllocator );
21111 uint32_t toolCount;
21112 Result result;
21113 do
21114 {
21115 result = static_cast<Result>( d.vkGetPhysicalDeviceToolPropertiesEXT( m_physicalDevice, &toolCount, nullptr ) );
21116 if ( ( result == Result::eSuccess ) && toolCount )
21117 {
21118 toolProperties.resize( toolCount );
21119 result = static_cast<Result>(
21120 d.vkGetPhysicalDeviceToolPropertiesEXT( m_physicalDevice, &toolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( toolProperties.data() ) ) );
21121 }
21122 } while ( result == Result::eIncomplete );
21123 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolPropertiesEXT" );
21124 VULKAN_HPP_ASSERT( toolCount <= toolProperties.size() );
21125 if ( toolCount < toolProperties.size() )
21126 {
21127 toolProperties.resize( toolCount );
21128 }
21129 return detail::createResultValueType( result, std::move( toolProperties ) );
21130 }
21131 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21132
21133 //=== VK_KHR_present_wait ===
21134
21135 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
21136 // wrapper function for command vkWaitForPresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForPresentKHR.html
21137 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitForPresentKHR ), bool>::type>
21138 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForPresentKHR( SwapchainKHR swapchain, uint64_t presentId, uint64_t timeout, Dispatch const & d )
21139 const VULKAN_HPP_NOEXCEPT
21140 {
21141 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21142 return static_cast<Result>( d.vkWaitForPresentKHR( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), presentId, timeout ) );
21143 }
21144 #else
21145 // wrapper function for command vkWaitForPresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForPresentKHR.html
21146 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitForPresentKHR ), bool>::type>
21147 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForPresentKHR( SwapchainKHR swapchain, uint64_t presentId, uint64_t timeout, Dispatch const & d )
21148 const
21149 {
21150 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21151 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21152 VULKAN_HPP_ASSERT( d.vkWaitForPresentKHR && "Function <vkWaitForPresentKHR> requires <VK_KHR_present_wait>" );
21153 # endif
21154
21155 Result result = static_cast<Result>( d.vkWaitForPresentKHR( m_device, static_cast<VkSwapchainKHR>( swapchain ), presentId, timeout ) );
21156
21157 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
21158 detail::resultCheck( result,
21159 VULKAN_HPP_NAMESPACE_STRING "::Device::waitForPresentKHR",
21160 { Result::eSuccess, Result::eTimeout, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
21161 # else
21162 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitForPresentKHR", { Result::eSuccess, Result::eTimeout, Result::eSuboptimalKHR } );
21163 # endif
21164
21165 return static_cast<Result>( result );
21166 }
21167 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
21168
21169 //=== VK_NV_cooperative_matrix ===
21170
21171 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesNV, see
21172 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesNV.html
21173 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesNV ), bool>::type>
21174 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCooperativeMatrixPropertiesNV(
21175 uint32_t * pPropertyCount, CooperativeMatrixPropertiesNV * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21176 {
21177 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21178 return static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV(
21179 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesNV *>( pProperties ) ) );
21180 }
21181
21182 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21183 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesNV, see
21184 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesNV.html
21185 template <typename CooperativeMatrixPropertiesNVAllocator,
21186 typename Dispatch,
21187 typename std::enable_if<std::is_same<typename CooperativeMatrixPropertiesNVAllocator::value_type, CooperativeMatrixPropertiesNV>::value, int>::type,
21188 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesNV ), bool>::type>
21189 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeMatrixPropertiesNV, CooperativeMatrixPropertiesNVAllocator>>::type
21190 PhysicalDevice::getCooperativeMatrixPropertiesNV( Dispatch const & d ) const
21191 {
21192 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21193 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21194 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV &&
21195 "Function <vkGetPhysicalDeviceCooperativeMatrixPropertiesNV> requires <VK_NV_cooperative_matrix>" );
21196 # endif
21197
21198 std::vector<CooperativeMatrixPropertiesNV, CooperativeMatrixPropertiesNVAllocator> properties;
21199 uint32_t propertyCount;
21200 Result result;
21201 do
21202 {
21203 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) );
21204 if ( ( result == Result::eSuccess ) && propertyCount )
21205 {
21206 properties.resize( propertyCount );
21207 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV(
21208 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesNV *>( properties.data() ) ) );
21209 }
21210 } while ( result == Result::eIncomplete );
21211 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesNV" );
21212 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
21213 if ( propertyCount < properties.size() )
21214 {
21215 properties.resize( propertyCount );
21216 }
21217 return detail::createResultValueType( result, std::move( properties ) );
21218 }
21219
21220 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesNV, see
21221 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesNV.html
21222 template <typename CooperativeMatrixPropertiesNVAllocator,
21223 typename Dispatch,
21224 typename std::enable_if<std::is_same<typename CooperativeMatrixPropertiesNVAllocator::value_type, CooperativeMatrixPropertiesNV>::value, int>::type,
21225 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesNV ), bool>::type>
21226 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeMatrixPropertiesNV, CooperativeMatrixPropertiesNVAllocator>>::type
21227 PhysicalDevice::getCooperativeMatrixPropertiesNV( CooperativeMatrixPropertiesNVAllocator const & cooperativeMatrixPropertiesNVAllocator,
21228 Dispatch const & d ) const
21229 {
21230 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21231 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21232 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV &&
21233 "Function <vkGetPhysicalDeviceCooperativeMatrixPropertiesNV> requires <VK_NV_cooperative_matrix>" );
21234 # endif
21235
21236 std::vector<CooperativeMatrixPropertiesNV, CooperativeMatrixPropertiesNVAllocator> properties( cooperativeMatrixPropertiesNVAllocator );
21237 uint32_t propertyCount;
21238 Result result;
21239 do
21240 {
21241 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) );
21242 if ( ( result == Result::eSuccess ) && propertyCount )
21243 {
21244 properties.resize( propertyCount );
21245 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV(
21246 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesNV *>( properties.data() ) ) );
21247 }
21248 } while ( result == Result::eIncomplete );
21249 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesNV" );
21250 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
21251 if ( propertyCount < properties.size() )
21252 {
21253 properties.resize( propertyCount );
21254 }
21255 return detail::createResultValueType( result, std::move( properties ) );
21256 }
21257 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21258
21259 //=== VK_NV_coverage_reduction_mode ===
21260
21261 // wrapper function for command vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV, see
21262 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV.html
21263 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV ), bool>::type>
21264 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV(
21265 uint32_t * pCombinationCount, FramebufferMixedSamplesCombinationNV * pCombinations, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21266 {
21267 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21268 return static_cast<Result>( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
21269 static_cast<VkPhysicalDevice>( m_physicalDevice ), pCombinationCount, reinterpret_cast<VkFramebufferMixedSamplesCombinationNV *>( pCombinations ) ) );
21270 }
21271
21272 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21273 // wrapper function for command vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV, see
21274 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV.html
21275 template <
21276 typename FramebufferMixedSamplesCombinationNVAllocator,
21277 typename Dispatch,
21278 typename std::enable_if<std::is_same<typename FramebufferMixedSamplesCombinationNVAllocator::value_type, FramebufferMixedSamplesCombinationNV>::value,
21279 int>::type,
21280 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV ), bool>::type>
21281 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
21282 typename ResultValueType<std::vector<FramebufferMixedSamplesCombinationNV, FramebufferMixedSamplesCombinationNVAllocator>>::type
21283 PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV( Dispatch const & d ) const
21284 {
21285 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21286 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21287 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV &&
21288 "Function <vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV> requires <VK_NV_coverage_reduction_mode>" );
21289 # endif
21290
21291 std::vector<FramebufferMixedSamplesCombinationNV, FramebufferMixedSamplesCombinationNVAllocator> combinations;
21292 uint32_t combinationCount;
21293 Result result;
21294 do
21295 {
21296 result = static_cast<Result>( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( m_physicalDevice, &combinationCount, nullptr ) );
21297 if ( ( result == Result::eSuccess ) && combinationCount )
21298 {
21299 combinations.resize( combinationCount );
21300 result = static_cast<Result>( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
21301 m_physicalDevice, &combinationCount, reinterpret_cast<VkFramebufferMixedSamplesCombinationNV *>( combinations.data() ) ) );
21302 }
21303 } while ( result == Result::eIncomplete );
21304 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV" );
21305 VULKAN_HPP_ASSERT( combinationCount <= combinations.size() );
21306 if ( combinationCount < combinations.size() )
21307 {
21308 combinations.resize( combinationCount );
21309 }
21310 return detail::createResultValueType( result, std::move( combinations ) );
21311 }
21312
21313 // wrapper function for command vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV, see
21314 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV.html
21315 template <
21316 typename FramebufferMixedSamplesCombinationNVAllocator,
21317 typename Dispatch,
21318 typename std::enable_if<std::is_same<typename FramebufferMixedSamplesCombinationNVAllocator::value_type, FramebufferMixedSamplesCombinationNV>::value,
21319 int>::type,
21320 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV ), bool>::type>
21321 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
21322 typename ResultValueType<std::vector<FramebufferMixedSamplesCombinationNV, FramebufferMixedSamplesCombinationNVAllocator>>::type
21323 PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV(
21324 FramebufferMixedSamplesCombinationNVAllocator const & framebufferMixedSamplesCombinationNVAllocator, Dispatch const & d ) const
21325 {
21326 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21327 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21328 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV &&
21329 "Function <vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV> requires <VK_NV_coverage_reduction_mode>" );
21330 # endif
21331
21332 std::vector<FramebufferMixedSamplesCombinationNV, FramebufferMixedSamplesCombinationNVAllocator> combinations(
21333 framebufferMixedSamplesCombinationNVAllocator );
21334 uint32_t combinationCount;
21335 Result result;
21336 do
21337 {
21338 result = static_cast<Result>( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( m_physicalDevice, &combinationCount, nullptr ) );
21339 if ( ( result == Result::eSuccess ) && combinationCount )
21340 {
21341 combinations.resize( combinationCount );
21342 result = static_cast<Result>( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
21343 m_physicalDevice, &combinationCount, reinterpret_cast<VkFramebufferMixedSamplesCombinationNV *>( combinations.data() ) ) );
21344 }
21345 } while ( result == Result::eIncomplete );
21346 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV" );
21347 VULKAN_HPP_ASSERT( combinationCount <= combinations.size() );
21348 if ( combinationCount < combinations.size() )
21349 {
21350 combinations.resize( combinationCount );
21351 }
21352 return detail::createResultValueType( result, std::move( combinations ) );
21353 }
21354 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21355
21356 #if defined( VK_USE_PLATFORM_WIN32_KHR )
21357 //=== VK_EXT_full_screen_exclusive ===
21358
21359 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModes2EXT, see
21360 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModes2EXT.html
21361 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfacePresentModes2EXT ), bool>::type>
21362 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfacePresentModes2EXT(
21363 PhysicalDeviceSurfaceInfo2KHR const * pSurfaceInfo, uint32_t * pPresentModeCount, PresentModeKHR * pPresentModes, Dispatch const & d )
21364 const VULKAN_HPP_NOEXCEPT
21365 {
21366 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21367 return static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21368 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( pSurfaceInfo ),
21369 pPresentModeCount,
21370 reinterpret_cast<VkPresentModeKHR *>( pPresentModes ) ) );
21371 }
21372
21373 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21374 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModes2EXT, see
21375 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModes2EXT.html
21376 template <typename PresentModeKHRAllocator,
21377 typename Dispatch,
21378 typename std::enable_if<std::is_same<typename PresentModeKHRAllocator::value_type, PresentModeKHR>::value, int>::type,
21379 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfacePresentModes2EXT ), bool>::type>
21380 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PresentModeKHR, PresentModeKHRAllocator>>::type
21381 PhysicalDevice::getSurfacePresentModes2EXT( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo, Dispatch const & d ) const
21382 {
21383 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21384 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21385 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfacePresentModes2EXT &&
21386 "Function <vkGetPhysicalDeviceSurfacePresentModes2EXT> requires <VK_EXT_full_screen_exclusive>" );
21387 # endif
21388
21389 std::vector<PresentModeKHR, PresentModeKHRAllocator> presentModes;
21390 uint32_t presentModeCount;
21391 Result result;
21392 do
21393 {
21394 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModes2EXT(
21395 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ), &presentModeCount, nullptr ) );
21396 if ( ( result == Result::eSuccess ) && presentModeCount )
21397 {
21398 presentModes.resize( presentModeCount );
21399 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( m_physicalDevice,
21400 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
21401 &presentModeCount,
21402 reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
21403 }
21404 } while ( result == Result::eIncomplete );
21405 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModes2EXT" );
21406 VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
21407 if ( presentModeCount < presentModes.size() )
21408 {
21409 presentModes.resize( presentModeCount );
21410 }
21411 return detail::createResultValueType( result, std::move( presentModes ) );
21412 }
21413
21414 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModes2EXT, see
21415 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModes2EXT.html
21416 template <typename PresentModeKHRAllocator,
21417 typename Dispatch,
21418 typename std::enable_if<std::is_same<typename PresentModeKHRAllocator::value_type, PresentModeKHR>::value, int>::type,
21419 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfacePresentModes2EXT ), bool>::type>
21420 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PresentModeKHR, PresentModeKHRAllocator>>::type
21421 PhysicalDevice::getSurfacePresentModes2EXT(
21422 PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo, PresentModeKHRAllocator const & presentModeKHRAllocator, Dispatch const & d ) const
21423 {
21424 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21425 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21426 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfacePresentModes2EXT &&
21427 "Function <vkGetPhysicalDeviceSurfacePresentModes2EXT> requires <VK_EXT_full_screen_exclusive>" );
21428 # endif
21429
21430 std::vector<PresentModeKHR, PresentModeKHRAllocator> presentModes( presentModeKHRAllocator );
21431 uint32_t presentModeCount;
21432 Result result;
21433 do
21434 {
21435 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModes2EXT(
21436 m_physicalDevice, reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ), &presentModeCount, nullptr ) );
21437 if ( ( result == Result::eSuccess ) && presentModeCount )
21438 {
21439 presentModes.resize( presentModeCount );
21440 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( m_physicalDevice,
21441 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
21442 &presentModeCount,
21443 reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
21444 }
21445 } while ( result == Result::eIncomplete );
21446 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModes2EXT" );
21447 VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
21448 if ( presentModeCount < presentModes.size() )
21449 {
21450 presentModes.resize( presentModeCount );
21451 }
21452 return detail::createResultValueType( result, std::move( presentModes ) );
21453 }
21454 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21455
21456 # ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
21457 // wrapper function for command vkAcquireFullScreenExclusiveModeEXT, see
21458 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireFullScreenExclusiveModeEXT.html
21459 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireFullScreenExclusiveModeEXT ), bool>::type>
21460 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::acquireFullScreenExclusiveModeEXT( SwapchainKHR swapchain, Dispatch const & d )
21461 const VULKAN_HPP_NOEXCEPT
21462 {
21463 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21464 return static_cast<Result>( d.vkAcquireFullScreenExclusiveModeEXT( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ) ) );
21465 }
21466 # else
21467 // wrapper function for command vkAcquireFullScreenExclusiveModeEXT, see
21468 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireFullScreenExclusiveModeEXT.html
21469 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireFullScreenExclusiveModeEXT ), bool>::type>
21470 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::acquireFullScreenExclusiveModeEXT(
21471 SwapchainKHR swapchain, Dispatch const & d ) const
21472 {
21473 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21474 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21475 VULKAN_HPP_ASSERT( d.vkAcquireFullScreenExclusiveModeEXT && "Function <vkAcquireFullScreenExclusiveModeEXT> requires <VK_EXT_full_screen_exclusive>" );
21476 # endif
21477
21478 Result result = static_cast<Result>( d.vkAcquireFullScreenExclusiveModeEXT( m_device, static_cast<VkSwapchainKHR>( swapchain ) ) );
21479 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquireFullScreenExclusiveModeEXT" );
21480
21481 return detail::createResultValueType( result );
21482 }
21483 # endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
21484
21485 # ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
21486 // wrapper function for command vkReleaseFullScreenExclusiveModeEXT, see
21487 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseFullScreenExclusiveModeEXT.html
21488 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseFullScreenExclusiveModeEXT ), bool>::type>
21489 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::releaseFullScreenExclusiveModeEXT( SwapchainKHR swapchain, Dispatch const & d )
21490 const VULKAN_HPP_NOEXCEPT
21491 {
21492 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21493 return static_cast<Result>( d.vkReleaseFullScreenExclusiveModeEXT( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ) ) );
21494 }
21495 # else
21496 // wrapper function for command vkReleaseFullScreenExclusiveModeEXT, see
21497 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseFullScreenExclusiveModeEXT.html
21498 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseFullScreenExclusiveModeEXT ), bool>::type>
21499 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::releaseFullScreenExclusiveModeEXT(
21500 SwapchainKHR swapchain, Dispatch const & d ) const
21501 {
21502 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21503 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21504 VULKAN_HPP_ASSERT( d.vkReleaseFullScreenExclusiveModeEXT && "Function <vkReleaseFullScreenExclusiveModeEXT> requires <VK_EXT_full_screen_exclusive>" );
21505 # endif
21506
21507 Result result = static_cast<Result>( d.vkReleaseFullScreenExclusiveModeEXT( m_device, static_cast<VkSwapchainKHR>( swapchain ) ) );
21508 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releaseFullScreenExclusiveModeEXT" );
21509
21510 return detail::createResultValueType( result );
21511 }
21512 # endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
21513
21514 // wrapper function for command vkGetDeviceGroupSurfacePresentModes2EXT, see
21515 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupSurfacePresentModes2EXT.html
21516 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupSurfacePresentModes2EXT ), bool>::type>
21517 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getGroupSurfacePresentModes2EXT(
21518 PhysicalDeviceSurfaceInfo2KHR const * pSurfaceInfo, DeviceGroupPresentModeFlagsKHR * pModes, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21519 {
21520 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21521 return static_cast<Result>( d.vkGetDeviceGroupSurfacePresentModes2EXT( static_cast<VkDevice>( m_device ),
21522 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( pSurfaceInfo ),
21523 reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( pModes ) ) );
21524 }
21525
21526 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21527 // wrapper function for command vkGetDeviceGroupSurfacePresentModes2EXT, see
21528 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupSurfacePresentModes2EXT.html
21529 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupSurfacePresentModes2EXT ), bool>::type>
21530 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeviceGroupPresentModeFlagsKHR>::type Device::getGroupSurfacePresentModes2EXT(
21531 PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo, Dispatch const & d ) const
21532 {
21533 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21534 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21535 VULKAN_HPP_ASSERT( d.vkGetDeviceGroupSurfacePresentModes2EXT &&
21536 "Function <vkGetDeviceGroupSurfacePresentModes2EXT> requires <VK_EXT_full_screen_exclusive>" );
21537 # endif
21538
21539 DeviceGroupPresentModeFlagsKHR modes;
21540 Result result = static_cast<Result>( d.vkGetDeviceGroupSurfacePresentModes2EXT(
21541 m_device, reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ), reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( &modes ) ) );
21542 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupSurfacePresentModes2EXT" );
21543
21544 return detail::createResultValueType( result, std::move( modes ) );
21545 }
21546 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21547 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
21548
21549 //=== VK_EXT_headless_surface ===
21550
21551 // wrapper function for command vkCreateHeadlessSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateHeadlessSurfaceEXT.html
21552 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateHeadlessSurfaceEXT ), bool>::type>
21553 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createHeadlessSurfaceEXT(
21554 HeadlessSurfaceCreateInfoEXT const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d )
21555 const VULKAN_HPP_NOEXCEPT
21556 {
21557 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21558 return static_cast<Result>( d.vkCreateHeadlessSurfaceEXT( static_cast<VkInstance>( m_instance ),
21559 reinterpret_cast<VkHeadlessSurfaceCreateInfoEXT const *>( pCreateInfo ),
21560 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
21561 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
21562 }
21563
21564 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21565 // wrapper function for command vkCreateHeadlessSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateHeadlessSurfaceEXT.html
21566 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateHeadlessSurfaceEXT ), bool>::type>
21567 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createHeadlessSurfaceEXT(
21568 HeadlessSurfaceCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
21569 {
21570 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21571 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21572 VULKAN_HPP_ASSERT( d.vkCreateHeadlessSurfaceEXT && "Function <vkCreateHeadlessSurfaceEXT> requires <VK_EXT_headless_surface>" );
21573 # endif
21574
21575 SurfaceKHR surface;
21576 Result result = static_cast<Result>( d.vkCreateHeadlessSurfaceEXT( m_instance,
21577 reinterpret_cast<VkHeadlessSurfaceCreateInfoEXT const *>( &createInfo ),
21578 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
21579 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
21580 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createHeadlessSurfaceEXT" );
21581
21582 return detail::createResultValueType( result, std::move( surface ) );
21583 }
21584
21585 # ifndef VULKAN_HPP_NO_SMART_HANDLE
21586 // wrapper function for command vkCreateHeadlessSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateHeadlessSurfaceEXT.html
21587 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateHeadlessSurfaceEXT ), bool>::type>
21588 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createHeadlessSurfaceEXTUnique(
21589 HeadlessSurfaceCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
21590 {
21591 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21592 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21593 VULKAN_HPP_ASSERT( d.vkCreateHeadlessSurfaceEXT && "Function <vkCreateHeadlessSurfaceEXT> requires <VK_EXT_headless_surface>" );
21594 # endif
21595
21596 SurfaceKHR surface;
21597 Result result = static_cast<Result>( d.vkCreateHeadlessSurfaceEXT( m_instance,
21598 reinterpret_cast<VkHeadlessSurfaceCreateInfoEXT const *>( &createInfo ),
21599 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
21600 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
21601 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createHeadlessSurfaceEXTUnique" );
21602
21603 return detail::createResultValueType( result,
21604 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
21605 }
21606 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
21607 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21608
21609 //=== VK_KHR_buffer_device_address ===
21610
21611 // wrapper function for command vkGetBufferDeviceAddressKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddressKHR.html
21612 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferDeviceAddressKHR ), bool>::type>
21613 VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddressKHR( BufferDeviceAddressInfo const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21614 {
21615 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21616 return static_cast<DeviceAddress>(
21617 d.vkGetBufferDeviceAddressKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkBufferDeviceAddressInfo const *>( pInfo ) ) );
21618 }
21619
21620 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21621 // wrapper function for command vkGetBufferDeviceAddressKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddressKHR.html
21622 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferDeviceAddressKHR ), bool>::type>
21623 VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddressKHR( BufferDeviceAddressInfo const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21624 {
21625 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21626 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21627 VULKAN_HPP_ASSERT( d.vkGetBufferDeviceAddressKHR &&
21628 "Function <vkGetBufferDeviceAddressKHR> requires <VK_EXT_buffer_device_address> or <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
21629 # endif
21630
21631 VkDeviceAddress result = d.vkGetBufferDeviceAddressKHR( m_device, reinterpret_cast<VkBufferDeviceAddressInfo const *>( &info ) );
21632
21633 return static_cast<DeviceAddress>( result );
21634 }
21635 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21636
21637 // wrapper function for command vkGetBufferOpaqueCaptureAddressKHR, see
21638 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureAddressKHR.html
21639 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferOpaqueCaptureAddressKHR ), bool>::type>
21640 VULKAN_HPP_INLINE uint64_t Device::getBufferOpaqueCaptureAddressKHR( BufferDeviceAddressInfo const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21641 {
21642 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21643 return d.vkGetBufferOpaqueCaptureAddressKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkBufferDeviceAddressInfo const *>( pInfo ) );
21644 }
21645
21646 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21647 // wrapper function for command vkGetBufferOpaqueCaptureAddressKHR, see
21648 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureAddressKHR.html
21649 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferOpaqueCaptureAddressKHR ), bool>::type>
21650 VULKAN_HPP_INLINE uint64_t Device::getBufferOpaqueCaptureAddressKHR( BufferDeviceAddressInfo const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21651 {
21652 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21653 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21654 VULKAN_HPP_ASSERT( d.vkGetBufferOpaqueCaptureAddressKHR &&
21655 "Function <vkGetBufferOpaqueCaptureAddressKHR> requires <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
21656 # endif
21657
21658 uint64_t result = d.vkGetBufferOpaqueCaptureAddressKHR( m_device, reinterpret_cast<VkBufferDeviceAddressInfo const *>( &info ) );
21659
21660 return result;
21661 }
21662 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21663
21664 // wrapper function for command vkGetDeviceMemoryOpaqueCaptureAddressKHR, see
21665 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryOpaqueCaptureAddressKHR.html
21666 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMemoryOpaqueCaptureAddressKHR ), bool>::type>
21667 VULKAN_HPP_INLINE uint64_t Device::getMemoryOpaqueCaptureAddressKHR( DeviceMemoryOpaqueCaptureAddressInfo const * pInfo, Dispatch const & d )
21668 const VULKAN_HPP_NOEXCEPT
21669 {
21670 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21671 return d.vkGetDeviceMemoryOpaqueCaptureAddressKHR( static_cast<VkDevice>( m_device ),
21672 reinterpret_cast<VkDeviceMemoryOpaqueCaptureAddressInfo const *>( pInfo ) );
21673 }
21674
21675 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21676 // wrapper function for command vkGetDeviceMemoryOpaqueCaptureAddressKHR, see
21677 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryOpaqueCaptureAddressKHR.html
21678 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMemoryOpaqueCaptureAddressKHR ), bool>::type>
21679 VULKAN_HPP_INLINE uint64_t Device::getMemoryOpaqueCaptureAddressKHR( DeviceMemoryOpaqueCaptureAddressInfo const & info, Dispatch const & d )
21680 const VULKAN_HPP_NOEXCEPT
21681 {
21682 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21683 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21684 VULKAN_HPP_ASSERT( d.vkGetDeviceMemoryOpaqueCaptureAddressKHR &&
21685 "Function <vkGetDeviceMemoryOpaqueCaptureAddressKHR> requires <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
21686 # endif
21687
21688 uint64_t result = d.vkGetDeviceMemoryOpaqueCaptureAddressKHR( m_device, reinterpret_cast<VkDeviceMemoryOpaqueCaptureAddressInfo const *>( &info ) );
21689
21690 return result;
21691 }
21692 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21693
21694 //=== VK_EXT_line_rasterization ===
21695
21696 // wrapper function for command vkCmdSetLineStippleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStippleEXT.html
21697 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLineStippleEXT ), bool>::type>
21698 VULKAN_HPP_INLINE void CommandBuffer::setLineStippleEXT( uint32_t lineStippleFactor, uint16_t lineStipplePattern, Dispatch const & d )
21699 const VULKAN_HPP_NOEXCEPT
21700 {
21701 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21702 d.vkCmdSetLineStippleEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), lineStippleFactor, lineStipplePattern );
21703 }
21704
21705 //=== VK_EXT_host_query_reset ===
21706
21707 // wrapper function for command vkResetQueryPoolEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetQueryPoolEXT.html
21708 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetQueryPoolEXT ), bool>::type>
21709 VULKAN_HPP_INLINE void Device::resetQueryPoolEXT( QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, Dispatch const & d )
21710 const VULKAN_HPP_NOEXCEPT
21711 {
21712 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21713 d.vkResetQueryPoolEXT( static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( queryPool ), firstQuery, queryCount );
21714 }
21715
21716 //=== VK_EXT_extended_dynamic_state ===
21717
21718 // wrapper function for command vkCmdSetCullModeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCullModeEXT.html
21719 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCullModeEXT ), bool>::type>
21720 VULKAN_HPP_INLINE void CommandBuffer::setCullModeEXT( CullModeFlags cullMode, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21721 {
21722 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21723 d.vkCmdSetCullModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCullModeFlags>( cullMode ) );
21724 }
21725
21726 // wrapper function for command vkCmdSetFrontFaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFrontFaceEXT.html
21727 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetFrontFaceEXT ), bool>::type>
21728 VULKAN_HPP_INLINE void CommandBuffer::setFrontFaceEXT( FrontFace frontFace, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21729 {
21730 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21731 d.vkCmdSetFrontFaceEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkFrontFace>( frontFace ) );
21732 }
21733
21734 // wrapper function for command vkCmdSetPrimitiveTopologyEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveTopologyEXT.html
21735 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPrimitiveTopologyEXT ), bool>::type>
21736 VULKAN_HPP_INLINE void CommandBuffer::setPrimitiveTopologyEXT( PrimitiveTopology primitiveTopology, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21737 {
21738 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21739 d.vkCmdSetPrimitiveTopologyEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPrimitiveTopology>( primitiveTopology ) );
21740 }
21741
21742 // wrapper function for command vkCmdSetViewportWithCountEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWithCountEXT.html
21743 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWithCountEXT ), bool>::type>
21744 VULKAN_HPP_INLINE void CommandBuffer::setViewportWithCountEXT( uint32_t viewportCount, Viewport const * pViewports, Dispatch const & d )
21745 const VULKAN_HPP_NOEXCEPT
21746 {
21747 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21748 d.vkCmdSetViewportWithCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), viewportCount, reinterpret_cast<VkViewport const *>( pViewports ) );
21749 }
21750
21751 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21752 // wrapper function for command vkCmdSetViewportWithCountEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWithCountEXT.html
21753 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWithCountEXT ), bool>::type>
21754 VULKAN_HPP_INLINE void CommandBuffer::setViewportWithCountEXT( ArrayProxy<Viewport const> const & viewports, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21755 {
21756 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21757 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21758 VULKAN_HPP_ASSERT( d.vkCmdSetViewportWithCountEXT &&
21759 "Function <vkCmdSetViewportWithCountEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
21760 # endif
21761
21762 d.vkCmdSetViewportWithCountEXT( m_commandBuffer, viewports.size(), reinterpret_cast<VkViewport const *>( viewports.data() ) );
21763 }
21764 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21765
21766 // wrapper function for command vkCmdSetScissorWithCountEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissorWithCountEXT.html
21767 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetScissorWithCountEXT ), bool>::type>
21768 VULKAN_HPP_INLINE void CommandBuffer::setScissorWithCountEXT( uint32_t scissorCount, Rect2D const * pScissors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21769 {
21770 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21771 d.vkCmdSetScissorWithCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), scissorCount, reinterpret_cast<VkRect2D const *>( pScissors ) );
21772 }
21773
21774 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21775 // wrapper function for command vkCmdSetScissorWithCountEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissorWithCountEXT.html
21776 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetScissorWithCountEXT ), bool>::type>
21777 VULKAN_HPP_INLINE void CommandBuffer::setScissorWithCountEXT( ArrayProxy<Rect2D const> const & scissors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21778 {
21779 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21780 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21781 VULKAN_HPP_ASSERT( d.vkCmdSetScissorWithCountEXT &&
21782 "Function <vkCmdSetScissorWithCountEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
21783 # endif
21784
21785 d.vkCmdSetScissorWithCountEXT( m_commandBuffer, scissors.size(), reinterpret_cast<VkRect2D const *>( scissors.data() ) );
21786 }
21787 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21788
21789 // wrapper function for command vkCmdBindVertexBuffers2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers2EXT.html
21790 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers2EXT ), bool>::type>
21791 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers2EXT( uint32_t firstBinding,
21792 uint32_t bindingCount,
21793 Buffer const * pBuffers,
21794 DeviceSize const * pOffsets,
21795 DeviceSize const * pSizes,
21796 DeviceSize const * pStrides,
21797 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21798 {
21799 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21800 d.vkCmdBindVertexBuffers2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
21801 firstBinding,
21802 bindingCount,
21803 reinterpret_cast<VkBuffer const *>( pBuffers ),
21804 reinterpret_cast<VkDeviceSize const *>( pOffsets ),
21805 reinterpret_cast<VkDeviceSize const *>( pSizes ),
21806 reinterpret_cast<VkDeviceSize const *>( pStrides ) );
21807 }
21808
21809 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21810 // wrapper function for command vkCmdBindVertexBuffers2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers2EXT.html
21811 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers2EXT ), bool>::type>
21812 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers2EXT( uint32_t firstBinding,
21813 ArrayProxy<Buffer const> const & buffers,
21814 ArrayProxy<DeviceSize const> const & offsets,
21815 ArrayProxy<DeviceSize const> const & sizes,
21816 ArrayProxy<DeviceSize const> const & strides,
21817 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
21818 {
21819 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21820 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21821 VULKAN_HPP_ASSERT( d.vkCmdBindVertexBuffers2EXT &&
21822 "Function <vkCmdBindVertexBuffers2EXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
21823 # endif
21824 # ifdef VULKAN_HPP_NO_EXCEPTIONS
21825 VULKAN_HPP_ASSERT( buffers.size() == offsets.size() );
21826 VULKAN_HPP_ASSERT( sizes.empty() || buffers.size() == sizes.size() );
21827 VULKAN_HPP_ASSERT( strides.empty() || buffers.size() == strides.size() );
21828 # else
21829 if ( buffers.size() != offsets.size() )
21830 {
21831 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2EXT: buffers.size() != offsets.size()" );
21832 }
21833 if ( !sizes.empty() && buffers.size() != sizes.size() )
21834 {
21835 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2EXT: buffers.size() != sizes.size()" );
21836 }
21837 if ( !strides.empty() && buffers.size() != strides.size() )
21838 {
21839 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2EXT: buffers.size() != strides.size()" );
21840 }
21841 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
21842
21843 d.vkCmdBindVertexBuffers2EXT( m_commandBuffer,
21844 firstBinding,
21845 buffers.size(),
21846 reinterpret_cast<VkBuffer const *>( buffers.data() ),
21847 reinterpret_cast<VkDeviceSize const *>( offsets.data() ),
21848 reinterpret_cast<VkDeviceSize const *>( sizes.data() ),
21849 reinterpret_cast<VkDeviceSize const *>( strides.data() ) );
21850 }
21851 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21852
21853 // wrapper function for command vkCmdSetDepthTestEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthTestEnableEXT.html
21854 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthTestEnableEXT ), bool>::type>
21855 VULKAN_HPP_INLINE void CommandBuffer::setDepthTestEnableEXT( Bool32 depthTestEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21856 {
21857 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21858 d.vkCmdSetDepthTestEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthTestEnable ) );
21859 }
21860
21861 // wrapper function for command vkCmdSetDepthWriteEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthWriteEnableEXT.html
21862 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthWriteEnableEXT ), bool>::type>
21863 VULKAN_HPP_INLINE void CommandBuffer::setDepthWriteEnableEXT( Bool32 depthWriteEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21864 {
21865 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21866 d.vkCmdSetDepthWriteEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthWriteEnable ) );
21867 }
21868
21869 // wrapper function for command vkCmdSetDepthCompareOpEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthCompareOpEXT.html
21870 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthCompareOpEXT ), bool>::type>
21871 VULKAN_HPP_INLINE void CommandBuffer::setDepthCompareOpEXT( CompareOp depthCompareOp, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21872 {
21873 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21874 d.vkCmdSetDepthCompareOpEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCompareOp>( depthCompareOp ) );
21875 }
21876
21877 // wrapper function for command vkCmdSetDepthBoundsTestEnableEXT, see
21878 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBoundsTestEnableEXT.html
21879 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBoundsTestEnableEXT ), bool>::type>
21880 VULKAN_HPP_INLINE void CommandBuffer::setDepthBoundsTestEnableEXT( Bool32 depthBoundsTestEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21881 {
21882 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21883 d.vkCmdSetDepthBoundsTestEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBoundsTestEnable ) );
21884 }
21885
21886 // wrapper function for command vkCmdSetStencilTestEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilTestEnableEXT.html
21887 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilTestEnableEXT ), bool>::type>
21888 VULKAN_HPP_INLINE void CommandBuffer::setStencilTestEnableEXT( Bool32 stencilTestEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21889 {
21890 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21891 d.vkCmdSetStencilTestEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( stencilTestEnable ) );
21892 }
21893
21894 // wrapper function for command vkCmdSetStencilOpEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilOpEXT.html
21895 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilOpEXT ), bool>::type>
21896 VULKAN_HPP_INLINE void CommandBuffer::setStencilOpEXT(
21897 StencilFaceFlags faceMask, StencilOp failOp, StencilOp passOp, StencilOp depthFailOp, CompareOp compareOp, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21898 {
21899 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21900 d.vkCmdSetStencilOpEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
21901 static_cast<VkStencilFaceFlags>( faceMask ),
21902 static_cast<VkStencilOp>( failOp ),
21903 static_cast<VkStencilOp>( passOp ),
21904 static_cast<VkStencilOp>( depthFailOp ),
21905 static_cast<VkCompareOp>( compareOp ) );
21906 }
21907
21908 //=== VK_KHR_deferred_host_operations ===
21909
21910 // wrapper function for command vkCreateDeferredOperationKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDeferredOperationKHR.html
21911 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDeferredOperationKHR ), bool>::type>
21912 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDeferredOperationKHR(
21913 AllocationCallbacks const * pAllocator, DeferredOperationKHR * pDeferredOperation, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21914 {
21915 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21916 return static_cast<Result>( d.vkCreateDeferredOperationKHR( static_cast<VkDevice>( m_device ),
21917 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
21918 reinterpret_cast<VkDeferredOperationKHR *>( pDeferredOperation ) ) );
21919 }
21920
21921 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21922 // wrapper function for command vkCreateDeferredOperationKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDeferredOperationKHR.html
21923 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDeferredOperationKHR ), bool>::type>
21924 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeferredOperationKHR>::type Device::createDeferredOperationKHR(
21925 Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
21926 {
21927 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21928 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21929 VULKAN_HPP_ASSERT( d.vkCreateDeferredOperationKHR && "Function <vkCreateDeferredOperationKHR> requires <VK_KHR_deferred_host_operations>" );
21930 # endif
21931
21932 DeferredOperationKHR deferredOperation;
21933 Result result = static_cast<Result>( d.vkCreateDeferredOperationKHR(
21934 m_device, reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ), reinterpret_cast<VkDeferredOperationKHR *>( &deferredOperation ) ) );
21935 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDeferredOperationKHR" );
21936
21937 return detail::createResultValueType( result, std::move( deferredOperation ) );
21938 }
21939
21940 # ifndef VULKAN_HPP_NO_SMART_HANDLE
21941 // wrapper function for command vkCreateDeferredOperationKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDeferredOperationKHR.html
21942 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDeferredOperationKHR ), bool>::type>
21943 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DeferredOperationKHR, Dispatch>>::type Device::createDeferredOperationKHRUnique(
21944 Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
21945 {
21946 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21947 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21948 VULKAN_HPP_ASSERT( d.vkCreateDeferredOperationKHR && "Function <vkCreateDeferredOperationKHR> requires <VK_KHR_deferred_host_operations>" );
21949 # endif
21950
21951 DeferredOperationKHR deferredOperation;
21952 Result result = static_cast<Result>( d.vkCreateDeferredOperationKHR(
21953 m_device, reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ), reinterpret_cast<VkDeferredOperationKHR *>( &deferredOperation ) ) );
21954 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDeferredOperationKHRUnique" );
21955
21956 return detail::createResultValueType(
21957 result, UniqueHandle<DeferredOperationKHR, Dispatch>( deferredOperation, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
21958 }
21959 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
21960 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21961
21962 // wrapper function for command vkDestroyDeferredOperationKHR, see
21963 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDeferredOperationKHR.html
21964 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDeferredOperationKHR ), bool>::type>
21965 VULKAN_HPP_INLINE void Device::destroyDeferredOperationKHR( DeferredOperationKHR operation, AllocationCallbacks const * pAllocator, Dispatch const & d )
21966 const VULKAN_HPP_NOEXCEPT
21967 {
21968 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21969 d.vkDestroyDeferredOperationKHR(
21970 static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( operation ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
21971 }
21972
21973 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21974 // wrapper function for command vkDestroyDeferredOperationKHR, see
21975 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDeferredOperationKHR.html
21976 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDeferredOperationKHR ), bool>::type>
21977 VULKAN_HPP_INLINE void Device::destroyDeferredOperationKHR(
21978 DeferredOperationKHR operation, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21979 {
21980 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21981 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21982 VULKAN_HPP_ASSERT( d.vkDestroyDeferredOperationKHR && "Function <vkDestroyDeferredOperationKHR> requires <VK_KHR_deferred_host_operations>" );
21983 # endif
21984
21985 d.vkDestroyDeferredOperationKHR(
21986 m_device, static_cast<VkDeferredOperationKHR>( operation ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
21987 }
21988 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21989
21990 // wrapper function for command vkDestroyDeferredOperationKHR, see
21991 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDeferredOperationKHR.html
21992 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDeferredOperationKHR ), bool>::type>
21993 VULKAN_HPP_INLINE void Device::destroy( DeferredOperationKHR operation, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21994 {
21995 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21996 d.vkDestroyDeferredOperationKHR(
21997 static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( operation ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
21998 }
21999
22000 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22001 // wrapper function for command vkDestroyDeferredOperationKHR, see
22002 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDeferredOperationKHR.html
22003 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDeferredOperationKHR ), bool>::type>
22004 VULKAN_HPP_INLINE void Device::destroy( DeferredOperationKHR operation, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
22005 const VULKAN_HPP_NOEXCEPT
22006 {
22007 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22008 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22009 VULKAN_HPP_ASSERT( d.vkDestroyDeferredOperationKHR && "Function <vkDestroyDeferredOperationKHR> requires <VK_KHR_deferred_host_operations>" );
22010 # endif
22011
22012 d.vkDestroyDeferredOperationKHR(
22013 m_device, static_cast<VkDeferredOperationKHR>( operation ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
22014 }
22015 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22016
22017 // wrapper function for command vkGetDeferredOperationMaxConcurrencyKHR, see
22018 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeferredOperationMaxConcurrencyKHR.html
22019 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeferredOperationMaxConcurrencyKHR ), bool>::type>
22020 VULKAN_HPP_INLINE uint32_t Device::getDeferredOperationMaxConcurrencyKHR( DeferredOperationKHR operation, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22021 {
22022 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22023 return d.vkGetDeferredOperationMaxConcurrencyKHR( static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( operation ) );
22024 }
22025
22026 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
22027 // wrapper function for command vkGetDeferredOperationResultKHR, see
22028 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeferredOperationResultKHR.html
22029 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeferredOperationResultKHR ), bool>::type>
22030 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getDeferredOperationResultKHR( DeferredOperationKHR operation, Dispatch const & d )
22031 const VULKAN_HPP_NOEXCEPT
22032 {
22033 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22034 return static_cast<Result>( d.vkGetDeferredOperationResultKHR( static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( operation ) ) );
22035 }
22036 #else
22037 // wrapper function for command vkGetDeferredOperationResultKHR, see
22038 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeferredOperationResultKHR.html
22039 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeferredOperationResultKHR ), bool>::type>
22040 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getDeferredOperationResultKHR( DeferredOperationKHR operation, Dispatch const & d ) const
22041 {
22042 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22043 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22044 VULKAN_HPP_ASSERT( d.vkGetDeferredOperationResultKHR && "Function <vkGetDeferredOperationResultKHR> requires <VK_KHR_deferred_host_operations>" );
22045 # endif
22046
22047 Result result = static_cast<Result>( d.vkGetDeferredOperationResultKHR( m_device, static_cast<VkDeferredOperationKHR>( operation ) ) );
22048 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDeferredOperationResultKHR", { Result::eSuccess, Result::eNotReady } );
22049
22050 return static_cast<Result>( result );
22051 }
22052 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
22053
22054 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
22055 // wrapper function for command vkDeferredOperationJoinKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeferredOperationJoinKHR.html
22056 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDeferredOperationJoinKHR ), bool>::type>
22057 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::deferredOperationJoinKHR( DeferredOperationKHR operation, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22058 {
22059 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22060 return static_cast<Result>( d.vkDeferredOperationJoinKHR( static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( operation ) ) );
22061 }
22062 #else
22063 // wrapper function for command vkDeferredOperationJoinKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeferredOperationJoinKHR.html
22064 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDeferredOperationJoinKHR ), bool>::type>
22065 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::deferredOperationJoinKHR( DeferredOperationKHR operation, Dispatch const & d ) const
22066 {
22067 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22068 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22069 VULKAN_HPP_ASSERT( d.vkDeferredOperationJoinKHR && "Function <vkDeferredOperationJoinKHR> requires <VK_KHR_deferred_host_operations>" );
22070 # endif
22071
22072 Result result = static_cast<Result>( d.vkDeferredOperationJoinKHR( m_device, static_cast<VkDeferredOperationKHR>( operation ) ) );
22073 detail::resultCheck(
22074 result, VULKAN_HPP_NAMESPACE_STRING "::Device::deferredOperationJoinKHR", { Result::eSuccess, Result::eThreadDoneKHR, Result::eThreadIdleKHR } );
22075
22076 return static_cast<Result>( result );
22077 }
22078 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
22079
22080 //=== VK_KHR_pipeline_executable_properties ===
22081
22082 // wrapper function for command vkGetPipelineExecutablePropertiesKHR, see
22083 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutablePropertiesKHR.html
22084 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutablePropertiesKHR ), bool>::type>
22085 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelineExecutablePropertiesKHR(
22086 PipelineInfoKHR const * pPipelineInfo, uint32_t * pExecutableCount, PipelineExecutablePropertiesKHR * pProperties, Dispatch const & d )
22087 const VULKAN_HPP_NOEXCEPT
22088 {
22089 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22090 return static_cast<Result>( d.vkGetPipelineExecutablePropertiesKHR( static_cast<VkDevice>( m_device ),
22091 reinterpret_cast<VkPipelineInfoKHR const *>( pPipelineInfo ),
22092 pExecutableCount,
22093 reinterpret_cast<VkPipelineExecutablePropertiesKHR *>( pProperties ) ) );
22094 }
22095
22096 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22097 // wrapper function for command vkGetPipelineExecutablePropertiesKHR, see
22098 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutablePropertiesKHR.html
22099 template <
22100 typename PipelineExecutablePropertiesKHRAllocator,
22101 typename Dispatch,
22102 typename std::enable_if<std::is_same<typename PipelineExecutablePropertiesKHRAllocator::value_type, PipelineExecutablePropertiesKHR>::value, int>::type,
22103 typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutablePropertiesKHR ), bool>::type>
22104 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PipelineExecutablePropertiesKHR, PipelineExecutablePropertiesKHRAllocator>>::type
22105 Device::getPipelineExecutablePropertiesKHR( PipelineInfoKHR const & pipelineInfo, Dispatch const & d ) const
22106 {
22107 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22108 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22109 VULKAN_HPP_ASSERT( d.vkGetPipelineExecutablePropertiesKHR &&
22110 "Function <vkGetPipelineExecutablePropertiesKHR> requires <VK_KHR_pipeline_executable_properties>" );
22111 # endif
22112
22113 std::vector<PipelineExecutablePropertiesKHR, PipelineExecutablePropertiesKHRAllocator> properties;
22114 uint32_t executableCount;
22115 Result result;
22116 do
22117 {
22118 result = static_cast<Result>(
22119 d.vkGetPipelineExecutablePropertiesKHR( m_device, reinterpret_cast<VkPipelineInfoKHR const *>( &pipelineInfo ), &executableCount, nullptr ) );
22120 if ( ( result == Result::eSuccess ) && executableCount )
22121 {
22122 properties.resize( executableCount );
22123 result = static_cast<Result>( d.vkGetPipelineExecutablePropertiesKHR( m_device,
22124 reinterpret_cast<VkPipelineInfoKHR const *>( &pipelineInfo ),
22125 &executableCount,
22126 reinterpret_cast<VkPipelineExecutablePropertiesKHR *>( properties.data() ) ) );
22127 }
22128 } while ( result == Result::eIncomplete );
22129 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutablePropertiesKHR" );
22130 VULKAN_HPP_ASSERT( executableCount <= properties.size() );
22131 if ( executableCount < properties.size() )
22132 {
22133 properties.resize( executableCount );
22134 }
22135 return detail::createResultValueType( result, std::move( properties ) );
22136 }
22137
22138 // wrapper function for command vkGetPipelineExecutablePropertiesKHR, see
22139 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutablePropertiesKHR.html
22140 template <
22141 typename PipelineExecutablePropertiesKHRAllocator,
22142 typename Dispatch,
22143 typename std::enable_if<std::is_same<typename PipelineExecutablePropertiesKHRAllocator::value_type, PipelineExecutablePropertiesKHR>::value, int>::type,
22144 typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutablePropertiesKHR ), bool>::type>
22145 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PipelineExecutablePropertiesKHR, PipelineExecutablePropertiesKHRAllocator>>::type
22146 Device::getPipelineExecutablePropertiesKHR(
22147 PipelineInfoKHR const & pipelineInfo, PipelineExecutablePropertiesKHRAllocator const & pipelineExecutablePropertiesKHRAllocator, Dispatch const & d )
22148 const
22149 {
22150 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22151 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22152 VULKAN_HPP_ASSERT( d.vkGetPipelineExecutablePropertiesKHR &&
22153 "Function <vkGetPipelineExecutablePropertiesKHR> requires <VK_KHR_pipeline_executable_properties>" );
22154 # endif
22155
22156 std::vector<PipelineExecutablePropertiesKHR, PipelineExecutablePropertiesKHRAllocator> properties( pipelineExecutablePropertiesKHRAllocator );
22157 uint32_t executableCount;
22158 Result result;
22159 do
22160 {
22161 result = static_cast<Result>(
22162 d.vkGetPipelineExecutablePropertiesKHR( m_device, reinterpret_cast<VkPipelineInfoKHR const *>( &pipelineInfo ), &executableCount, nullptr ) );
22163 if ( ( result == Result::eSuccess ) && executableCount )
22164 {
22165 properties.resize( executableCount );
22166 result = static_cast<Result>( d.vkGetPipelineExecutablePropertiesKHR( m_device,
22167 reinterpret_cast<VkPipelineInfoKHR const *>( &pipelineInfo ),
22168 &executableCount,
22169 reinterpret_cast<VkPipelineExecutablePropertiesKHR *>( properties.data() ) ) );
22170 }
22171 } while ( result == Result::eIncomplete );
22172 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutablePropertiesKHR" );
22173 VULKAN_HPP_ASSERT( executableCount <= properties.size() );
22174 if ( executableCount < properties.size() )
22175 {
22176 properties.resize( executableCount );
22177 }
22178 return detail::createResultValueType( result, std::move( properties ) );
22179 }
22180 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22181
22182 // wrapper function for command vkGetPipelineExecutableStatisticsKHR, see
22183 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableStatisticsKHR.html
22184 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutableStatisticsKHR ), bool>::type>
22185 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelineExecutableStatisticsKHR(
22186 PipelineExecutableInfoKHR const * pExecutableInfo, uint32_t * pStatisticCount, PipelineExecutableStatisticKHR * pStatistics, Dispatch const & d )
22187 const VULKAN_HPP_NOEXCEPT
22188 {
22189 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22190 return static_cast<Result>( d.vkGetPipelineExecutableStatisticsKHR( static_cast<VkDevice>( m_device ),
22191 reinterpret_cast<VkPipelineExecutableInfoKHR const *>( pExecutableInfo ),
22192 pStatisticCount,
22193 reinterpret_cast<VkPipelineExecutableStatisticKHR *>( pStatistics ) ) );
22194 }
22195
22196 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22197 // wrapper function for command vkGetPipelineExecutableStatisticsKHR, see
22198 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableStatisticsKHR.html
22199 template <
22200 typename PipelineExecutableStatisticKHRAllocator,
22201 typename Dispatch,
22202 typename std::enable_if<std::is_same<typename PipelineExecutableStatisticKHRAllocator::value_type, PipelineExecutableStatisticKHR>::value, int>::type,
22203 typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutableStatisticsKHR ), bool>::type>
22204 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PipelineExecutableStatisticKHR, PipelineExecutableStatisticKHRAllocator>>::type
22205 Device::getPipelineExecutableStatisticsKHR( PipelineExecutableInfoKHR const & executableInfo, Dispatch const & d ) const
22206 {
22207 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22208 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22209 VULKAN_HPP_ASSERT( d.vkGetPipelineExecutableStatisticsKHR &&
22210 "Function <vkGetPipelineExecutableStatisticsKHR> requires <VK_KHR_pipeline_executable_properties>" );
22211 # endif
22212
22213 std::vector<PipelineExecutableStatisticKHR, PipelineExecutableStatisticKHRAllocator> statistics;
22214 uint32_t statisticCount;
22215 Result result;
22216 do
22217 {
22218 result = static_cast<Result>( d.vkGetPipelineExecutableStatisticsKHR(
22219 m_device, reinterpret_cast<VkPipelineExecutableInfoKHR const *>( &executableInfo ), &statisticCount, nullptr ) );
22220 if ( ( result == Result::eSuccess ) && statisticCount )
22221 {
22222 statistics.resize( statisticCount );
22223 result = static_cast<Result>( d.vkGetPipelineExecutableStatisticsKHR( m_device,
22224 reinterpret_cast<VkPipelineExecutableInfoKHR const *>( &executableInfo ),
22225 &statisticCount,
22226 reinterpret_cast<VkPipelineExecutableStatisticKHR *>( statistics.data() ) ) );
22227 }
22228 } while ( result == Result::eIncomplete );
22229 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutableStatisticsKHR" );
22230 VULKAN_HPP_ASSERT( statisticCount <= statistics.size() );
22231 if ( statisticCount < statistics.size() )
22232 {
22233 statistics.resize( statisticCount );
22234 }
22235 return detail::createResultValueType( result, std::move( statistics ) );
22236 }
22237
22238 // wrapper function for command vkGetPipelineExecutableStatisticsKHR, see
22239 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableStatisticsKHR.html
22240 template <
22241 typename PipelineExecutableStatisticKHRAllocator,
22242 typename Dispatch,
22243 typename std::enable_if<std::is_same<typename PipelineExecutableStatisticKHRAllocator::value_type, PipelineExecutableStatisticKHR>::value, int>::type,
22244 typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutableStatisticsKHR ), bool>::type>
22245 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PipelineExecutableStatisticKHR, PipelineExecutableStatisticKHRAllocator>>::type
22246 Device::getPipelineExecutableStatisticsKHR( PipelineExecutableInfoKHR const & executableInfo,
22247 PipelineExecutableStatisticKHRAllocator const & pipelineExecutableStatisticKHRAllocator,
22248 Dispatch const & d ) const
22249 {
22250 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22251 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22252 VULKAN_HPP_ASSERT( d.vkGetPipelineExecutableStatisticsKHR &&
22253 "Function <vkGetPipelineExecutableStatisticsKHR> requires <VK_KHR_pipeline_executable_properties>" );
22254 # endif
22255
22256 std::vector<PipelineExecutableStatisticKHR, PipelineExecutableStatisticKHRAllocator> statistics( pipelineExecutableStatisticKHRAllocator );
22257 uint32_t statisticCount;
22258 Result result;
22259 do
22260 {
22261 result = static_cast<Result>( d.vkGetPipelineExecutableStatisticsKHR(
22262 m_device, reinterpret_cast<VkPipelineExecutableInfoKHR const *>( &executableInfo ), &statisticCount, nullptr ) );
22263 if ( ( result == Result::eSuccess ) && statisticCount )
22264 {
22265 statistics.resize( statisticCount );
22266 result = static_cast<Result>( d.vkGetPipelineExecutableStatisticsKHR( m_device,
22267 reinterpret_cast<VkPipelineExecutableInfoKHR const *>( &executableInfo ),
22268 &statisticCount,
22269 reinterpret_cast<VkPipelineExecutableStatisticKHR *>( statistics.data() ) ) );
22270 }
22271 } while ( result == Result::eIncomplete );
22272 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutableStatisticsKHR" );
22273 VULKAN_HPP_ASSERT( statisticCount <= statistics.size() );
22274 if ( statisticCount < statistics.size() )
22275 {
22276 statistics.resize( statisticCount );
22277 }
22278 return detail::createResultValueType( result, std::move( statistics ) );
22279 }
22280 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22281
22282 // wrapper function for command vkGetPipelineExecutableInternalRepresentationsKHR, see
22283 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html
22284 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutableInternalRepresentationsKHR ), bool>::type>
22285 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelineExecutableInternalRepresentationsKHR(
22286 PipelineExecutableInfoKHR const * pExecutableInfo,
22287 uint32_t * pInternalRepresentationCount,
22288 PipelineExecutableInternalRepresentationKHR * pInternalRepresentations,
22289 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22290 {
22291 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22292 return static_cast<Result>(
22293 d.vkGetPipelineExecutableInternalRepresentationsKHR( static_cast<VkDevice>( m_device ),
22294 reinterpret_cast<VkPipelineExecutableInfoKHR const *>( pExecutableInfo ),
22295 pInternalRepresentationCount,
22296 reinterpret_cast<VkPipelineExecutableInternalRepresentationKHR *>( pInternalRepresentations ) ) );
22297 }
22298
22299 //=== VK_EXT_host_image_copy ===
22300
22301 // wrapper function for command vkCopyMemoryToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImageEXT.html
22302 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToImageEXT ), bool>::type>
22303 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToImageEXT( CopyMemoryToImageInfo const * pCopyMemoryToImageInfo, Dispatch const & d )
22304 const VULKAN_HPP_NOEXCEPT
22305 {
22306 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22307 return static_cast<Result>(
22308 d.vkCopyMemoryToImageEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkCopyMemoryToImageInfo const *>( pCopyMemoryToImageInfo ) ) );
22309 }
22310
22311 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22312 // wrapper function for command vkCopyMemoryToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImageEXT.html
22313 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToImageEXT ), bool>::type>
22314 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::copyMemoryToImageEXT(
22315 CopyMemoryToImageInfo const & copyMemoryToImageInfo, Dispatch const & d ) const
22316 {
22317 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22318 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22319 VULKAN_HPP_ASSERT( d.vkCopyMemoryToImageEXT && "Function <vkCopyMemoryToImageEXT> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
22320 # endif
22321
22322 Result result = static_cast<Result>( d.vkCopyMemoryToImageEXT( m_device, reinterpret_cast<VkCopyMemoryToImageInfo const *>( &copyMemoryToImageInfo ) ) );
22323 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyMemoryToImageEXT" );
22324
22325 return detail::createResultValueType( result );
22326 }
22327 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22328
22329 // wrapper function for command vkCopyImageToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToMemoryEXT.html
22330 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToMemoryEXT ), bool>::type>
22331 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyImageToMemoryEXT( CopyImageToMemoryInfo const * pCopyImageToMemoryInfo, Dispatch const & d )
22332 const VULKAN_HPP_NOEXCEPT
22333 {
22334 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22335 return static_cast<Result>(
22336 d.vkCopyImageToMemoryEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkCopyImageToMemoryInfo const *>( pCopyImageToMemoryInfo ) ) );
22337 }
22338
22339 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22340 // wrapper function for command vkCopyImageToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToMemoryEXT.html
22341 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToMemoryEXT ), bool>::type>
22342 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::copyImageToMemoryEXT(
22343 CopyImageToMemoryInfo const & copyImageToMemoryInfo, Dispatch const & d ) const
22344 {
22345 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22346 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22347 VULKAN_HPP_ASSERT( d.vkCopyImageToMemoryEXT && "Function <vkCopyImageToMemoryEXT> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
22348 # endif
22349
22350 Result result = static_cast<Result>( d.vkCopyImageToMemoryEXT( m_device, reinterpret_cast<VkCopyImageToMemoryInfo const *>( &copyImageToMemoryInfo ) ) );
22351 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyImageToMemoryEXT" );
22352
22353 return detail::createResultValueType( result );
22354 }
22355 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22356
22357 // wrapper function for command vkCopyImageToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToImageEXT.html
22358 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToImageEXT ), bool>::type>
22359 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyImageToImageEXT( CopyImageToImageInfo const * pCopyImageToImageInfo, Dispatch const & d )
22360 const VULKAN_HPP_NOEXCEPT
22361 {
22362 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22363 return static_cast<Result>(
22364 d.vkCopyImageToImageEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkCopyImageToImageInfo const *>( pCopyImageToImageInfo ) ) );
22365 }
22366
22367 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22368 // wrapper function for command vkCopyImageToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToImageEXT.html
22369 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToImageEXT ), bool>::type>
22370 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::copyImageToImageEXT(
22371 CopyImageToImageInfo const & copyImageToImageInfo, Dispatch const & d ) const
22372 {
22373 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22374 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22375 VULKAN_HPP_ASSERT( d.vkCopyImageToImageEXT && "Function <vkCopyImageToImageEXT> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
22376 # endif
22377
22378 Result result = static_cast<Result>( d.vkCopyImageToImageEXT( m_device, reinterpret_cast<VkCopyImageToImageInfo const *>( &copyImageToImageInfo ) ) );
22379 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyImageToImageEXT" );
22380
22381 return detail::createResultValueType( result );
22382 }
22383 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22384
22385 // wrapper function for command vkTransitionImageLayoutEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTransitionImageLayoutEXT.html
22386 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkTransitionImageLayoutEXT ), bool>::type>
22387 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::transitionImageLayoutEXT(
22388 uint32_t transitionCount, HostImageLayoutTransitionInfo const * pTransitions, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22389 {
22390 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22391 return static_cast<Result>( d.vkTransitionImageLayoutEXT(
22392 static_cast<VkDevice>( m_device ), transitionCount, reinterpret_cast<VkHostImageLayoutTransitionInfo const *>( pTransitions ) ) );
22393 }
22394
22395 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22396 // wrapper function for command vkTransitionImageLayoutEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTransitionImageLayoutEXT.html
22397 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkTransitionImageLayoutEXT ), bool>::type>
22398 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::transitionImageLayoutEXT(
22399 ArrayProxy<HostImageLayoutTransitionInfo const> const & transitions, Dispatch const & d ) const
22400 {
22401 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22402 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22403 VULKAN_HPP_ASSERT( d.vkTransitionImageLayoutEXT && "Function <vkTransitionImageLayoutEXT> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
22404 # endif
22405
22406 Result result = static_cast<Result>(
22407 d.vkTransitionImageLayoutEXT( m_device, transitions.size(), reinterpret_cast<VkHostImageLayoutTransitionInfo const *>( transitions.data() ) ) );
22408 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::transitionImageLayoutEXT" );
22409
22410 return detail::createResultValueType( result );
22411 }
22412 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22413
22414 // wrapper function for command vkGetImageSubresourceLayout2EXT, see
22415 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2EXT.html
22416 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2EXT ), bool>::type>
22417 VULKAN_HPP_INLINE void Device::getImageSubresourceLayout2EXT(
22418 Image image, ImageSubresource2 const * pSubresource, SubresourceLayout2 * pLayout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22419 {
22420 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22421 d.vkGetImageSubresourceLayout2EXT( static_cast<VkDevice>( m_device ),
22422 static_cast<VkImage>( image ),
22423 reinterpret_cast<VkImageSubresource2 const *>( pSubresource ),
22424 reinterpret_cast<VkSubresourceLayout2 *>( pLayout ) );
22425 }
22426
22427 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22428 // wrapper function for command vkGetImageSubresourceLayout2EXT, see
22429 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2EXT.html
22430 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2EXT ), bool>::type>
22431 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Device::getImageSubresourceLayout2EXT(
22432 Image image, ImageSubresource2 const & subresource, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22433 {
22434 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22435 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22436 VULKAN_HPP_ASSERT(
22437 d.vkGetImageSubresourceLayout2EXT &&
22438 "Function <vkGetImageSubresourceLayout2EXT> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
22439 # endif
22440
22441 SubresourceLayout2 layout;
22442 d.vkGetImageSubresourceLayout2EXT( m_device,
22443 static_cast<VkImage>( image ),
22444 reinterpret_cast<VkImageSubresource2 const *>( &subresource ),
22445 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
22446
22447 return layout;
22448 }
22449
22450 // wrapper function for command vkGetImageSubresourceLayout2EXT, see
22451 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2EXT.html
22452 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2EXT ), bool>::type>
22453 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageSubresourceLayout2EXT(
22454 Image image, ImageSubresource2 const & subresource, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22455 {
22456 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22457 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22458 VULKAN_HPP_ASSERT(
22459 d.vkGetImageSubresourceLayout2EXT &&
22460 "Function <vkGetImageSubresourceLayout2EXT> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
22461 # endif
22462
22463 StructureChain<X, Y, Z...> structureChain;
22464 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
22465 d.vkGetImageSubresourceLayout2EXT( m_device,
22466 static_cast<VkImage>( image ),
22467 reinterpret_cast<VkImageSubresource2 const *>( &subresource ),
22468 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
22469
22470 return structureChain;
22471 }
22472 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22473
22474 //=== VK_KHR_map_memory2 ===
22475
22476 // wrapper function for command vkMapMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory2KHR.html
22477 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMapMemory2KHR ), bool>::type>
22478 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::mapMemory2KHR( MemoryMapInfo const * pMemoryMapInfo, void ** ppData, Dispatch const & d )
22479 const VULKAN_HPP_NOEXCEPT
22480 {
22481 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22482 return static_cast<Result>( d.vkMapMemory2KHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryMapInfo const *>( pMemoryMapInfo ), ppData ) );
22483 }
22484
22485 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22486 // wrapper function for command vkMapMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory2KHR.html
22487 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMapMemory2KHR ), bool>::type>
22488 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<void *>::type Device::mapMemory2KHR( MemoryMapInfo const & memoryMapInfo, Dispatch const & d )
22489 const
22490 {
22491 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22492 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22493 VULKAN_HPP_ASSERT( d.vkMapMemory2KHR && "Function <vkMapMemory2KHR> requires <VK_KHR_map_memory2> or <VK_VERSION_1_4>" );
22494 # endif
22495
22496 void * pData;
22497 Result result = static_cast<Result>( d.vkMapMemory2KHR( m_device, reinterpret_cast<VkMemoryMapInfo const *>( &memoryMapInfo ), &pData ) );
22498 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mapMemory2KHR" );
22499
22500 return detail::createResultValueType( result, std::move( pData ) );
22501 }
22502 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22503
22504 // wrapper function for command vkUnmapMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory2KHR.html
22505 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUnmapMemory2KHR ), bool>::type>
22506 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::unmapMemory2KHR( MemoryUnmapInfo const * pMemoryUnmapInfo, Dispatch const & d )
22507 const VULKAN_HPP_NOEXCEPT
22508 {
22509 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22510 return static_cast<Result>( d.vkUnmapMemory2KHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryUnmapInfo const *>( pMemoryUnmapInfo ) ) );
22511 }
22512
22513 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22514 // wrapper function for command vkUnmapMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory2KHR.html
22515 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUnmapMemory2KHR ), bool>::type>
22516 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::unmapMemory2KHR(
22517 MemoryUnmapInfo const & memoryUnmapInfo, Dispatch const & d ) const
22518 {
22519 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22520 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22521 VULKAN_HPP_ASSERT( d.vkUnmapMemory2KHR && "Function <vkUnmapMemory2KHR> requires <VK_KHR_map_memory2> or <VK_VERSION_1_4>" );
22522 # endif
22523
22524 Result result = static_cast<Result>( d.vkUnmapMemory2KHR( m_device, reinterpret_cast<VkMemoryUnmapInfo const *>( &memoryUnmapInfo ) ) );
22525 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::unmapMemory2KHR" );
22526
22527 return detail::createResultValueType( result );
22528 }
22529 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22530
22531 //=== VK_EXT_swapchain_maintenance1 ===
22532
22533 // wrapper function for command vkReleaseSwapchainImagesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseSwapchainImagesEXT.html
22534 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseSwapchainImagesEXT ), bool>::type>
22535 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::releaseSwapchainImagesEXT( ReleaseSwapchainImagesInfoKHR const * pReleaseInfo, Dispatch const & d )
22536 const VULKAN_HPP_NOEXCEPT
22537 {
22538 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22539 return static_cast<Result>(
22540 d.vkReleaseSwapchainImagesEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkReleaseSwapchainImagesInfoKHR const *>( pReleaseInfo ) ) );
22541 }
22542
22543 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22544 // wrapper function for command vkReleaseSwapchainImagesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseSwapchainImagesEXT.html
22545 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseSwapchainImagesEXT ), bool>::type>
22546 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::releaseSwapchainImagesEXT(
22547 ReleaseSwapchainImagesInfoKHR const & releaseInfo, Dispatch const & d ) const
22548 {
22549 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22550 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22551 VULKAN_HPP_ASSERT( d.vkReleaseSwapchainImagesEXT &&
22552 "Function <vkReleaseSwapchainImagesEXT> requires <VK_EXT_swapchain_maintenance1> or <VK_KHR_swapchain_maintenance1>" );
22553 # endif
22554
22555 Result result = static_cast<Result>( d.vkReleaseSwapchainImagesEXT( m_device, reinterpret_cast<VkReleaseSwapchainImagesInfoKHR const *>( &releaseInfo ) ) );
22556 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releaseSwapchainImagesEXT" );
22557
22558 return detail::createResultValueType( result );
22559 }
22560 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22561
22562 //=== VK_NV_device_generated_commands ===
22563
22564 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsNV, see
22565 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsNV.html
22566 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetGeneratedCommandsMemoryRequirementsNV ), bool>::type>
22567 VULKAN_HPP_INLINE void Device::getGeneratedCommandsMemoryRequirementsNV(
22568 GeneratedCommandsMemoryRequirementsInfoNV const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22569 {
22570 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22571 d.vkGetGeneratedCommandsMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
22572 reinterpret_cast<VkGeneratedCommandsMemoryRequirementsInfoNV const *>( pInfo ),
22573 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
22574 }
22575
22576 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22577 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsNV, see
22578 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsNV.html
22579 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetGeneratedCommandsMemoryRequirementsNV ), bool>::type>
22580 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getGeneratedCommandsMemoryRequirementsNV(
22581 GeneratedCommandsMemoryRequirementsInfoNV const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22582 {
22583 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22584 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22585 VULKAN_HPP_ASSERT( d.vkGetGeneratedCommandsMemoryRequirementsNV &&
22586 "Function <vkGetGeneratedCommandsMemoryRequirementsNV> requires <VK_NV_device_generated_commands>" );
22587 # endif
22588
22589 MemoryRequirements2 memoryRequirements;
22590 d.vkGetGeneratedCommandsMemoryRequirementsNV( m_device,
22591 reinterpret_cast<VkGeneratedCommandsMemoryRequirementsInfoNV const *>( &info ),
22592 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
22593
22594 return memoryRequirements;
22595 }
22596
22597 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsNV, see
22598 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsNV.html
22599 template <typename X,
22600 typename Y,
22601 typename... Z,
22602 typename Dispatch,
22603 typename std::enable_if<IS_DISPATCHED( vkGetGeneratedCommandsMemoryRequirementsNV ), bool>::type>
22604 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getGeneratedCommandsMemoryRequirementsNV(
22605 GeneratedCommandsMemoryRequirementsInfoNV const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22606 {
22607 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22608 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22609 VULKAN_HPP_ASSERT( d.vkGetGeneratedCommandsMemoryRequirementsNV &&
22610 "Function <vkGetGeneratedCommandsMemoryRequirementsNV> requires <VK_NV_device_generated_commands>" );
22611 # endif
22612
22613 StructureChain<X, Y, Z...> structureChain;
22614 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
22615 d.vkGetGeneratedCommandsMemoryRequirementsNV( m_device,
22616 reinterpret_cast<VkGeneratedCommandsMemoryRequirementsInfoNV const *>( &info ),
22617 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
22618
22619 return structureChain;
22620 }
22621 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22622
22623 // wrapper function for command vkCmdPreprocessGeneratedCommandsNV, see
22624 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPreprocessGeneratedCommandsNV.html
22625 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPreprocessGeneratedCommandsNV ), bool>::type>
22626 VULKAN_HPP_INLINE void CommandBuffer::preprocessGeneratedCommandsNV( GeneratedCommandsInfoNV const * pGeneratedCommandsInfo, Dispatch const & d )
22627 const VULKAN_HPP_NOEXCEPT
22628 {
22629 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22630 d.vkCmdPreprocessGeneratedCommandsNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
22631 reinterpret_cast<VkGeneratedCommandsInfoNV const *>( pGeneratedCommandsInfo ) );
22632 }
22633
22634 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22635 // wrapper function for command vkCmdPreprocessGeneratedCommandsNV, see
22636 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPreprocessGeneratedCommandsNV.html
22637 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPreprocessGeneratedCommandsNV ), bool>::type>
22638 VULKAN_HPP_INLINE void CommandBuffer::preprocessGeneratedCommandsNV( GeneratedCommandsInfoNV const & generatedCommandsInfo, Dispatch const & d )
22639 const VULKAN_HPP_NOEXCEPT
22640 {
22641 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22642 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22643 VULKAN_HPP_ASSERT( d.vkCmdPreprocessGeneratedCommandsNV && "Function <vkCmdPreprocessGeneratedCommandsNV> requires <VK_NV_device_generated_commands>" );
22644 # endif
22645
22646 d.vkCmdPreprocessGeneratedCommandsNV( m_commandBuffer, reinterpret_cast<VkGeneratedCommandsInfoNV const *>( &generatedCommandsInfo ) );
22647 }
22648 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22649
22650 // wrapper function for command vkCmdExecuteGeneratedCommandsNV, see
22651 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteGeneratedCommandsNV.html
22652 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdExecuteGeneratedCommandsNV ), bool>::type>
22653 VULKAN_HPP_INLINE void CommandBuffer::executeGeneratedCommandsNV(
22654 Bool32 isPreprocessed, GeneratedCommandsInfoNV const * pGeneratedCommandsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22655 {
22656 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22657 d.vkCmdExecuteGeneratedCommandsNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
22658 static_cast<VkBool32>( isPreprocessed ),
22659 reinterpret_cast<VkGeneratedCommandsInfoNV const *>( pGeneratedCommandsInfo ) );
22660 }
22661
22662 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22663 // wrapper function for command vkCmdExecuteGeneratedCommandsNV, see
22664 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteGeneratedCommandsNV.html
22665 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdExecuteGeneratedCommandsNV ), bool>::type>
22666 VULKAN_HPP_INLINE void CommandBuffer::executeGeneratedCommandsNV(
22667 Bool32 isPreprocessed, GeneratedCommandsInfoNV const & generatedCommandsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22668 {
22669 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22670 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22671 VULKAN_HPP_ASSERT( d.vkCmdExecuteGeneratedCommandsNV && "Function <vkCmdExecuteGeneratedCommandsNV> requires <VK_NV_device_generated_commands>" );
22672 # endif
22673
22674 d.vkCmdExecuteGeneratedCommandsNV(
22675 m_commandBuffer, static_cast<VkBool32>( isPreprocessed ), reinterpret_cast<VkGeneratedCommandsInfoNV const *>( &generatedCommandsInfo ) );
22676 }
22677 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22678
22679 // wrapper function for command vkCmdBindPipelineShaderGroupNV, see
22680 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindPipelineShaderGroupNV.html
22681 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindPipelineShaderGroupNV ), bool>::type>
22682 VULKAN_HPP_INLINE void CommandBuffer::bindPipelineShaderGroupNV(
22683 PipelineBindPoint pipelineBindPoint, Pipeline pipeline, uint32_t groupIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22684 {
22685 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22686 d.vkCmdBindPipelineShaderGroupNV(
22687 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipeline>( pipeline ), groupIndex );
22688 }
22689
22690 // wrapper function for command vkCreateIndirectCommandsLayoutNV, see
22691 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutNV.html
22692 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectCommandsLayoutNV ), bool>::type>
22693 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createIndirectCommandsLayoutNV( IndirectCommandsLayoutCreateInfoNV const * pCreateInfo,
22694 AllocationCallbacks const * pAllocator,
22695 IndirectCommandsLayoutNV * pIndirectCommandsLayout,
22696 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22697 {
22698 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22699 return static_cast<Result>( d.vkCreateIndirectCommandsLayoutNV( static_cast<VkDevice>( m_device ),
22700 reinterpret_cast<VkIndirectCommandsLayoutCreateInfoNV const *>( pCreateInfo ),
22701 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
22702 reinterpret_cast<VkIndirectCommandsLayoutNV *>( pIndirectCommandsLayout ) ) );
22703 }
22704
22705 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22706 // wrapper function for command vkCreateIndirectCommandsLayoutNV, see
22707 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutNV.html
22708 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectCommandsLayoutNV ), bool>::type>
22709 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<IndirectCommandsLayoutNV>::type Device::createIndirectCommandsLayoutNV(
22710 IndirectCommandsLayoutCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
22711 {
22712 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22713 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22714 VULKAN_HPP_ASSERT( d.vkCreateIndirectCommandsLayoutNV && "Function <vkCreateIndirectCommandsLayoutNV> requires <VK_NV_device_generated_commands>" );
22715 # endif
22716
22717 IndirectCommandsLayoutNV indirectCommandsLayout;
22718 Result result = static_cast<Result>( d.vkCreateIndirectCommandsLayoutNV( m_device,
22719 reinterpret_cast<VkIndirectCommandsLayoutCreateInfoNV const *>( &createInfo ),
22720 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
22721 reinterpret_cast<VkIndirectCommandsLayoutNV *>( &indirectCommandsLayout ) ) );
22722 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectCommandsLayoutNV" );
22723
22724 return detail::createResultValueType( result, std::move( indirectCommandsLayout ) );
22725 }
22726
22727 # ifndef VULKAN_HPP_NO_SMART_HANDLE
22728 // wrapper function for command vkCreateIndirectCommandsLayoutNV, see
22729 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutNV.html
22730 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectCommandsLayoutNV ), bool>::type>
22731 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<IndirectCommandsLayoutNV, Dispatch>>::type
22732 Device::createIndirectCommandsLayoutNVUnique(
22733 IndirectCommandsLayoutCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
22734 {
22735 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22736 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22737 VULKAN_HPP_ASSERT( d.vkCreateIndirectCommandsLayoutNV && "Function <vkCreateIndirectCommandsLayoutNV> requires <VK_NV_device_generated_commands>" );
22738 # endif
22739
22740 IndirectCommandsLayoutNV indirectCommandsLayout;
22741 Result result = static_cast<Result>( d.vkCreateIndirectCommandsLayoutNV( m_device,
22742 reinterpret_cast<VkIndirectCommandsLayoutCreateInfoNV const *>( &createInfo ),
22743 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
22744 reinterpret_cast<VkIndirectCommandsLayoutNV *>( &indirectCommandsLayout ) ) );
22745 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectCommandsLayoutNVUnique" );
22746
22747 return detail::createResultValueType(
22748 result, UniqueHandle<IndirectCommandsLayoutNV, Dispatch>( indirectCommandsLayout, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
22749 }
22750 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
22751 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22752
22753 // wrapper function for command vkDestroyIndirectCommandsLayoutNV, see
22754 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutNV.html
22755 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutNV ), bool>::type>
22756 VULKAN_HPP_INLINE void Device::destroyIndirectCommandsLayoutNV(
22757 IndirectCommandsLayoutNV indirectCommandsLayout, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22758 {
22759 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22760 d.vkDestroyIndirectCommandsLayoutNV( static_cast<VkDevice>( m_device ),
22761 static_cast<VkIndirectCommandsLayoutNV>( indirectCommandsLayout ),
22762 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
22763 }
22764
22765 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22766 // wrapper function for command vkDestroyIndirectCommandsLayoutNV, see
22767 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutNV.html
22768 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutNV ), bool>::type>
22769 VULKAN_HPP_INLINE void Device::destroyIndirectCommandsLayoutNV(
22770 IndirectCommandsLayoutNV indirectCommandsLayout, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22771 {
22772 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22773 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22774 VULKAN_HPP_ASSERT( d.vkDestroyIndirectCommandsLayoutNV && "Function <vkDestroyIndirectCommandsLayoutNV> requires <VK_NV_device_generated_commands>" );
22775 # endif
22776
22777 d.vkDestroyIndirectCommandsLayoutNV(
22778 m_device, static_cast<VkIndirectCommandsLayoutNV>( indirectCommandsLayout ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
22779 }
22780 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22781
22782 // wrapper function for command vkDestroyIndirectCommandsLayoutNV, see
22783 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutNV.html
22784 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutNV ), bool>::type>
22785 VULKAN_HPP_INLINE void Device::destroy( IndirectCommandsLayoutNV indirectCommandsLayout, AllocationCallbacks const * pAllocator, Dispatch const & d )
22786 const VULKAN_HPP_NOEXCEPT
22787 {
22788 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22789 d.vkDestroyIndirectCommandsLayoutNV( static_cast<VkDevice>( m_device ),
22790 static_cast<VkIndirectCommandsLayoutNV>( indirectCommandsLayout ),
22791 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
22792 }
22793
22794 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22795 // wrapper function for command vkDestroyIndirectCommandsLayoutNV, see
22796 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutNV.html
22797 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutNV ), bool>::type>
22798 VULKAN_HPP_INLINE void Device::destroy( IndirectCommandsLayoutNV indirectCommandsLayout, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
22799 const VULKAN_HPP_NOEXCEPT
22800 {
22801 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22802 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22803 VULKAN_HPP_ASSERT( d.vkDestroyIndirectCommandsLayoutNV && "Function <vkDestroyIndirectCommandsLayoutNV> requires <VK_NV_device_generated_commands>" );
22804 # endif
22805
22806 d.vkDestroyIndirectCommandsLayoutNV(
22807 m_device, static_cast<VkIndirectCommandsLayoutNV>( indirectCommandsLayout ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
22808 }
22809 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22810
22811 //=== VK_EXT_depth_bias_control ===
22812
22813 // wrapper function for command vkCmdSetDepthBias2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBias2EXT.html
22814 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBias2EXT ), bool>::type>
22815 VULKAN_HPP_INLINE void CommandBuffer::setDepthBias2EXT( DepthBiasInfoEXT const * pDepthBiasInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22816 {
22817 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22818 d.vkCmdSetDepthBias2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDepthBiasInfoEXT const *>( pDepthBiasInfo ) );
22819 }
22820
22821 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22822 // wrapper function for command vkCmdSetDepthBias2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBias2EXT.html
22823 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBias2EXT ), bool>::type>
22824 VULKAN_HPP_INLINE void CommandBuffer::setDepthBias2EXT( DepthBiasInfoEXT const & depthBiasInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22825 {
22826 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22827 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22828 VULKAN_HPP_ASSERT( d.vkCmdSetDepthBias2EXT && "Function <vkCmdSetDepthBias2EXT> requires <VK_EXT_depth_bias_control>" );
22829 # endif
22830
22831 d.vkCmdSetDepthBias2EXT( m_commandBuffer, reinterpret_cast<VkDepthBiasInfoEXT const *>( &depthBiasInfo ) );
22832 }
22833 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22834
22835 //=== VK_EXT_acquire_drm_display ===
22836
22837 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
22838 // wrapper function for command vkAcquireDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireDrmDisplayEXT.html
22839 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireDrmDisplayEXT ), bool>::type>
22840 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::acquireDrmDisplayEXT( int32_t drmFd, DisplayKHR display, Dispatch const & d )
22841 const VULKAN_HPP_NOEXCEPT
22842 {
22843 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22844 return static_cast<Result>( d.vkAcquireDrmDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), drmFd, static_cast<VkDisplayKHR>( display ) ) );
22845 }
22846 #else
22847 // wrapper function for command vkAcquireDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireDrmDisplayEXT.html
22848 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireDrmDisplayEXT ), bool>::type>
22849 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type PhysicalDevice::acquireDrmDisplayEXT(
22850 int32_t drmFd, DisplayKHR display, 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.vkAcquireDrmDisplayEXT && "Function <vkAcquireDrmDisplayEXT> requires <VK_EXT_acquire_drm_display>" );
22855 # endif
22856
22857 Result result = static_cast<Result>( d.vkAcquireDrmDisplayEXT( m_physicalDevice, drmFd, static_cast<VkDisplayKHR>( display ) ) );
22858 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::acquireDrmDisplayEXT" );
22859
22860 return detail::createResultValueType( result );
22861 }
22862 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
22863
22864 // wrapper function for command vkGetDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDrmDisplayEXT.html
22865 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDrmDisplayEXT ), bool>::type>
22866 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDrmDisplayEXT(
22867 int32_t drmFd, uint32_t connectorId, DisplayKHR * display, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22868 {
22869 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22870 return static_cast<Result>(
22871 d.vkGetDrmDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), drmFd, connectorId, reinterpret_cast<VkDisplayKHR *>( display ) ) );
22872 }
22873
22874 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22875 // wrapper function for command vkGetDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDrmDisplayEXT.html
22876 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDrmDisplayEXT ), bool>::type>
22877 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayKHR>::type PhysicalDevice::getDrmDisplayEXT(
22878 int32_t drmFd, uint32_t connectorId, Dispatch const & d ) const
22879 {
22880 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22881 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22882 VULKAN_HPP_ASSERT( d.vkGetDrmDisplayEXT && "Function <vkGetDrmDisplayEXT> requires <VK_EXT_acquire_drm_display>" );
22883 # endif
22884
22885 DisplayKHR display;
22886 Result result = static_cast<Result>( d.vkGetDrmDisplayEXT( m_physicalDevice, drmFd, connectorId, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
22887 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDrmDisplayEXT" );
22888
22889 return detail::createResultValueType( result, std::move( display ) );
22890 }
22891
22892 # ifndef VULKAN_HPP_NO_SMART_HANDLE
22893 // wrapper function for command vkGetDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDrmDisplayEXT.html
22894 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDrmDisplayEXT ), bool>::type>
22895 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DisplayKHR, Dispatch>>::type PhysicalDevice::getDrmDisplayEXTUnique(
22896 int32_t drmFd, uint32_t connectorId, Dispatch const & d ) const
22897 {
22898 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22899 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22900 VULKAN_HPP_ASSERT( d.vkGetDrmDisplayEXT && "Function <vkGetDrmDisplayEXT> requires <VK_EXT_acquire_drm_display>" );
22901 # endif
22902
22903 DisplayKHR display;
22904 Result result = static_cast<Result>( d.vkGetDrmDisplayEXT( m_physicalDevice, drmFd, connectorId, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
22905 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDrmDisplayEXTUnique" );
22906
22907 return detail::createResultValueType( result, UniqueHandle<DisplayKHR, Dispatch>( display, detail::ObjectRelease<PhysicalDevice, Dispatch>( *this, d ) ) );
22908 }
22909 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
22910 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22911
22912 //=== VK_EXT_private_data ===
22913
22914 // wrapper function for command vkCreatePrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlotEXT.html
22915 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePrivateDataSlotEXT ), bool>::type>
22916 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createPrivateDataSlotEXT(
22917 PrivateDataSlotCreateInfo const * pCreateInfo, AllocationCallbacks const * pAllocator, PrivateDataSlot * pPrivateDataSlot, Dispatch const & d )
22918 const VULKAN_HPP_NOEXCEPT
22919 {
22920 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22921 return static_cast<Result>( d.vkCreatePrivateDataSlotEXT( static_cast<VkDevice>( m_device ),
22922 reinterpret_cast<VkPrivateDataSlotCreateInfo const *>( pCreateInfo ),
22923 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
22924 reinterpret_cast<VkPrivateDataSlot *>( pPrivateDataSlot ) ) );
22925 }
22926
22927 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22928 // wrapper function for command vkCreatePrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlotEXT.html
22929 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePrivateDataSlotEXT ), bool>::type>
22930 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PrivateDataSlot>::type Device::createPrivateDataSlotEXT(
22931 PrivateDataSlotCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
22932 {
22933 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22934 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22935 VULKAN_HPP_ASSERT( d.vkCreatePrivateDataSlotEXT && "Function <vkCreatePrivateDataSlotEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
22936 # endif
22937
22938 PrivateDataSlot privateDataSlot;
22939 Result result = static_cast<Result>( d.vkCreatePrivateDataSlotEXT( m_device,
22940 reinterpret_cast<VkPrivateDataSlotCreateInfo const *>( &createInfo ),
22941 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
22942 reinterpret_cast<VkPrivateDataSlot *>( &privateDataSlot ) ) );
22943 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPrivateDataSlotEXT" );
22944
22945 return detail::createResultValueType( result, std::move( privateDataSlot ) );
22946 }
22947
22948 # ifndef VULKAN_HPP_NO_SMART_HANDLE
22949 // wrapper function for command vkCreatePrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlotEXT.html
22950 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePrivateDataSlotEXT ), bool>::type>
22951 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<PrivateDataSlot, Dispatch>>::type Device::createPrivateDataSlotEXTUnique(
22952 PrivateDataSlotCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
22953 {
22954 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22955 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22956 VULKAN_HPP_ASSERT( d.vkCreatePrivateDataSlotEXT && "Function <vkCreatePrivateDataSlotEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
22957 # endif
22958
22959 PrivateDataSlot privateDataSlot;
22960 Result result = static_cast<Result>( d.vkCreatePrivateDataSlotEXT( m_device,
22961 reinterpret_cast<VkPrivateDataSlotCreateInfo const *>( &createInfo ),
22962 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
22963 reinterpret_cast<VkPrivateDataSlot *>( &privateDataSlot ) ) );
22964 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPrivateDataSlotEXTUnique" );
22965
22966 return detail::createResultValueType(
22967 result, UniqueHandle<PrivateDataSlot, Dispatch>( privateDataSlot, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
22968 }
22969 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
22970 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22971
22972 // wrapper function for command vkDestroyPrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlotEXT.html
22973 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPrivateDataSlotEXT ), bool>::type>
22974 VULKAN_HPP_INLINE void Device::destroyPrivateDataSlotEXT( PrivateDataSlot privateDataSlot, AllocationCallbacks const * pAllocator, Dispatch const & d )
22975 const VULKAN_HPP_NOEXCEPT
22976 {
22977 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22978 d.vkDestroyPrivateDataSlotEXT(
22979 static_cast<VkDevice>( m_device ), static_cast<VkPrivateDataSlot>( privateDataSlot ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
22980 }
22981
22982 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22983 // wrapper function for command vkDestroyPrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlotEXT.html
22984 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPrivateDataSlotEXT ), bool>::type>
22985 VULKAN_HPP_INLINE void Device::destroyPrivateDataSlotEXT( PrivateDataSlot privateDataSlot, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
22986 const VULKAN_HPP_NOEXCEPT
22987 {
22988 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22989 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22990 VULKAN_HPP_ASSERT( d.vkDestroyPrivateDataSlotEXT && "Function <vkDestroyPrivateDataSlotEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
22991 # endif
22992
22993 d.vkDestroyPrivateDataSlotEXT(
22994 m_device, static_cast<VkPrivateDataSlot>( privateDataSlot ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
22995 }
22996 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22997
22998 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
22999 // wrapper function for command vkSetPrivateDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetPrivateDataEXT.html
23000 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetPrivateDataEXT ), bool>::type>
23001 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setPrivateDataEXT(
23002 ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, uint64_t data, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23003 {
23004 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23005 return static_cast<Result>( d.vkSetPrivateDataEXT(
23006 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), data ) );
23007 }
23008 #else
23009 // wrapper function for command vkSetPrivateDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetPrivateDataEXT.html
23010 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetPrivateDataEXT ), bool>::type>
23011 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setPrivateDataEXT(
23012 ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, uint64_t data, Dispatch const & d ) const
23013 {
23014 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23015 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23016 VULKAN_HPP_ASSERT( d.vkSetPrivateDataEXT && "Function <vkSetPrivateDataEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
23017 # endif
23018
23019 Result result = static_cast<Result>(
23020 d.vkSetPrivateDataEXT( m_device, static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), data ) );
23021 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setPrivateDataEXT" );
23022
23023 return detail::createResultValueType( result );
23024 }
23025 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
23026
23027 // wrapper function for command vkGetPrivateDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPrivateDataEXT.html
23028 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPrivateDataEXT ), bool>::type>
23029 VULKAN_HPP_INLINE void Device::getPrivateDataEXT(
23030 ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, uint64_t * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23031 {
23032 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23033 d.vkGetPrivateDataEXT(
23034 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), pData );
23035 }
23036
23037 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23038 // wrapper function for command vkGetPrivateDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPrivateDataEXT.html
23039 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPrivateDataEXT ), bool>::type>
23040 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint64_t Device::getPrivateDataEXT(
23041 ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23042 {
23043 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23044 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23045 VULKAN_HPP_ASSERT( d.vkGetPrivateDataEXT && "Function <vkGetPrivateDataEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
23046 # endif
23047
23048 uint64_t data;
23049 d.vkGetPrivateDataEXT( m_device, static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), &data );
23050
23051 return data;
23052 }
23053 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23054
23055 //=== VK_KHR_video_encode_queue ===
23056
23057 // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see
23058 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html
23059 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR ), bool>::type>
23060 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR(
23061 PhysicalDeviceVideoEncodeQualityLevelInfoKHR const * pQualityLevelInfo, VideoEncodeQualityLevelPropertiesKHR * pQualityLevelProperties, Dispatch const & d )
23062 const VULKAN_HPP_NOEXCEPT
23063 {
23064 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23065 return static_cast<Result>(
23066 d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
23067 reinterpret_cast<VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR const *>( pQualityLevelInfo ),
23068 reinterpret_cast<VkVideoEncodeQualityLevelPropertiesKHR *>( pQualityLevelProperties ) ) );
23069 }
23070
23071 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23072 // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see
23073 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html
23074 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR ), bool>::type>
23075 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VideoEncodeQualityLevelPropertiesKHR>::type
23076 PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR( PhysicalDeviceVideoEncodeQualityLevelInfoKHR const & qualityLevelInfo, Dispatch const & d ) const
23077 {
23078 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23079 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23080 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR &&
23081 "Function <vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR> requires <VK_KHR_video_encode_queue>" );
23082 # endif
23083
23084 VideoEncodeQualityLevelPropertiesKHR qualityLevelProperties;
23085 Result result = static_cast<Result>(
23086 d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR( m_physicalDevice,
23087 reinterpret_cast<VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR const *>( &qualityLevelInfo ),
23088 reinterpret_cast<VkVideoEncodeQualityLevelPropertiesKHR *>( &qualityLevelProperties ) ) );
23089 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR" );
23090
23091 return detail::createResultValueType( result, std::move( qualityLevelProperties ) );
23092 }
23093
23094 // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see
23095 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html
23096 template <typename X,
23097 typename Y,
23098 typename... Z,
23099 typename Dispatch,
23100 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR ), bool>::type>
23101 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR(
23102 PhysicalDeviceVideoEncodeQualityLevelInfoKHR const & qualityLevelInfo, Dispatch const & d ) const
23103 {
23104 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23105 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23106 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR &&
23107 "Function <vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR> requires <VK_KHR_video_encode_queue>" );
23108 # endif
23109
23110 StructureChain<X, Y, Z...> structureChain;
23111 VideoEncodeQualityLevelPropertiesKHR & qualityLevelProperties = structureChain.template get<VideoEncodeQualityLevelPropertiesKHR>();
23112 Result result = static_cast<Result>(
23113 d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR( m_physicalDevice,
23114 reinterpret_cast<VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR const *>( &qualityLevelInfo ),
23115 reinterpret_cast<VkVideoEncodeQualityLevelPropertiesKHR *>( &qualityLevelProperties ) ) );
23116 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR" );
23117
23118 return detail::createResultValueType( result, std::move( structureChain ) );
23119 }
23120 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23121
23122 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
23123 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
23124 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetEncodedVideoSessionParametersKHR ), bool>::type>
23125 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getEncodedVideoSessionParametersKHR(
23126 VideoEncodeSessionParametersGetInfoKHR const * pVideoSessionParametersInfo,
23127 VideoEncodeSessionParametersFeedbackInfoKHR * pFeedbackInfo,
23128 size_t * pDataSize,
23129 void * pData,
23130 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23131 {
23132 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23133 return static_cast<Result>(
23134 d.vkGetEncodedVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
23135 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( pVideoSessionParametersInfo ),
23136 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( pFeedbackInfo ),
23137 pDataSize,
23138 pData ) );
23139 }
23140
23141 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23142 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
23143 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
23144 template <typename Uint8_tAllocator,
23145 typename Dispatch,
23146 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
23147 typename std::enable_if<IS_DISPATCHED( vkGetEncodedVideoSessionParametersKHR ), bool>::type>
23148 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
23149 typename ResultValueType<std::pair<VideoEncodeSessionParametersFeedbackInfoKHR, std::vector<uint8_t, Uint8_tAllocator>>>::type
23150 Device::getEncodedVideoSessionParametersKHR( VideoEncodeSessionParametersGetInfoKHR const & videoSessionParametersInfo, Dispatch const & d ) const
23151 {
23152 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23153 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23154 VULKAN_HPP_ASSERT( d.vkGetEncodedVideoSessionParametersKHR && "Function <vkGetEncodedVideoSessionParametersKHR> requires <VK_KHR_video_encode_queue>" );
23155 # endif
23156
23157 std::pair<VideoEncodeSessionParametersFeedbackInfoKHR, std::vector<uint8_t, Uint8_tAllocator>> data_;
23158 VideoEncodeSessionParametersFeedbackInfoKHR & feedbackInfo = data_.first;
23159 std::vector<uint8_t, Uint8_tAllocator> & data = data_.second;
23160 size_t dataSize;
23161 Result result;
23162 do
23163 {
23164 result = static_cast<Result>(
23165 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23166 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( &videoSessionParametersInfo ),
23167 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23168 &dataSize,
23169 nullptr ) );
23170 if ( ( result == Result::eSuccess ) && dataSize )
23171 {
23172 data.resize( dataSize );
23173 result = static_cast<Result>(
23174 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23175 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( &videoSessionParametersInfo ),
23176 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23177 &dataSize,
23178 reinterpret_cast<void *>( data.data() ) ) );
23179 }
23180 } while ( result == Result::eIncomplete );
23181 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEncodedVideoSessionParametersKHR" );
23182
23183 return detail::createResultValueType( result, std::move( data_ ) );
23184 }
23185
23186 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
23187 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
23188 template <typename Uint8_tAllocator,
23189 typename Dispatch,
23190 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
23191 typename std::enable_if<IS_DISPATCHED( vkGetEncodedVideoSessionParametersKHR ), bool>::type>
23192 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
23193 typename ResultValueType<std::pair<VideoEncodeSessionParametersFeedbackInfoKHR, std::vector<uint8_t, Uint8_tAllocator>>>::type
23194 Device::getEncodedVideoSessionParametersKHR(
23195 VideoEncodeSessionParametersGetInfoKHR const & videoSessionParametersInfo, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
23196 {
23197 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23198 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23199 VULKAN_HPP_ASSERT( d.vkGetEncodedVideoSessionParametersKHR && "Function <vkGetEncodedVideoSessionParametersKHR> requires <VK_KHR_video_encode_queue>" );
23200 # endif
23201
23202 std::pair<VideoEncodeSessionParametersFeedbackInfoKHR, std::vector<uint8_t, Uint8_tAllocator>> data_(
23203 std::piecewise_construct, std::forward_as_tuple(), std::forward_as_tuple( uint8_tAllocator ) );
23204 VideoEncodeSessionParametersFeedbackInfoKHR & feedbackInfo = data_.first;
23205 std::vector<uint8_t, Uint8_tAllocator> & data = data_.second;
23206 size_t dataSize;
23207 Result result;
23208 do
23209 {
23210 result = static_cast<Result>(
23211 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23212 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( &videoSessionParametersInfo ),
23213 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23214 &dataSize,
23215 nullptr ) );
23216 if ( ( result == Result::eSuccess ) && dataSize )
23217 {
23218 data.resize( dataSize );
23219 result = static_cast<Result>(
23220 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23221 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( &videoSessionParametersInfo ),
23222 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23223 &dataSize,
23224 reinterpret_cast<void *>( data.data() ) ) );
23225 }
23226 } while ( result == Result::eIncomplete );
23227 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEncodedVideoSessionParametersKHR" );
23228
23229 return detail::createResultValueType( result, std::move( data_ ) );
23230 }
23231
23232 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
23233 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
23234 template <typename X,
23235 typename Y,
23236 typename... Z,
23237 typename Uint8_tAllocator,
23238 typename Dispatch,
23239 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
23240 typename std::enable_if<IS_DISPATCHED( vkGetEncodedVideoSessionParametersKHR ), bool>::type>
23241 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<StructureChain<X, Y, Z...>, std::vector<uint8_t, Uint8_tAllocator>>>::type
23242 Device::getEncodedVideoSessionParametersKHR( VideoEncodeSessionParametersGetInfoKHR const & videoSessionParametersInfo, Dispatch const & d ) const
23243 {
23244 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23245 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23246 VULKAN_HPP_ASSERT( d.vkGetEncodedVideoSessionParametersKHR && "Function <vkGetEncodedVideoSessionParametersKHR> requires <VK_KHR_video_encode_queue>" );
23247 # endif
23248
23249 std::pair<StructureChain<X, Y, Z...>, std::vector<uint8_t, Uint8_tAllocator>> data_;
23250 VideoEncodeSessionParametersFeedbackInfoKHR & feedbackInfo = data_.first.template get<VideoEncodeSessionParametersFeedbackInfoKHR>();
23251 std::vector<uint8_t, Uint8_tAllocator> & data = data_.second;
23252 size_t dataSize;
23253 Result result;
23254 do
23255 {
23256 result = static_cast<Result>(
23257 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23258 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( &videoSessionParametersInfo ),
23259 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23260 &dataSize,
23261 nullptr ) );
23262 if ( ( result == Result::eSuccess ) && dataSize )
23263 {
23264 data.resize( dataSize );
23265 result = static_cast<Result>(
23266 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23267 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( &videoSessionParametersInfo ),
23268 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23269 &dataSize,
23270 reinterpret_cast<void *>( data.data() ) ) );
23271 }
23272 } while ( result == Result::eIncomplete );
23273 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEncodedVideoSessionParametersKHR" );
23274
23275 return detail::createResultValueType( result, std::move( data_ ) );
23276 }
23277
23278 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
23279 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
23280 template <typename X,
23281 typename Y,
23282 typename... Z,
23283 typename Uint8_tAllocator,
23284 typename Dispatch,
23285 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
23286 typename std::enable_if<IS_DISPATCHED( vkGetEncodedVideoSessionParametersKHR ), bool>::type>
23287 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<StructureChain<X, Y, Z...>, std::vector<uint8_t, Uint8_tAllocator>>>::type
23288 Device::getEncodedVideoSessionParametersKHR(
23289 VideoEncodeSessionParametersGetInfoKHR const & videoSessionParametersInfo, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
23290 {
23291 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23292 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23293 VULKAN_HPP_ASSERT( d.vkGetEncodedVideoSessionParametersKHR && "Function <vkGetEncodedVideoSessionParametersKHR> requires <VK_KHR_video_encode_queue>" );
23294 # endif
23295
23296 std::pair<StructureChain<X, Y, Z...>, std::vector<uint8_t, Uint8_tAllocator>> data_(
23297 std::piecewise_construct, std::forward_as_tuple(), std::forward_as_tuple( uint8_tAllocator ) );
23298 VideoEncodeSessionParametersFeedbackInfoKHR & feedbackInfo = data_.first.template get<VideoEncodeSessionParametersFeedbackInfoKHR>();
23299 std::vector<uint8_t, Uint8_tAllocator> & data = data_.second;
23300 size_t dataSize;
23301 Result result;
23302 do
23303 {
23304 result = static_cast<Result>(
23305 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23306 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( &videoSessionParametersInfo ),
23307 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23308 &dataSize,
23309 nullptr ) );
23310 if ( ( result == Result::eSuccess ) && dataSize )
23311 {
23312 data.resize( dataSize );
23313 result = static_cast<Result>(
23314 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23315 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( &videoSessionParametersInfo ),
23316 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23317 &dataSize,
23318 reinterpret_cast<void *>( data.data() ) ) );
23319 }
23320 } while ( result == Result::eIncomplete );
23321 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEncodedVideoSessionParametersKHR" );
23322
23323 return detail::createResultValueType( result, std::move( data_ ) );
23324 }
23325 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23326
23327 // wrapper function for command vkCmdEncodeVideoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEncodeVideoKHR.html
23328 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEncodeVideoKHR ), bool>::type>
23329 VULKAN_HPP_INLINE void CommandBuffer::encodeVideoKHR( VideoEncodeInfoKHR const * pEncodeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23330 {
23331 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23332 d.vkCmdEncodeVideoKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkVideoEncodeInfoKHR const *>( pEncodeInfo ) );
23333 }
23334
23335 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23336 // wrapper function for command vkCmdEncodeVideoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEncodeVideoKHR.html
23337 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEncodeVideoKHR ), bool>::type>
23338 VULKAN_HPP_INLINE void CommandBuffer::encodeVideoKHR( VideoEncodeInfoKHR const & encodeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23339 {
23340 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23341 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23342 VULKAN_HPP_ASSERT( d.vkCmdEncodeVideoKHR && "Function <vkCmdEncodeVideoKHR> requires <VK_KHR_video_encode_queue>" );
23343 # endif
23344
23345 d.vkCmdEncodeVideoKHR( m_commandBuffer, reinterpret_cast<VkVideoEncodeInfoKHR const *>( &encodeInfo ) );
23346 }
23347 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23348
23349 #if defined( VK_ENABLE_BETA_EXTENSIONS )
23350 //=== VK_NV_cuda_kernel_launch ===
23351
23352 // wrapper function for command vkCreateCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaModuleNV.html
23353 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCudaModuleNV ), bool>::type>
23354 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createCudaModuleNV(
23355 CudaModuleCreateInfoNV const * pCreateInfo, AllocationCallbacks const * pAllocator, CudaModuleNV * pModule, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23356 {
23357 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23358 return static_cast<Result>( d.vkCreateCudaModuleNV( static_cast<VkDevice>( m_device ),
23359 reinterpret_cast<VkCudaModuleCreateInfoNV const *>( pCreateInfo ),
23360 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
23361 reinterpret_cast<VkCudaModuleNV *>( pModule ) ) );
23362 }
23363
23364 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23365 // wrapper function for command vkCreateCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaModuleNV.html
23366 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCudaModuleNV ), bool>::type>
23367 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CudaModuleNV>::type Device::createCudaModuleNV(
23368 CudaModuleCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
23369 {
23370 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23371 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23372 VULKAN_HPP_ASSERT( d.vkCreateCudaModuleNV && "Function <vkCreateCudaModuleNV> requires <VK_NV_cuda_kernel_launch>" );
23373 # endif
23374
23375 CudaModuleNV module;
23376 Result result = static_cast<Result>( d.vkCreateCudaModuleNV( m_device,
23377 reinterpret_cast<VkCudaModuleCreateInfoNV const *>( &createInfo ),
23378 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
23379 reinterpret_cast<VkCudaModuleNV *>( &module ) ) );
23380 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCudaModuleNV" );
23381
23382 return detail::createResultValueType( result, std::move( module ) );
23383 }
23384
23385 # ifndef VULKAN_HPP_NO_SMART_HANDLE
23386 // wrapper function for command vkCreateCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaModuleNV.html
23387 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCudaModuleNV ), bool>::type>
23388 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<CudaModuleNV, Dispatch>>::type Device::createCudaModuleNVUnique(
23389 CudaModuleCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
23390 {
23391 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23392 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23393 VULKAN_HPP_ASSERT( d.vkCreateCudaModuleNV && "Function <vkCreateCudaModuleNV> requires <VK_NV_cuda_kernel_launch>" );
23394 # endif
23395
23396 CudaModuleNV module;
23397 Result result = static_cast<Result>( d.vkCreateCudaModuleNV( m_device,
23398 reinterpret_cast<VkCudaModuleCreateInfoNV const *>( &createInfo ),
23399 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
23400 reinterpret_cast<VkCudaModuleNV *>( &module ) ) );
23401 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCudaModuleNVUnique" );
23402
23403 return detail::createResultValueType( result,
23404 UniqueHandle<CudaModuleNV, Dispatch>( module, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
23405 }
23406 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
23407 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23408
23409 // wrapper function for command vkGetCudaModuleCacheNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCudaModuleCacheNV.html
23410 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetCudaModuleCacheNV ), bool>::type>
23411 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getCudaModuleCacheNV( CudaModuleNV module, size_t * pCacheSize, void * pCacheData, Dispatch const & d )
23412 const VULKAN_HPP_NOEXCEPT
23413 {
23414 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23415 return static_cast<Result>( d.vkGetCudaModuleCacheNV( static_cast<VkDevice>( m_device ), static_cast<VkCudaModuleNV>( module ), pCacheSize, pCacheData ) );
23416 }
23417
23418 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23419 // wrapper function for command vkGetCudaModuleCacheNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCudaModuleCacheNV.html
23420 template <typename Uint8_tAllocator,
23421 typename Dispatch,
23422 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
23423 typename std::enable_if<IS_DISPATCHED( vkGetCudaModuleCacheNV ), bool>::type>
23424 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type Device::getCudaModuleCacheNV(
23425 CudaModuleNV module, Dispatch const & d ) const
23426 {
23427 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23428 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23429 VULKAN_HPP_ASSERT( d.vkGetCudaModuleCacheNV && "Function <vkGetCudaModuleCacheNV> requires <VK_NV_cuda_kernel_launch>" );
23430 # endif
23431
23432 std::vector<uint8_t, Uint8_tAllocator> cacheData;
23433 size_t cacheSize;
23434 Result result;
23435 do
23436 {
23437 result = static_cast<Result>( d.vkGetCudaModuleCacheNV( m_device, static_cast<VkCudaModuleNV>( module ), &cacheSize, nullptr ) );
23438 if ( ( result == Result::eSuccess ) && cacheSize )
23439 {
23440 cacheData.resize( cacheSize );
23441 result = static_cast<Result>(
23442 d.vkGetCudaModuleCacheNV( m_device, static_cast<VkCudaModuleNV>( module ), &cacheSize, reinterpret_cast<void *>( cacheData.data() ) ) );
23443 }
23444 } while ( result == Result::eIncomplete );
23445 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCudaModuleCacheNV" );
23446 VULKAN_HPP_ASSERT( cacheSize <= cacheData.size() );
23447 if ( cacheSize < cacheData.size() )
23448 {
23449 cacheData.resize( cacheSize );
23450 }
23451 return detail::createResultValueType( result, std::move( cacheData ) );
23452 }
23453
23454 // wrapper function for command vkGetCudaModuleCacheNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCudaModuleCacheNV.html
23455 template <typename Uint8_tAllocator,
23456 typename Dispatch,
23457 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
23458 typename std::enable_if<IS_DISPATCHED( vkGetCudaModuleCacheNV ), bool>::type>
23459 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type Device::getCudaModuleCacheNV(
23460 CudaModuleNV module, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
23461 {
23462 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23463 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23464 VULKAN_HPP_ASSERT( d.vkGetCudaModuleCacheNV && "Function <vkGetCudaModuleCacheNV> requires <VK_NV_cuda_kernel_launch>" );
23465 # endif
23466
23467 std::vector<uint8_t, Uint8_tAllocator> cacheData( uint8_tAllocator );
23468 size_t cacheSize;
23469 Result result;
23470 do
23471 {
23472 result = static_cast<Result>( d.vkGetCudaModuleCacheNV( m_device, static_cast<VkCudaModuleNV>( module ), &cacheSize, nullptr ) );
23473 if ( ( result == Result::eSuccess ) && cacheSize )
23474 {
23475 cacheData.resize( cacheSize );
23476 result = static_cast<Result>(
23477 d.vkGetCudaModuleCacheNV( m_device, static_cast<VkCudaModuleNV>( module ), &cacheSize, reinterpret_cast<void *>( cacheData.data() ) ) );
23478 }
23479 } while ( result == Result::eIncomplete );
23480 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCudaModuleCacheNV" );
23481 VULKAN_HPP_ASSERT( cacheSize <= cacheData.size() );
23482 if ( cacheSize < cacheData.size() )
23483 {
23484 cacheData.resize( cacheSize );
23485 }
23486 return detail::createResultValueType( result, std::move( cacheData ) );
23487 }
23488 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23489
23490 // wrapper function for command vkCreateCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaFunctionNV.html
23491 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCudaFunctionNV ), bool>::type>
23492 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createCudaFunctionNV(
23493 CudaFunctionCreateInfoNV const * pCreateInfo, AllocationCallbacks const * pAllocator, CudaFunctionNV * pFunction, Dispatch const & d )
23494 const VULKAN_HPP_NOEXCEPT
23495 {
23496 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23497 return static_cast<Result>( d.vkCreateCudaFunctionNV( static_cast<VkDevice>( m_device ),
23498 reinterpret_cast<VkCudaFunctionCreateInfoNV const *>( pCreateInfo ),
23499 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
23500 reinterpret_cast<VkCudaFunctionNV *>( pFunction ) ) );
23501 }
23502
23503 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23504 // wrapper function for command vkCreateCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaFunctionNV.html
23505 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCudaFunctionNV ), bool>::type>
23506 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CudaFunctionNV>::type Device::createCudaFunctionNV(
23507 CudaFunctionCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
23508 {
23509 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23510 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23511 VULKAN_HPP_ASSERT( d.vkCreateCudaFunctionNV && "Function <vkCreateCudaFunctionNV> requires <VK_NV_cuda_kernel_launch>" );
23512 # endif
23513
23514 CudaFunctionNV function;
23515 Result result = static_cast<Result>( d.vkCreateCudaFunctionNV( m_device,
23516 reinterpret_cast<VkCudaFunctionCreateInfoNV const *>( &createInfo ),
23517 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
23518 reinterpret_cast<VkCudaFunctionNV *>( &function ) ) );
23519 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCudaFunctionNV" );
23520
23521 return detail::createResultValueType( result, std::move( function ) );
23522 }
23523
23524 # ifndef VULKAN_HPP_NO_SMART_HANDLE
23525 // wrapper function for command vkCreateCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaFunctionNV.html
23526 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCudaFunctionNV ), bool>::type>
23527 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<CudaFunctionNV, Dispatch>>::type Device::createCudaFunctionNVUnique(
23528 CudaFunctionCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
23529 {
23530 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23531 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23532 VULKAN_HPP_ASSERT( d.vkCreateCudaFunctionNV && "Function <vkCreateCudaFunctionNV> requires <VK_NV_cuda_kernel_launch>" );
23533 # endif
23534
23535 CudaFunctionNV function;
23536 Result result = static_cast<Result>( d.vkCreateCudaFunctionNV( m_device,
23537 reinterpret_cast<VkCudaFunctionCreateInfoNV const *>( &createInfo ),
23538 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
23539 reinterpret_cast<VkCudaFunctionNV *>( &function ) ) );
23540 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCudaFunctionNVUnique" );
23541
23542 return detail::createResultValueType( result,
23543 UniqueHandle<CudaFunctionNV, Dispatch>( function, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
23544 }
23545 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
23546 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23547
23548 // wrapper function for command vkDestroyCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaModuleNV.html
23549 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaModuleNV ), bool>::type>
23550 VULKAN_HPP_INLINE void Device::destroyCudaModuleNV( CudaModuleNV module, AllocationCallbacks const * pAllocator, Dispatch const & d )
23551 const VULKAN_HPP_NOEXCEPT
23552 {
23553 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23554 d.vkDestroyCudaModuleNV(
23555 static_cast<VkDevice>( m_device ), static_cast<VkCudaModuleNV>( module ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
23556 }
23557
23558 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23559 // wrapper function for command vkDestroyCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaModuleNV.html
23560 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaModuleNV ), bool>::type>
23561 VULKAN_HPP_INLINE void Device::destroyCudaModuleNV( CudaModuleNV module, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
23562 const VULKAN_HPP_NOEXCEPT
23563 {
23564 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23565 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23566 VULKAN_HPP_ASSERT( d.vkDestroyCudaModuleNV && "Function <vkDestroyCudaModuleNV> requires <VK_NV_cuda_kernel_launch>" );
23567 # endif
23568
23569 d.vkDestroyCudaModuleNV( m_device, static_cast<VkCudaModuleNV>( module ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
23570 }
23571 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23572
23573 // wrapper function for command vkDestroyCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaModuleNV.html
23574 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaModuleNV ), bool>::type>
23575 VULKAN_HPP_INLINE void Device::destroy( CudaModuleNV module, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23576 {
23577 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23578 d.vkDestroyCudaModuleNV(
23579 static_cast<VkDevice>( m_device ), static_cast<VkCudaModuleNV>( module ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
23580 }
23581
23582 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23583 // wrapper function for command vkDestroyCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaModuleNV.html
23584 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaModuleNV ), bool>::type>
23585 VULKAN_HPP_INLINE void Device::destroy( CudaModuleNV module, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23586 {
23587 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23588 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23589 VULKAN_HPP_ASSERT( d.vkDestroyCudaModuleNV && "Function <vkDestroyCudaModuleNV> requires <VK_NV_cuda_kernel_launch>" );
23590 # endif
23591
23592 d.vkDestroyCudaModuleNV( m_device, static_cast<VkCudaModuleNV>( module ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
23593 }
23594 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23595
23596 // wrapper function for command vkDestroyCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaFunctionNV.html
23597 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaFunctionNV ), bool>::type>
23598 VULKAN_HPP_INLINE void Device::destroyCudaFunctionNV( CudaFunctionNV function, AllocationCallbacks const * pAllocator, Dispatch const & d )
23599 const VULKAN_HPP_NOEXCEPT
23600 {
23601 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23602 d.vkDestroyCudaFunctionNV(
23603 static_cast<VkDevice>( m_device ), static_cast<VkCudaFunctionNV>( function ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
23604 }
23605
23606 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23607 // wrapper function for command vkDestroyCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaFunctionNV.html
23608 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaFunctionNV ), bool>::type>
23609 VULKAN_HPP_INLINE void Device::destroyCudaFunctionNV( CudaFunctionNV function, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
23610 const VULKAN_HPP_NOEXCEPT
23611 {
23612 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23613 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23614 VULKAN_HPP_ASSERT( d.vkDestroyCudaFunctionNV && "Function <vkDestroyCudaFunctionNV> requires <VK_NV_cuda_kernel_launch>" );
23615 # endif
23616
23617 d.vkDestroyCudaFunctionNV( m_device, static_cast<VkCudaFunctionNV>( function ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
23618 }
23619 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23620
23621 // wrapper function for command vkDestroyCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaFunctionNV.html
23622 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaFunctionNV ), bool>::type>
23623 VULKAN_HPP_INLINE void Device::destroy( CudaFunctionNV function, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23624 {
23625 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23626 d.vkDestroyCudaFunctionNV(
23627 static_cast<VkDevice>( m_device ), static_cast<VkCudaFunctionNV>( function ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
23628 }
23629
23630 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23631 // wrapper function for command vkDestroyCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaFunctionNV.html
23632 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaFunctionNV ), bool>::type>
23633 VULKAN_HPP_INLINE void Device::destroy( CudaFunctionNV function, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23634 {
23635 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23636 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23637 VULKAN_HPP_ASSERT( d.vkDestroyCudaFunctionNV && "Function <vkDestroyCudaFunctionNV> requires <VK_NV_cuda_kernel_launch>" );
23638 # endif
23639
23640 d.vkDestroyCudaFunctionNV( m_device, static_cast<VkCudaFunctionNV>( function ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
23641 }
23642 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23643
23644 // wrapper function for command vkCmdCudaLaunchKernelNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCudaLaunchKernelNV.html
23645 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCudaLaunchKernelNV ), bool>::type>
23646 VULKAN_HPP_INLINE void CommandBuffer::cudaLaunchKernelNV( CudaLaunchInfoNV const * pLaunchInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23647 {
23648 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23649 d.vkCmdCudaLaunchKernelNV( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCudaLaunchInfoNV const *>( pLaunchInfo ) );
23650 }
23651
23652 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23653 // wrapper function for command vkCmdCudaLaunchKernelNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCudaLaunchKernelNV.html
23654 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCudaLaunchKernelNV ), bool>::type>
23655 VULKAN_HPP_INLINE void CommandBuffer::cudaLaunchKernelNV( CudaLaunchInfoNV const & launchInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23656 {
23657 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23658 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23659 VULKAN_HPP_ASSERT( d.vkCmdCudaLaunchKernelNV && "Function <vkCmdCudaLaunchKernelNV> requires <VK_NV_cuda_kernel_launch>" );
23660 # endif
23661
23662 d.vkCmdCudaLaunchKernelNV( m_commandBuffer, reinterpret_cast<VkCudaLaunchInfoNV const *>( &launchInfo ) );
23663 }
23664 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23665 #endif /*VK_ENABLE_BETA_EXTENSIONS*/
23666
23667 //=== VK_QCOM_tile_shading ===
23668
23669 // wrapper function for command vkCmdDispatchTileQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchTileQCOM.html
23670 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchTileQCOM ), bool>::type>
23671 VULKAN_HPP_INLINE void CommandBuffer::dispatchTileQCOM( DispatchTileInfoQCOM const * pDispatchTileInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23672 {
23673 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23674 d.vkCmdDispatchTileQCOM( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDispatchTileInfoQCOM const *>( pDispatchTileInfo ) );
23675 }
23676
23677 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23678 // wrapper function for command vkCmdDispatchTileQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchTileQCOM.html
23679 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchTileQCOM ), bool>::type>
23680 VULKAN_HPP_INLINE void CommandBuffer::dispatchTileQCOM( DispatchTileInfoQCOM const & dispatchTileInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23681 {
23682 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23683 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23684 VULKAN_HPP_ASSERT( d.vkCmdDispatchTileQCOM && "Function <vkCmdDispatchTileQCOM> requires <VK_QCOM_tile_shading>" );
23685 # endif
23686
23687 d.vkCmdDispatchTileQCOM( m_commandBuffer, reinterpret_cast<VkDispatchTileInfoQCOM const *>( &dispatchTileInfo ) );
23688 }
23689 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23690
23691 // wrapper function for command vkCmdBeginPerTileExecutionQCOM, see
23692 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginPerTileExecutionQCOM.html
23693 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginPerTileExecutionQCOM ), bool>::type>
23694 VULKAN_HPP_INLINE void CommandBuffer::beginPerTileExecutionQCOM( PerTileBeginInfoQCOM const * pPerTileBeginInfo, Dispatch const & d )
23695 const VULKAN_HPP_NOEXCEPT
23696 {
23697 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23698 d.vkCmdBeginPerTileExecutionQCOM( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkPerTileBeginInfoQCOM const *>( pPerTileBeginInfo ) );
23699 }
23700
23701 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23702 // wrapper function for command vkCmdBeginPerTileExecutionQCOM, see
23703 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginPerTileExecutionQCOM.html
23704 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginPerTileExecutionQCOM ), bool>::type>
23705 VULKAN_HPP_INLINE void CommandBuffer::beginPerTileExecutionQCOM( PerTileBeginInfoQCOM const & perTileBeginInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23706 {
23707 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23708 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23709 VULKAN_HPP_ASSERT( d.vkCmdBeginPerTileExecutionQCOM && "Function <vkCmdBeginPerTileExecutionQCOM> requires <VK_QCOM_tile_shading>" );
23710 # endif
23711
23712 d.vkCmdBeginPerTileExecutionQCOM( m_commandBuffer, reinterpret_cast<VkPerTileBeginInfoQCOM const *>( &perTileBeginInfo ) );
23713 }
23714 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23715
23716 // wrapper function for command vkCmdEndPerTileExecutionQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndPerTileExecutionQCOM.html
23717 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndPerTileExecutionQCOM ), bool>::type>
23718 VULKAN_HPP_INLINE void CommandBuffer::endPerTileExecutionQCOM( PerTileEndInfoQCOM const * pPerTileEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23719 {
23720 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23721 d.vkCmdEndPerTileExecutionQCOM( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkPerTileEndInfoQCOM const *>( pPerTileEndInfo ) );
23722 }
23723
23724 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23725 // wrapper function for command vkCmdEndPerTileExecutionQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndPerTileExecutionQCOM.html
23726 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndPerTileExecutionQCOM ), bool>::type>
23727 VULKAN_HPP_INLINE void CommandBuffer::endPerTileExecutionQCOM( PerTileEndInfoQCOM const & perTileEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23728 {
23729 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23730 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23731 VULKAN_HPP_ASSERT( d.vkCmdEndPerTileExecutionQCOM && "Function <vkCmdEndPerTileExecutionQCOM> requires <VK_QCOM_tile_shading>" );
23732 # endif
23733
23734 d.vkCmdEndPerTileExecutionQCOM( m_commandBuffer, reinterpret_cast<VkPerTileEndInfoQCOM const *>( &perTileEndInfo ) );
23735 }
23736 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23737
23738 #if defined( VK_USE_PLATFORM_METAL_EXT )
23739 //=== VK_EXT_metal_objects ===
23740
23741 // wrapper function for command vkExportMetalObjectsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkExportMetalObjectsEXT.html
23742 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkExportMetalObjectsEXT ), bool>::type>
23743 VULKAN_HPP_INLINE void Device::exportMetalObjectsEXT( ExportMetalObjectsInfoEXT * pMetalObjectsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23744 {
23745 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23746 d.vkExportMetalObjectsEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkExportMetalObjectsInfoEXT *>( pMetalObjectsInfo ) );
23747 }
23748
23749 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23750 // wrapper function for command vkExportMetalObjectsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkExportMetalObjectsEXT.html
23751 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkExportMetalObjectsEXT ), bool>::type>
23752 VULKAN_HPP_INLINE void Device::exportMetalObjectsEXT( ExportMetalObjectsInfoEXT & metalObjectsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23753 {
23754 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23755 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23756 VULKAN_HPP_ASSERT( d.vkExportMetalObjectsEXT && "Function <vkExportMetalObjectsEXT> requires <VK_EXT_metal_objects>" );
23757 # endif
23758
23759 d.vkExportMetalObjectsEXT( m_device, reinterpret_cast<VkExportMetalObjectsInfoEXT *>( &metalObjectsInfo ) );
23760 }
23761 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23762 #endif /*VK_USE_PLATFORM_METAL_EXT*/
23763
23764 //=== VK_KHR_synchronization2 ===
23765
23766 // wrapper function for command vkCmdSetEvent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent2KHR.html
23767 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetEvent2KHR ), bool>::type>
23768 VULKAN_HPP_INLINE void CommandBuffer::setEvent2KHR( Event event, DependencyInfo const * pDependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23769 {
23770 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23771 d.vkCmdSetEvent2KHR(
23772 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), reinterpret_cast<VkDependencyInfo const *>( pDependencyInfo ) );
23773 }
23774
23775 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23776 // wrapper function for command vkCmdSetEvent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent2KHR.html
23777 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetEvent2KHR ), bool>::type>
23778 VULKAN_HPP_INLINE void CommandBuffer::setEvent2KHR( Event event, DependencyInfo const & dependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23779 {
23780 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23781 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23782 VULKAN_HPP_ASSERT( d.vkCmdSetEvent2KHR && "Function <vkCmdSetEvent2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
23783 # endif
23784
23785 d.vkCmdSetEvent2KHR( m_commandBuffer, static_cast<VkEvent>( event ), reinterpret_cast<VkDependencyInfo const *>( &dependencyInfo ) );
23786 }
23787 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23788
23789 // wrapper function for command vkCmdResetEvent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetEvent2KHR.html
23790 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResetEvent2KHR ), bool>::type>
23791 VULKAN_HPP_INLINE void CommandBuffer::resetEvent2KHR( Event event, PipelineStageFlags2 stageMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23792 {
23793 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23794 d.vkCmdResetEvent2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), static_cast<VkPipelineStageFlags2>( stageMask ) );
23795 }
23796
23797 // wrapper function for command vkCmdWaitEvents2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents2KHR.html
23798 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWaitEvents2KHR ), bool>::type>
23799 VULKAN_HPP_INLINE void CommandBuffer::waitEvents2KHR(
23800 uint32_t eventCount, Event const * pEvents, DependencyInfo const * pDependencyInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23801 {
23802 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23803 d.vkCmdWaitEvents2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
23804 eventCount,
23805 reinterpret_cast<VkEvent const *>( pEvents ),
23806 reinterpret_cast<VkDependencyInfo const *>( pDependencyInfos ) );
23807 }
23808
23809 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23810 // wrapper function for command vkCmdWaitEvents2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents2KHR.html
23811 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWaitEvents2KHR ), bool>::type>
23812 VULKAN_HPP_INLINE void CommandBuffer::waitEvents2KHR(
23813 ArrayProxy<Event const> const & events, ArrayProxy<DependencyInfo const> const & dependencyInfos, Dispatch const & d )
23814 const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
23815 {
23816 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23817 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23818 VULKAN_HPP_ASSERT( d.vkCmdWaitEvents2KHR && "Function <vkCmdWaitEvents2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
23819 # endif
23820 # ifdef VULKAN_HPP_NO_EXCEPTIONS
23821 VULKAN_HPP_ASSERT( events.size() == dependencyInfos.size() );
23822 # else
23823 if ( events.size() != dependencyInfos.size() )
23824 {
23825 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::waitEvents2KHR: events.size() != dependencyInfos.size()" );
23826 }
23827 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
23828
23829 d.vkCmdWaitEvents2KHR( m_commandBuffer,
23830 events.size(),
23831 reinterpret_cast<VkEvent const *>( events.data() ),
23832 reinterpret_cast<VkDependencyInfo const *>( dependencyInfos.data() ) );
23833 }
23834 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23835
23836 // wrapper function for command vkCmdPipelineBarrier2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier2KHR.html
23837 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPipelineBarrier2KHR ), bool>::type>
23838 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier2KHR( DependencyInfo const * pDependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23839 {
23840 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23841 d.vkCmdPipelineBarrier2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDependencyInfo const *>( pDependencyInfo ) );
23842 }
23843
23844 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23845 // wrapper function for command vkCmdPipelineBarrier2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier2KHR.html
23846 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPipelineBarrier2KHR ), bool>::type>
23847 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier2KHR( DependencyInfo const & dependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23848 {
23849 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23850 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23851 VULKAN_HPP_ASSERT( d.vkCmdPipelineBarrier2KHR && "Function <vkCmdPipelineBarrier2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
23852 # endif
23853
23854 d.vkCmdPipelineBarrier2KHR( m_commandBuffer, reinterpret_cast<VkDependencyInfo const *>( &dependencyInfo ) );
23855 }
23856 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23857
23858 // wrapper function for command vkCmdWriteTimestamp2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteTimestamp2KHR.html
23859 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteTimestamp2KHR ), bool>::type>
23860 VULKAN_HPP_INLINE void CommandBuffer::writeTimestamp2KHR( PipelineStageFlags2 stage, QueryPool queryPool, uint32_t query, Dispatch const & d )
23861 const VULKAN_HPP_NOEXCEPT
23862 {
23863 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23864 d.vkCmdWriteTimestamp2KHR(
23865 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineStageFlags2>( stage ), static_cast<VkQueryPool>( queryPool ), query );
23866 }
23867
23868 // wrapper function for command vkQueueSubmit2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2KHR.html
23869 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSubmit2KHR ), bool>::type>
23870 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::submit2KHR( uint32_t submitCount, SubmitInfo2 const * pSubmits, Fence fence, Dispatch const & d )
23871 const VULKAN_HPP_NOEXCEPT
23872 {
23873 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23874 return static_cast<Result>(
23875 d.vkQueueSubmit2KHR( static_cast<VkQueue>( m_queue ), submitCount, reinterpret_cast<VkSubmitInfo2 const *>( pSubmits ), static_cast<VkFence>( fence ) ) );
23876 }
23877
23878 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23879 // wrapper function for command vkQueueSubmit2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2KHR.html
23880 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSubmit2KHR ), bool>::type>
23881 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Queue::submit2KHR(
23882 ArrayProxy<SubmitInfo2 const> const & submits, Fence fence, Dispatch const & d ) const
23883 {
23884 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23885 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23886 VULKAN_HPP_ASSERT( d.vkQueueSubmit2KHR && "Function <vkQueueSubmit2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
23887 # endif
23888
23889 Result result = static_cast<Result>(
23890 d.vkQueueSubmit2KHR( m_queue, submits.size(), reinterpret_cast<VkSubmitInfo2 const *>( submits.data() ), static_cast<VkFence>( fence ) ) );
23891 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::submit2KHR" );
23892
23893 return detail::createResultValueType( result );
23894 }
23895 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23896
23897 //=== VK_EXT_descriptor_buffer ===
23898
23899 // wrapper function for command vkGetDescriptorSetLayoutSizeEXT, see
23900 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSizeEXT.html
23901 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSizeEXT ), bool>::type>
23902 VULKAN_HPP_INLINE void Device::getDescriptorSetLayoutSizeEXT( DescriptorSetLayout layout, DeviceSize * pLayoutSizeInBytes, Dispatch const & d )
23903 const VULKAN_HPP_NOEXCEPT
23904 {
23905 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23906 d.vkGetDescriptorSetLayoutSizeEXT(
23907 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorSetLayout>( layout ), reinterpret_cast<VkDeviceSize *>( pLayoutSizeInBytes ) );
23908 }
23909
23910 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23911 // wrapper function for command vkGetDescriptorSetLayoutSizeEXT, see
23912 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSizeEXT.html
23913 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSizeEXT ), bool>::type>
23914 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceSize Device::getDescriptorSetLayoutSizeEXT( DescriptorSetLayout layout, Dispatch const & d )
23915 const VULKAN_HPP_NOEXCEPT
23916 {
23917 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23918 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23919 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutSizeEXT && "Function <vkGetDescriptorSetLayoutSizeEXT> requires <VK_EXT_descriptor_buffer>" );
23920 # endif
23921
23922 DeviceSize layoutSizeInBytes;
23923 d.vkGetDescriptorSetLayoutSizeEXT( m_device, static_cast<VkDescriptorSetLayout>( layout ), reinterpret_cast<VkDeviceSize *>( &layoutSizeInBytes ) );
23924
23925 return layoutSizeInBytes;
23926 }
23927 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23928
23929 // wrapper function for command vkGetDescriptorSetLayoutBindingOffsetEXT, see
23930 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutBindingOffsetEXT.html
23931 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutBindingOffsetEXT ), bool>::type>
23932 VULKAN_HPP_INLINE void Device::getDescriptorSetLayoutBindingOffsetEXT(
23933 DescriptorSetLayout layout, uint32_t binding, DeviceSize * pOffset, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23934 {
23935 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23936 d.vkGetDescriptorSetLayoutBindingOffsetEXT(
23937 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorSetLayout>( layout ), binding, reinterpret_cast<VkDeviceSize *>( pOffset ) );
23938 }
23939
23940 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23941 // wrapper function for command vkGetDescriptorSetLayoutBindingOffsetEXT, see
23942 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutBindingOffsetEXT.html
23943 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutBindingOffsetEXT ), bool>::type>
23944 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceSize Device::getDescriptorSetLayoutBindingOffsetEXT(
23945 DescriptorSetLayout layout, uint32_t binding, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23946 {
23947 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23948 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23949 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutBindingOffsetEXT &&
23950 "Function <vkGetDescriptorSetLayoutBindingOffsetEXT> requires <VK_EXT_descriptor_buffer>" );
23951 # endif
23952
23953 DeviceSize offset;
23954 d.vkGetDescriptorSetLayoutBindingOffsetEXT( m_device, static_cast<VkDescriptorSetLayout>( layout ), binding, reinterpret_cast<VkDeviceSize *>( &offset ) );
23955
23956 return offset;
23957 }
23958 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23959
23960 // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html
23961 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorEXT ), bool>::type>
23962 VULKAN_HPP_INLINE void Device::getDescriptorEXT( DescriptorGetInfoEXT const * pDescriptorInfo, size_t dataSize, void * pDescriptor, Dispatch const & d )
23963 const VULKAN_HPP_NOEXCEPT
23964 {
23965 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23966 d.vkGetDescriptorEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkDescriptorGetInfoEXT const *>( pDescriptorInfo ), dataSize, pDescriptor );
23967 }
23968
23969 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23970 // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html
23971 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorEXT ), bool>::type>
23972 VULKAN_HPP_INLINE void Device::getDescriptorEXT( DescriptorGetInfoEXT const & descriptorInfo, size_t dataSize, void * pDescriptor, Dispatch const & d )
23973 const VULKAN_HPP_NOEXCEPT
23974 {
23975 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23976 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23977 VULKAN_HPP_ASSERT( d.vkGetDescriptorEXT && "Function <vkGetDescriptorEXT> requires <VK_EXT_descriptor_buffer>" );
23978 # endif
23979
23980 d.vkGetDescriptorEXT( m_device, reinterpret_cast<VkDescriptorGetInfoEXT const *>( &descriptorInfo ), dataSize, pDescriptor );
23981 }
23982
23983 // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html
23984 template <typename DescriptorType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorEXT ), bool>::type>
23985 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DescriptorType Device::getDescriptorEXT( DescriptorGetInfoEXT const & descriptorInfo, Dispatch const & d )
23986 const VULKAN_HPP_NOEXCEPT
23987 {
23988 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23989 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23990 VULKAN_HPP_ASSERT( d.vkGetDescriptorEXT && "Function <vkGetDescriptorEXT> requires <VK_EXT_descriptor_buffer>" );
23991 # endif
23992
23993 DescriptorType descriptor;
23994 d.vkGetDescriptorEXT(
23995 m_device, reinterpret_cast<VkDescriptorGetInfoEXT const *>( &descriptorInfo ), sizeof( DescriptorType ), reinterpret_cast<void *>( &descriptor ) );
23996
23997 return descriptor;
23998 }
23999 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24000
24001 // wrapper function for command vkCmdBindDescriptorBuffersEXT, see
24002 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBuffersEXT.html
24003 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorBuffersEXT ), bool>::type>
24004 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorBuffersEXT(
24005 uint32_t bufferCount, DescriptorBufferBindingInfoEXT const * pBindingInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24006 {
24007 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24008 d.vkCmdBindDescriptorBuffersEXT(
24009 static_cast<VkCommandBuffer>( m_commandBuffer ), bufferCount, reinterpret_cast<VkDescriptorBufferBindingInfoEXT const *>( pBindingInfos ) );
24010 }
24011
24012 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24013 // wrapper function for command vkCmdBindDescriptorBuffersEXT, see
24014 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBuffersEXT.html
24015 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorBuffersEXT ), bool>::type>
24016 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorBuffersEXT( ArrayProxy<DescriptorBufferBindingInfoEXT const> const & bindingInfos, Dispatch const & d )
24017 const VULKAN_HPP_NOEXCEPT
24018 {
24019 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24020 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24021 VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorBuffersEXT && "Function <vkCmdBindDescriptorBuffersEXT> requires <VK_EXT_descriptor_buffer>" );
24022 # endif
24023
24024 d.vkCmdBindDescriptorBuffersEXT( m_commandBuffer, bindingInfos.size(), reinterpret_cast<VkDescriptorBufferBindingInfoEXT const *>( bindingInfos.data() ) );
24025 }
24026 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24027
24028 // wrapper function for command vkCmdSetDescriptorBufferOffsetsEXT, see
24029 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDescriptorBufferOffsetsEXT.html
24030 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDescriptorBufferOffsetsEXT ), bool>::type>
24031 VULKAN_HPP_INLINE void CommandBuffer::setDescriptorBufferOffsetsEXT( PipelineBindPoint pipelineBindPoint,
24032 PipelineLayout layout,
24033 uint32_t firstSet,
24034 uint32_t setCount,
24035 uint32_t const * pBufferIndices,
24036 DeviceSize const * pOffsets,
24037 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24038 {
24039 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24040 d.vkCmdSetDescriptorBufferOffsetsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
24041 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
24042 static_cast<VkPipelineLayout>( layout ),
24043 firstSet,
24044 setCount,
24045 pBufferIndices,
24046 reinterpret_cast<VkDeviceSize const *>( pOffsets ) );
24047 }
24048
24049 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24050 // wrapper function for command vkCmdSetDescriptorBufferOffsetsEXT, see
24051 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDescriptorBufferOffsetsEXT.html
24052 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDescriptorBufferOffsetsEXT ), bool>::type>
24053 VULKAN_HPP_INLINE void CommandBuffer::setDescriptorBufferOffsetsEXT( PipelineBindPoint pipelineBindPoint,
24054 PipelineLayout layout,
24055 uint32_t firstSet,
24056 ArrayProxy<uint32_t const> const & bufferIndices,
24057 ArrayProxy<DeviceSize const> const & offsets,
24058 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
24059 {
24060 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24061 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24062 VULKAN_HPP_ASSERT( d.vkCmdSetDescriptorBufferOffsetsEXT && "Function <vkCmdSetDescriptorBufferOffsetsEXT> requires <VK_EXT_descriptor_buffer>" );
24063 # endif
24064 # ifdef VULKAN_HPP_NO_EXCEPTIONS
24065 VULKAN_HPP_ASSERT( bufferIndices.size() == offsets.size() );
24066 # else
24067 if ( bufferIndices.size() != offsets.size() )
24068 {
24069 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setDescriptorBufferOffsetsEXT: bufferIndices.size() != offsets.size()" );
24070 }
24071 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
24072
24073 d.vkCmdSetDescriptorBufferOffsetsEXT( m_commandBuffer,
24074 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
24075 static_cast<VkPipelineLayout>( layout ),
24076 firstSet,
24077 bufferIndices.size(),
24078 bufferIndices.data(),
24079 reinterpret_cast<VkDeviceSize const *>( offsets.data() ) );
24080 }
24081 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24082
24083 // wrapper function for command vkCmdBindDescriptorBufferEmbeddedSamplersEXT, see
24084 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBufferEmbeddedSamplersEXT.html
24085 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorBufferEmbeddedSamplersEXT ), bool>::type>
24086 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorBufferEmbeddedSamplersEXT(
24087 PipelineBindPoint pipelineBindPoint, PipelineLayout layout, uint32_t set, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24088 {
24089 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24090 d.vkCmdBindDescriptorBufferEmbeddedSamplersEXT(
24091 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipelineLayout>( layout ), set );
24092 }
24093
24094 // wrapper function for command vkGetBufferOpaqueCaptureDescriptorDataEXT, see
24095 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureDescriptorDataEXT.html
24096 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferOpaqueCaptureDescriptorDataEXT ), bool>::type>
24097 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getBufferOpaqueCaptureDescriptorDataEXT(
24098 BufferCaptureDescriptorDataInfoEXT const * pInfo, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24099 {
24100 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24101 return static_cast<Result>( d.vkGetBufferOpaqueCaptureDescriptorDataEXT(
24102 static_cast<VkDevice>( m_device ), reinterpret_cast<VkBufferCaptureDescriptorDataInfoEXT const *>( pInfo ), pData ) );
24103 }
24104
24105 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24106 // wrapper function for command vkGetBufferOpaqueCaptureDescriptorDataEXT, see
24107 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureDescriptorDataEXT.html
24108 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferOpaqueCaptureDescriptorDataEXT ), bool>::type>
24109 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::getBufferOpaqueCaptureDescriptorDataEXT(
24110 BufferCaptureDescriptorDataInfoEXT const & info, Dispatch const & d ) const
24111 {
24112 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24113 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24114 VULKAN_HPP_ASSERT( d.vkGetBufferOpaqueCaptureDescriptorDataEXT &&
24115 "Function <vkGetBufferOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
24116 # endif
24117
24118 DataType data;
24119 Result result = static_cast<Result>(
24120 d.vkGetBufferOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast<VkBufferCaptureDescriptorDataInfoEXT const *>( &info ), &data ) );
24121 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getBufferOpaqueCaptureDescriptorDataEXT" );
24122
24123 return detail::createResultValueType( result, std::move( data ) );
24124 }
24125 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24126
24127 // wrapper function for command vkGetImageOpaqueCaptureDescriptorDataEXT, see
24128 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDescriptorDataEXT.html
24129 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageOpaqueCaptureDescriptorDataEXT ), bool>::type>
24130 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getImageOpaqueCaptureDescriptorDataEXT(
24131 ImageCaptureDescriptorDataInfoEXT const * pInfo, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24132 {
24133 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24134 return static_cast<Result>( d.vkGetImageOpaqueCaptureDescriptorDataEXT(
24135 static_cast<VkDevice>( m_device ), reinterpret_cast<VkImageCaptureDescriptorDataInfoEXT const *>( pInfo ), pData ) );
24136 }
24137
24138 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24139 // wrapper function for command vkGetImageOpaqueCaptureDescriptorDataEXT, see
24140 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDescriptorDataEXT.html
24141 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageOpaqueCaptureDescriptorDataEXT ), bool>::type>
24142 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::getImageOpaqueCaptureDescriptorDataEXT(
24143 ImageCaptureDescriptorDataInfoEXT const & info, Dispatch const & d ) const
24144 {
24145 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24146 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24147 VULKAN_HPP_ASSERT( d.vkGetImageOpaqueCaptureDescriptorDataEXT &&
24148 "Function <vkGetImageOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
24149 # endif
24150
24151 DataType data;
24152 Result result = static_cast<Result>(
24153 d.vkGetImageOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast<VkImageCaptureDescriptorDataInfoEXT const *>( &info ), &data ) );
24154 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDescriptorDataEXT" );
24155
24156 return detail::createResultValueType( result, std::move( data ) );
24157 }
24158 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24159
24160 // wrapper function for command vkGetImageViewOpaqueCaptureDescriptorDataEXT, see
24161 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewOpaqueCaptureDescriptorDataEXT.html
24162 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewOpaqueCaptureDescriptorDataEXT ), bool>::type>
24163 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getImageViewOpaqueCaptureDescriptorDataEXT(
24164 ImageViewCaptureDescriptorDataInfoEXT const * pInfo, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24165 {
24166 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24167 return static_cast<Result>( d.vkGetImageViewOpaqueCaptureDescriptorDataEXT(
24168 static_cast<VkDevice>( m_device ), reinterpret_cast<VkImageViewCaptureDescriptorDataInfoEXT const *>( pInfo ), pData ) );
24169 }
24170
24171 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24172 // wrapper function for command vkGetImageViewOpaqueCaptureDescriptorDataEXT, see
24173 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewOpaqueCaptureDescriptorDataEXT.html
24174 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewOpaqueCaptureDescriptorDataEXT ), bool>::type>
24175 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::getImageViewOpaqueCaptureDescriptorDataEXT(
24176 ImageViewCaptureDescriptorDataInfoEXT const & info, Dispatch const & d ) const
24177 {
24178 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24179 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24180 VULKAN_HPP_ASSERT( d.vkGetImageViewOpaqueCaptureDescriptorDataEXT &&
24181 "Function <vkGetImageViewOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
24182 # endif
24183
24184 DataType data;
24185 Result result = static_cast<Result>(
24186 d.vkGetImageViewOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast<VkImageViewCaptureDescriptorDataInfoEXT const *>( &info ), &data ) );
24187 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageViewOpaqueCaptureDescriptorDataEXT" );
24188
24189 return detail::createResultValueType( result, std::move( data ) );
24190 }
24191 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24192
24193 // wrapper function for command vkGetSamplerOpaqueCaptureDescriptorDataEXT, see
24194 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSamplerOpaqueCaptureDescriptorDataEXT.html
24195 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSamplerOpaqueCaptureDescriptorDataEXT ), bool>::type>
24196 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSamplerOpaqueCaptureDescriptorDataEXT(
24197 SamplerCaptureDescriptorDataInfoEXT const * pInfo, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24198 {
24199 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24200 return static_cast<Result>( d.vkGetSamplerOpaqueCaptureDescriptorDataEXT(
24201 static_cast<VkDevice>( m_device ), reinterpret_cast<VkSamplerCaptureDescriptorDataInfoEXT const *>( pInfo ), pData ) );
24202 }
24203
24204 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24205 // wrapper function for command vkGetSamplerOpaqueCaptureDescriptorDataEXT, see
24206 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSamplerOpaqueCaptureDescriptorDataEXT.html
24207 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSamplerOpaqueCaptureDescriptorDataEXT ), bool>::type>
24208 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::getSamplerOpaqueCaptureDescriptorDataEXT(
24209 SamplerCaptureDescriptorDataInfoEXT const & info, Dispatch const & d ) const
24210 {
24211 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24212 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24213 VULKAN_HPP_ASSERT( d.vkGetSamplerOpaqueCaptureDescriptorDataEXT &&
24214 "Function <vkGetSamplerOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
24215 # endif
24216
24217 DataType data;
24218 Result result = static_cast<Result>(
24219 d.vkGetSamplerOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast<VkSamplerCaptureDescriptorDataInfoEXT const *>( &info ), &data ) );
24220 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSamplerOpaqueCaptureDescriptorDataEXT" );
24221
24222 return detail::createResultValueType( result, std::move( data ) );
24223 }
24224 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24225
24226 // wrapper function for command vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT, see
24227 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT.html
24228 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT ), bool>::type>
24229 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getAccelerationStructureOpaqueCaptureDescriptorDataEXT(
24230 AccelerationStructureCaptureDescriptorDataInfoEXT const * pInfo, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24231 {
24232 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24233 return static_cast<Result>( d.vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT(
24234 static_cast<VkDevice>( m_device ), reinterpret_cast<VkAccelerationStructureCaptureDescriptorDataInfoEXT const *>( pInfo ), pData ) );
24235 }
24236
24237 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24238 // wrapper function for command vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT, see
24239 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT.html
24240 template <typename DataType,
24241 typename Dispatch,
24242 typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT ), bool>::type>
24243 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::getAccelerationStructureOpaqueCaptureDescriptorDataEXT(
24244 AccelerationStructureCaptureDescriptorDataInfoEXT const & info, Dispatch const & d ) const
24245 {
24246 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24247 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24248 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT &&
24249 "Function <vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
24250 # endif
24251
24252 DataType data;
24253 Result result = static_cast<Result>( d.vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT(
24254 m_device, reinterpret_cast<VkAccelerationStructureCaptureDescriptorDataInfoEXT const *>( &info ), &data ) );
24255 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureOpaqueCaptureDescriptorDataEXT" );
24256
24257 return detail::createResultValueType( result, std::move( data ) );
24258 }
24259 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24260
24261 //=== VK_KHR_device_address_commands ===
24262
24263 // wrapper function for command vkCmdBindIndexBuffer3KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer3KHR.html
24264 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindIndexBuffer3KHR ), bool>::type>
24265 VULKAN_HPP_INLINE void CommandBuffer::bindIndexBuffer3KHR( BindIndexBuffer3InfoKHR const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24266 {
24267 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24268 d.vkCmdBindIndexBuffer3KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkBindIndexBuffer3InfoKHR const *>( pInfo ) );
24269 }
24270
24271 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24272 // wrapper function for command vkCmdBindIndexBuffer3KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer3KHR.html
24273 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindIndexBuffer3KHR ), bool>::type>
24274 VULKAN_HPP_INLINE void CommandBuffer::bindIndexBuffer3KHR( BindIndexBuffer3InfoKHR const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24275 {
24276 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24277 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24278 VULKAN_HPP_ASSERT( d.vkCmdBindIndexBuffer3KHR && "Function <vkCmdBindIndexBuffer3KHR> requires <VK_KHR_device_address_commands>" );
24279 # endif
24280
24281 d.vkCmdBindIndexBuffer3KHR( m_commandBuffer, reinterpret_cast<VkBindIndexBuffer3InfoKHR const *>( &info ) );
24282 }
24283 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24284
24285 // wrapper function for command vkCmdBindVertexBuffers3KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers3KHR.html
24286 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers3KHR ), bool>::type>
24287 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers3KHR(
24288 uint32_t firstBinding, uint32_t bindingCount, BindVertexBuffer3InfoKHR const * pBindingInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24289 {
24290 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24291 d.vkCmdBindVertexBuffers3KHR(
24292 static_cast<VkCommandBuffer>( m_commandBuffer ), firstBinding, bindingCount, reinterpret_cast<VkBindVertexBuffer3InfoKHR const *>( pBindingInfos ) );
24293 }
24294
24295 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24296 // wrapper function for command vkCmdBindVertexBuffers3KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers3KHR.html
24297 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers3KHR ), bool>::type>
24298 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers3KHR(
24299 uint32_t firstBinding, ArrayProxy<BindVertexBuffer3InfoKHR const> const & bindingInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24300 {
24301 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24302 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24303 VULKAN_HPP_ASSERT( d.vkCmdBindVertexBuffers3KHR && "Function <vkCmdBindVertexBuffers3KHR> requires <VK_KHR_device_address_commands>" );
24304 # endif
24305
24306 d.vkCmdBindVertexBuffers3KHR(
24307 m_commandBuffer, firstBinding, bindingInfos.size(), reinterpret_cast<VkBindVertexBuffer3InfoKHR const *>( bindingInfos.data() ) );
24308 }
24309 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24310
24311 // wrapper function for command vkCmdDrawIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirect2KHR.html
24312 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirect2KHR ), bool>::type>
24313 VULKAN_HPP_INLINE void CommandBuffer::drawIndirect2KHR( DrawIndirect2InfoKHR const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24314 {
24315 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24316 d.vkCmdDrawIndirect2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDrawIndirect2InfoKHR const *>( pInfo ) );
24317 }
24318
24319 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24320 // wrapper function for command vkCmdDrawIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirect2KHR.html
24321 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirect2KHR ), bool>::type>
24322 VULKAN_HPP_INLINE void CommandBuffer::drawIndirect2KHR( DrawIndirect2InfoKHR const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24323 {
24324 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24325 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24326 VULKAN_HPP_ASSERT( d.vkCmdDrawIndirect2KHR && "Function <vkCmdDrawIndirect2KHR> requires <VK_KHR_device_address_commands>" );
24327 # endif
24328
24329 d.vkCmdDrawIndirect2KHR( m_commandBuffer, reinterpret_cast<VkDrawIndirect2InfoKHR const *>( &info ) );
24330 }
24331 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24332
24333 // wrapper function for command vkCmdDrawIndexedIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirect2KHR.html
24334 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexedIndirect2KHR ), bool>::type>
24335 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirect2KHR( DrawIndirect2InfoKHR const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24336 {
24337 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24338 d.vkCmdDrawIndexedIndirect2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDrawIndirect2InfoKHR const *>( pInfo ) );
24339 }
24340
24341 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24342 // wrapper function for command vkCmdDrawIndexedIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirect2KHR.html
24343 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexedIndirect2KHR ), bool>::type>
24344 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirect2KHR( DrawIndirect2InfoKHR const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24345 {
24346 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24347 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24348 VULKAN_HPP_ASSERT( d.vkCmdDrawIndexedIndirect2KHR && "Function <vkCmdDrawIndexedIndirect2KHR> requires <VK_KHR_device_address_commands>" );
24349 # endif
24350
24351 d.vkCmdDrawIndexedIndirect2KHR( m_commandBuffer, reinterpret_cast<VkDrawIndirect2InfoKHR const *>( &info ) );
24352 }
24353 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24354
24355 // wrapper function for command vkCmdDispatchIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchIndirect2KHR.html
24356 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchIndirect2KHR ), bool>::type>
24357 VULKAN_HPP_INLINE void CommandBuffer::dispatchIndirect2KHR( DispatchIndirect2InfoKHR const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24358 {
24359 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24360 d.vkCmdDispatchIndirect2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDispatchIndirect2InfoKHR const *>( pInfo ) );
24361 }
24362
24363 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24364 // wrapper function for command vkCmdDispatchIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchIndirect2KHR.html
24365 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchIndirect2KHR ), bool>::type>
24366 VULKAN_HPP_INLINE void CommandBuffer::dispatchIndirect2KHR( DispatchIndirect2InfoKHR const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24367 {
24368 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24369 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24370 VULKAN_HPP_ASSERT( d.vkCmdDispatchIndirect2KHR && "Function <vkCmdDispatchIndirect2KHR> requires <VK_KHR_device_address_commands>" );
24371 # endif
24372
24373 d.vkCmdDispatchIndirect2KHR( m_commandBuffer, reinterpret_cast<VkDispatchIndirect2InfoKHR const *>( &info ) );
24374 }
24375 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24376
24377 // wrapper function for command vkCmdCopyMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryKHR.html
24378 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryKHR ), bool>::type>
24379 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryKHR( CopyDeviceMemoryInfoKHR const * pCopyMemoryInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24380 {
24381 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24382 d.vkCmdCopyMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyDeviceMemoryInfoKHR const *>( pCopyMemoryInfo ) );
24383 }
24384
24385 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24386 // wrapper function for command vkCmdCopyMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryKHR.html
24387 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryKHR ), bool>::type>
24388 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryKHR( Optional<CopyDeviceMemoryInfoKHR const> copyMemoryInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24389 {
24390 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24391 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24392 VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryKHR && "Function <vkCmdCopyMemoryKHR> requires <VK_KHR_device_address_commands>" );
24393 # endif
24394
24395 d.vkCmdCopyMemoryKHR( m_commandBuffer, reinterpret_cast<VkCopyDeviceMemoryInfoKHR const *>( copyMemoryInfo.get() ) );
24396 }
24397 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24398
24399 // wrapper function for command vkCmdCopyMemoryToImageKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageKHR.html
24400 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToImageKHR ), bool>::type>
24401 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToImageKHR( CopyDeviceMemoryImageInfoKHR const * pCopyMemoryInfo, Dispatch const & d )
24402 const VULKAN_HPP_NOEXCEPT
24403 {
24404 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24405 d.vkCmdCopyMemoryToImageKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyDeviceMemoryImageInfoKHR const *>( pCopyMemoryInfo ) );
24406 }
24407
24408 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24409 // wrapper function for command vkCmdCopyMemoryToImageKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageKHR.html
24410 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToImageKHR ), bool>::type>
24411 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToImageKHR( Optional<CopyDeviceMemoryImageInfoKHR const> copyMemoryInfo, Dispatch const & d )
24412 const VULKAN_HPP_NOEXCEPT
24413 {
24414 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24415 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24416 VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToImageKHR && "Function <vkCmdCopyMemoryToImageKHR> requires <VK_KHR_device_address_commands>" );
24417 # endif
24418
24419 d.vkCmdCopyMemoryToImageKHR( m_commandBuffer, reinterpret_cast<VkCopyDeviceMemoryImageInfoKHR const *>( copyMemoryInfo.get() ) );
24420 }
24421 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24422
24423 // wrapper function for command vkCmdCopyImageToMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToMemoryKHR.html
24424 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToMemoryKHR ), bool>::type>
24425 VULKAN_HPP_INLINE void CommandBuffer::copyImageToMemoryKHR( CopyDeviceMemoryImageInfoKHR const * pCopyMemoryInfo, Dispatch const & d )
24426 const VULKAN_HPP_NOEXCEPT
24427 {
24428 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24429 d.vkCmdCopyImageToMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyDeviceMemoryImageInfoKHR const *>( pCopyMemoryInfo ) );
24430 }
24431
24432 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24433 // wrapper function for command vkCmdCopyImageToMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToMemoryKHR.html
24434 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToMemoryKHR ), bool>::type>
24435 VULKAN_HPP_INLINE void CommandBuffer::copyImageToMemoryKHR( Optional<CopyDeviceMemoryImageInfoKHR const> copyMemoryInfo, Dispatch const & d )
24436 const VULKAN_HPP_NOEXCEPT
24437 {
24438 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24439 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24440 VULKAN_HPP_ASSERT( d.vkCmdCopyImageToMemoryKHR && "Function <vkCmdCopyImageToMemoryKHR> requires <VK_KHR_device_address_commands>" );
24441 # endif
24442
24443 d.vkCmdCopyImageToMemoryKHR( m_commandBuffer, reinterpret_cast<VkCopyDeviceMemoryImageInfoKHR const *>( copyMemoryInfo.get() ) );
24444 }
24445 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24446
24447 // wrapper function for command vkCmdUpdateMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateMemoryKHR.html
24448 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdUpdateMemoryKHR ), bool>::type>
24449 VULKAN_HPP_INLINE void CommandBuffer::updateMemoryKHR(
24450 DeviceAddressRangeKHR const * pDstRange, AddressCommandFlagsKHR dstFlags, DeviceSize dataSize, void const * pData, Dispatch const & d )
24451 const VULKAN_HPP_NOEXCEPT
24452 {
24453 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24454 d.vkCmdUpdateMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
24455 reinterpret_cast<VkDeviceAddressRangeKHR const *>( pDstRange ),
24456 static_cast<VkAddressCommandFlagsKHR>( dstFlags ),
24457 static_cast<VkDeviceSize>( dataSize ),
24458 pData );
24459 }
24460
24461 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24462 // wrapper function for command vkCmdUpdateMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateMemoryKHR.html
24463 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdUpdateMemoryKHR ), bool>::type>
24464 VULKAN_HPP_INLINE void CommandBuffer::updateMemoryKHR(
24465 DeviceAddressRangeKHR const & dstRange, AddressCommandFlagsKHR dstFlags, ArrayProxy<DataType const> const & data, Dispatch const & d )
24466 const VULKAN_HPP_NOEXCEPT
24467 {
24468 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24469 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24470 VULKAN_HPP_ASSERT( d.vkCmdUpdateMemoryKHR && "Function <vkCmdUpdateMemoryKHR> requires <VK_KHR_device_address_commands>" );
24471 # endif
24472
24473 d.vkCmdUpdateMemoryKHR( m_commandBuffer,
24474 reinterpret_cast<VkDeviceAddressRangeKHR const *>( &dstRange ),
24475 static_cast<VkAddressCommandFlagsKHR>( dstFlags ),
24476 data.size() * sizeof( DataType ),
24477 reinterpret_cast<void const *>( data.data() ) );
24478 }
24479 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24480
24481 // wrapper function for command vkCmdFillMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdFillMemoryKHR.html
24482 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdFillMemoryKHR ), bool>::type>
24483 VULKAN_HPP_INLINE void CommandBuffer::fillMemoryKHR(
24484 DeviceAddressRangeKHR const * pDstRange, AddressCommandFlagsKHR dstFlags, uint32_t data, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24485 {
24486 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24487 d.vkCmdFillMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
24488 reinterpret_cast<VkDeviceAddressRangeKHR const *>( pDstRange ),
24489 static_cast<VkAddressCommandFlagsKHR>( dstFlags ),
24490 data );
24491 }
24492
24493 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24494 // wrapper function for command vkCmdFillMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdFillMemoryKHR.html
24495 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdFillMemoryKHR ), bool>::type>
24496 VULKAN_HPP_INLINE void CommandBuffer::fillMemoryKHR(
24497 DeviceAddressRangeKHR const & dstRange, AddressCommandFlagsKHR dstFlags, uint32_t data, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24498 {
24499 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24500 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24501 VULKAN_HPP_ASSERT( d.vkCmdFillMemoryKHR && "Function <vkCmdFillMemoryKHR> requires <VK_KHR_device_address_commands>" );
24502 # endif
24503
24504 d.vkCmdFillMemoryKHR(
24505 m_commandBuffer, reinterpret_cast<VkDeviceAddressRangeKHR const *>( &dstRange ), static_cast<VkAddressCommandFlagsKHR>( dstFlags ), data );
24506 }
24507 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24508
24509 // wrapper function for command vkCmdCopyQueryPoolResultsToMemoryKHR, see
24510 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyQueryPoolResultsToMemoryKHR.html
24511 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyQueryPoolResultsToMemoryKHR ), bool>::type>
24512 VULKAN_HPP_INLINE void CommandBuffer::copyQueryPoolResultsToMemoryKHR( QueryPool queryPool,
24513 uint32_t firstQuery,
24514 uint32_t queryCount,
24515 StridedDeviceAddressRangeKHR const * pDstRange,
24516 AddressCommandFlagsKHR dstFlags,
24517 QueryResultFlags queryResultFlags,
24518 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24519 {
24520 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24521 d.vkCmdCopyQueryPoolResultsToMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
24522 static_cast<VkQueryPool>( queryPool ),
24523 firstQuery,
24524 queryCount,
24525 reinterpret_cast<VkStridedDeviceAddressRangeKHR const *>( pDstRange ),
24526 static_cast<VkAddressCommandFlagsKHR>( dstFlags ),
24527 static_cast<VkQueryResultFlags>( queryResultFlags ) );
24528 }
24529
24530 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24531 // wrapper function for command vkCmdCopyQueryPoolResultsToMemoryKHR, see
24532 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyQueryPoolResultsToMemoryKHR.html
24533 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyQueryPoolResultsToMemoryKHR ), bool>::type>
24534 VULKAN_HPP_INLINE void CommandBuffer::copyQueryPoolResultsToMemoryKHR( QueryPool queryPool,
24535 uint32_t firstQuery,
24536 uint32_t queryCount,
24537 StridedDeviceAddressRangeKHR const & dstRange,
24538 AddressCommandFlagsKHR dstFlags,
24539 QueryResultFlags queryResultFlags,
24540 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24541 {
24542 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24543 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24544 VULKAN_HPP_ASSERT( d.vkCmdCopyQueryPoolResultsToMemoryKHR && "Function <vkCmdCopyQueryPoolResultsToMemoryKHR> requires <VK_KHR_device_address_commands>" );
24545 # endif
24546
24547 d.vkCmdCopyQueryPoolResultsToMemoryKHR( m_commandBuffer,
24548 static_cast<VkQueryPool>( queryPool ),
24549 firstQuery,
24550 queryCount,
24551 reinterpret_cast<VkStridedDeviceAddressRangeKHR const *>( &dstRange ),
24552 static_cast<VkAddressCommandFlagsKHR>( dstFlags ),
24553 static_cast<VkQueryResultFlags>( queryResultFlags ) );
24554 }
24555 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24556
24557 // wrapper function for command vkCmdDrawIndirectCount2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCount2KHR.html
24558 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirectCount2KHR ), bool>::type>
24559 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectCount2KHR( DrawIndirectCount2InfoKHR const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24560 {
24561 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24562 d.vkCmdDrawIndirectCount2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDrawIndirectCount2InfoKHR const *>( pInfo ) );
24563 }
24564
24565 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24566 // wrapper function for command vkCmdDrawIndirectCount2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCount2KHR.html
24567 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirectCount2KHR ), bool>::type>
24568 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectCount2KHR( DrawIndirectCount2InfoKHR const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24569 {
24570 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24571 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24572 VULKAN_HPP_ASSERT( d.vkCmdDrawIndirectCount2KHR && "Function <vkCmdDrawIndirectCount2KHR> requires <VK_KHR_device_address_commands>" );
24573 # endif
24574
24575 d.vkCmdDrawIndirectCount2KHR( m_commandBuffer, reinterpret_cast<VkDrawIndirectCount2InfoKHR const *>( &info ) );
24576 }
24577 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24578
24579 // wrapper function for command vkCmdDrawIndexedIndirectCount2KHR, see
24580 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCount2KHR.html
24581 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexedIndirectCount2KHR ), bool>::type>
24582 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirectCount2KHR( DrawIndirectCount2InfoKHR const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24583 {
24584 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24585 d.vkCmdDrawIndexedIndirectCount2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDrawIndirectCount2InfoKHR const *>( pInfo ) );
24586 }
24587
24588 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24589 // wrapper function for command vkCmdDrawIndexedIndirectCount2KHR, see
24590 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCount2KHR.html
24591 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexedIndirectCount2KHR ), bool>::type>
24592 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirectCount2KHR( DrawIndirectCount2InfoKHR const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24593 {
24594 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24595 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24596 VULKAN_HPP_ASSERT( d.vkCmdDrawIndexedIndirectCount2KHR && "Function <vkCmdDrawIndexedIndirectCount2KHR> requires <VK_KHR_device_address_commands>" );
24597 # endif
24598
24599 d.vkCmdDrawIndexedIndirectCount2KHR( m_commandBuffer, reinterpret_cast<VkDrawIndirectCount2InfoKHR const *>( &info ) );
24600 }
24601 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24602
24603 // wrapper function for command vkCmdBeginConditionalRendering2EXT, see
24604 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginConditionalRendering2EXT.html
24605 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginConditionalRendering2EXT ), bool>::type>
24606 VULKAN_HPP_INLINE void CommandBuffer::beginConditionalRendering2EXT( ConditionalRenderingBeginInfo2EXT const * pConditionalRenderingBegin,
24607 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24608 {
24609 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24610 d.vkCmdBeginConditionalRendering2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
24611 reinterpret_cast<VkConditionalRenderingBeginInfo2EXT const *>( pConditionalRenderingBegin ) );
24612 }
24613
24614 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24615 // wrapper function for command vkCmdBeginConditionalRendering2EXT, see
24616 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginConditionalRendering2EXT.html
24617 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginConditionalRendering2EXT ), bool>::type>
24618 VULKAN_HPP_INLINE void CommandBuffer::beginConditionalRendering2EXT( ConditionalRenderingBeginInfo2EXT const & conditionalRenderingBegin, Dispatch const & d )
24619 const VULKAN_HPP_NOEXCEPT
24620 {
24621 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24622 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24623 VULKAN_HPP_ASSERT( d.vkCmdBeginConditionalRendering2EXT && "Function <vkCmdBeginConditionalRendering2EXT> requires <VK_KHR_device_address_commands>" );
24624 # endif
24625
24626 d.vkCmdBeginConditionalRendering2EXT( m_commandBuffer, reinterpret_cast<VkConditionalRenderingBeginInfo2EXT const *>( &conditionalRenderingBegin ) );
24627 }
24628 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24629
24630 // wrapper function for command vkCmdBindTransformFeedbackBuffers2EXT, see
24631 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTransformFeedbackBuffers2EXT.html
24632 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindTransformFeedbackBuffers2EXT ), bool>::type>
24633 VULKAN_HPP_INLINE void CommandBuffer::bindTransformFeedbackBuffers2EXT(
24634 uint32_t firstBinding, uint32_t bindingCount, BindTransformFeedbackBuffer2InfoEXT const * pBindingInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24635 {
24636 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24637 d.vkCmdBindTransformFeedbackBuffers2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
24638 firstBinding,
24639 bindingCount,
24640 reinterpret_cast<VkBindTransformFeedbackBuffer2InfoEXT const *>( pBindingInfos ) );
24641 }
24642
24643 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24644 // wrapper function for command vkCmdBindTransformFeedbackBuffers2EXT, see
24645 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTransformFeedbackBuffers2EXT.html
24646 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindTransformFeedbackBuffers2EXT ), bool>::type>
24647 VULKAN_HPP_INLINE void CommandBuffer::bindTransformFeedbackBuffers2EXT(
24648 uint32_t firstBinding, ArrayProxy<BindTransformFeedbackBuffer2InfoEXT const> const & bindingInfos, 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.vkCmdBindTransformFeedbackBuffers2EXT &&
24653 "Function <vkCmdBindTransformFeedbackBuffers2EXT> requires <VK_KHR_device_address_commands>" );
24654 # endif
24655
24656 d.vkCmdBindTransformFeedbackBuffers2EXT(
24657 m_commandBuffer, firstBinding, bindingInfos.size(), reinterpret_cast<VkBindTransformFeedbackBuffer2InfoEXT const *>( bindingInfos.data() ) );
24658 }
24659 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24660
24661 // wrapper function for command vkCmdBeginTransformFeedback2EXT, see
24662 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginTransformFeedback2EXT.html
24663 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginTransformFeedback2EXT ), bool>::type>
24664 VULKAN_HPP_INLINE void CommandBuffer::beginTransformFeedback2EXT(
24665 uint32_t firstCounterRange, uint32_t counterRangeCount, BindTransformFeedbackBuffer2InfoEXT const * pCounterInfos, Dispatch const & d )
24666 const VULKAN_HPP_NOEXCEPT
24667 {
24668 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24669 d.vkCmdBeginTransformFeedback2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
24670 firstCounterRange,
24671 counterRangeCount,
24672 reinterpret_cast<VkBindTransformFeedbackBuffer2InfoEXT const *>( pCounterInfos ) );
24673 }
24674
24675 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24676 // wrapper function for command vkCmdBeginTransformFeedback2EXT, see
24677 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginTransformFeedback2EXT.html
24678 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginTransformFeedback2EXT ), bool>::type>
24679 VULKAN_HPP_INLINE void CommandBuffer::beginTransformFeedback2EXT(
24680 uint32_t firstCounterRange, ArrayProxy<BindTransformFeedbackBuffer2InfoEXT const> const & counterInfos, 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.vkCmdBeginTransformFeedback2EXT && "Function <vkCmdBeginTransformFeedback2EXT> requires <VK_KHR_device_address_commands>" );
24685 # endif
24686
24687 d.vkCmdBeginTransformFeedback2EXT(
24688 m_commandBuffer, firstCounterRange, counterInfos.size(), reinterpret_cast<VkBindTransformFeedbackBuffer2InfoEXT const *>( counterInfos.data() ) );
24689 }
24690 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24691
24692 // wrapper function for command vkCmdEndTransformFeedback2EXT, see
24693 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndTransformFeedback2EXT.html
24694 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndTransformFeedback2EXT ), bool>::type>
24695 VULKAN_HPP_INLINE void CommandBuffer::endTransformFeedback2EXT(
24696 uint32_t firstCounterRange, uint32_t counterRangeCount, BindTransformFeedbackBuffer2InfoEXT const * pCounterInfos, Dispatch const & d )
24697 const VULKAN_HPP_NOEXCEPT
24698 {
24699 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24700 d.vkCmdEndTransformFeedback2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
24701 firstCounterRange,
24702 counterRangeCount,
24703 reinterpret_cast<VkBindTransformFeedbackBuffer2InfoEXT const *>( pCounterInfos ) );
24704 }
24705
24706 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24707 // wrapper function for command vkCmdEndTransformFeedback2EXT, see
24708 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndTransformFeedback2EXT.html
24709 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndTransformFeedback2EXT ), bool>::type>
24710 VULKAN_HPP_INLINE void CommandBuffer::endTransformFeedback2EXT(
24711 uint32_t firstCounterRange, ArrayProxy<BindTransformFeedbackBuffer2InfoEXT const> const & counterInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24712 {
24713 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24714 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24715 VULKAN_HPP_ASSERT( d.vkCmdEndTransformFeedback2EXT && "Function <vkCmdEndTransformFeedback2EXT> requires <VK_KHR_device_address_commands>" );
24716 # endif
24717
24718 d.vkCmdEndTransformFeedback2EXT(
24719 m_commandBuffer, firstCounterRange, counterInfos.size(), reinterpret_cast<VkBindTransformFeedbackBuffer2InfoEXT const *>( counterInfos.data() ) );
24720 }
24721 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24722
24723 // wrapper function for command vkCmdDrawIndirectByteCount2EXT, see
24724 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectByteCount2EXT.html
24725 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirectByteCount2EXT ), bool>::type>
24726 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectByteCount2EXT( uint32_t instanceCount,
24727 uint32_t firstInstance,
24728 BindTransformFeedbackBuffer2InfoEXT const * pCounterInfo,
24729 uint32_t counterOffset,
24730 uint32_t vertexStride,
24731 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24732 {
24733 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24734 d.vkCmdDrawIndirectByteCount2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
24735 instanceCount,
24736 firstInstance,
24737 reinterpret_cast<VkBindTransformFeedbackBuffer2InfoEXT const *>( pCounterInfo ),
24738 counterOffset,
24739 vertexStride );
24740 }
24741
24742 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24743 // wrapper function for command vkCmdDrawIndirectByteCount2EXT, see
24744 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectByteCount2EXT.html
24745 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirectByteCount2EXT ), bool>::type>
24746 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectByteCount2EXT( uint32_t instanceCount,
24747 uint32_t firstInstance,
24748 BindTransformFeedbackBuffer2InfoEXT const & counterInfo,
24749 uint32_t counterOffset,
24750 uint32_t vertexStride,
24751 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24752 {
24753 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24754 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24755 VULKAN_HPP_ASSERT( d.vkCmdDrawIndirectByteCount2EXT && "Function <vkCmdDrawIndirectByteCount2EXT> requires <VK_KHR_device_address_commands>" );
24756 # endif
24757
24758 d.vkCmdDrawIndirectByteCount2EXT( m_commandBuffer,
24759 instanceCount,
24760 firstInstance,
24761 reinterpret_cast<VkBindTransformFeedbackBuffer2InfoEXT const *>( &counterInfo ),
24762 counterOffset,
24763 vertexStride );
24764 }
24765 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24766
24767 // wrapper function for command vkCmdDrawMeshTasksIndirect2EXT, see
24768 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirect2EXT.html
24769 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksIndirect2EXT ), bool>::type>
24770 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirect2EXT( DrawIndirect2InfoKHR const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24771 {
24772 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24773 d.vkCmdDrawMeshTasksIndirect2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDrawIndirect2InfoKHR const *>( pInfo ) );
24774 }
24775
24776 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24777 // wrapper function for command vkCmdDrawMeshTasksIndirect2EXT, see
24778 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirect2EXT.html
24779 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksIndirect2EXT ), bool>::type>
24780 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirect2EXT( DrawIndirect2InfoKHR const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24781 {
24782 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24783 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24784 VULKAN_HPP_ASSERT( d.vkCmdDrawMeshTasksIndirect2EXT && "Function <vkCmdDrawMeshTasksIndirect2EXT> requires <VK_KHR_device_address_commands>" );
24785 # endif
24786
24787 d.vkCmdDrawMeshTasksIndirect2EXT( m_commandBuffer, reinterpret_cast<VkDrawIndirect2InfoKHR const *>( &info ) );
24788 }
24789 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24790
24791 // wrapper function for command vkCmdDrawMeshTasksIndirectCount2EXT, see
24792 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectCount2EXT.html
24793 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksIndirectCount2EXT ), bool>::type>
24794 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectCount2EXT( DrawIndirectCount2InfoKHR const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24795 {
24796 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24797 d.vkCmdDrawMeshTasksIndirectCount2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDrawIndirectCount2InfoKHR const *>( pInfo ) );
24798 }
24799
24800 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24801 // wrapper function for command vkCmdDrawMeshTasksIndirectCount2EXT, see
24802 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectCount2EXT.html
24803 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksIndirectCount2EXT ), bool>::type>
24804 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectCount2EXT( DrawIndirectCount2InfoKHR const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24805 {
24806 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24807 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24808 VULKAN_HPP_ASSERT( d.vkCmdDrawMeshTasksIndirectCount2EXT && "Function <vkCmdDrawMeshTasksIndirectCount2EXT> requires <VK_KHR_device_address_commands>" );
24809 # endif
24810
24811 d.vkCmdDrawMeshTasksIndirectCount2EXT( m_commandBuffer, reinterpret_cast<VkDrawIndirectCount2InfoKHR const *>( &info ) );
24812 }
24813 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24814
24815 // wrapper function for command vkCmdWriteMarkerToMemoryAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteMarkerToMemoryAMD.html
24816 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteMarkerToMemoryAMD ), bool>::type>
24817 VULKAN_HPP_INLINE void CommandBuffer::writeMarkerToMemoryAMD( MemoryMarkerInfoAMD const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24818 {
24819 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24820 d.vkCmdWriteMarkerToMemoryAMD( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkMemoryMarkerInfoAMD const *>( pInfo ) );
24821 }
24822
24823 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24824 // wrapper function for command vkCmdWriteMarkerToMemoryAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteMarkerToMemoryAMD.html
24825 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteMarkerToMemoryAMD ), bool>::type>
24826 VULKAN_HPP_INLINE void CommandBuffer::writeMarkerToMemoryAMD( MemoryMarkerInfoAMD const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24827 {
24828 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24829 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24830 VULKAN_HPP_ASSERT( d.vkCmdWriteMarkerToMemoryAMD && "Function <vkCmdWriteMarkerToMemoryAMD> requires <VK_KHR_device_address_commands>" );
24831 # endif
24832
24833 d.vkCmdWriteMarkerToMemoryAMD( m_commandBuffer, reinterpret_cast<VkMemoryMarkerInfoAMD const *>( &info ) );
24834 }
24835 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24836
24837 // wrapper function for command vkCreateAccelerationStructure2KHR, see
24838 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructure2KHR.html
24839 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructure2KHR ), bool>::type>
24840 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createAccelerationStructure2KHR( AccelerationStructureCreateInfo2KHR const * pCreateInfo,
24841 AllocationCallbacks const * pAllocator,
24842 AccelerationStructureKHR * pAccelerationStructure,
24843 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24844 {
24845 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24846 return static_cast<Result>( d.vkCreateAccelerationStructure2KHR( static_cast<VkDevice>( m_device ),
24847 reinterpret_cast<VkAccelerationStructureCreateInfo2KHR const *>( pCreateInfo ),
24848 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
24849 reinterpret_cast<VkAccelerationStructureKHR *>( pAccelerationStructure ) ) );
24850 }
24851
24852 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24853 // wrapper function for command vkCreateAccelerationStructure2KHR, see
24854 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructure2KHR.html
24855 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructure2KHR ), bool>::type>
24856 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<AccelerationStructureKHR>::type Device::createAccelerationStructure2KHR(
24857 AccelerationStructureCreateInfo2KHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
24858 {
24859 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24860 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24861 VULKAN_HPP_ASSERT( d.vkCreateAccelerationStructure2KHR && "Function <vkCreateAccelerationStructure2KHR> requires <VK_KHR_device_address_commands>" );
24862 # endif
24863
24864 AccelerationStructureKHR accelerationStructure;
24865 Result result = static_cast<Result>( d.vkCreateAccelerationStructure2KHR( m_device,
24866 reinterpret_cast<VkAccelerationStructureCreateInfo2KHR const *>( &createInfo ),
24867 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
24868 reinterpret_cast<VkAccelerationStructureKHR *>( &accelerationStructure ) ) );
24869 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createAccelerationStructure2KHR" );
24870
24871 return detail::createResultValueType( result, std::move( accelerationStructure ) );
24872 }
24873
24874 # ifndef VULKAN_HPP_NO_SMART_HANDLE
24875 // wrapper function for command vkCreateAccelerationStructure2KHR, see
24876 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructure2KHR.html
24877 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructure2KHR ), bool>::type>
24878 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<AccelerationStructureKHR, Dispatch>>::type
24879 Device::createAccelerationStructure2KHRUnique(
24880 AccelerationStructureCreateInfo2KHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
24881 {
24882 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24883 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24884 VULKAN_HPP_ASSERT( d.vkCreateAccelerationStructure2KHR && "Function <vkCreateAccelerationStructure2KHR> requires <VK_KHR_device_address_commands>" );
24885 # endif
24886
24887 AccelerationStructureKHR accelerationStructure;
24888 Result result = static_cast<Result>( d.vkCreateAccelerationStructure2KHR( m_device,
24889 reinterpret_cast<VkAccelerationStructureCreateInfo2KHR const *>( &createInfo ),
24890 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
24891 reinterpret_cast<VkAccelerationStructureKHR *>( &accelerationStructure ) ) );
24892 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createAccelerationStructure2KHRUnique" );
24893
24894 return detail::createResultValueType(
24895 result, UniqueHandle<AccelerationStructureKHR, Dispatch>( accelerationStructure, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
24896 }
24897 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
24898 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24899
24900 //=== VK_NV_fragment_shading_rate_enums ===
24901
24902 // wrapper function for command vkCmdSetFragmentShadingRateEnumNV, see
24903 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFragmentShadingRateEnumNV.html
24904 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetFragmentShadingRateEnumNV ), bool>::type>
24905 VULKAN_HPP_INLINE void CommandBuffer::setFragmentShadingRateEnumNV(
24906 FragmentShadingRateNV shadingRate, FragmentShadingRateCombinerOpKHR const combinerOps[2], Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24907 {
24908 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24909 d.vkCmdSetFragmentShadingRateEnumNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
24910 static_cast<VkFragmentShadingRateNV>( shadingRate ),
24911 reinterpret_cast<VkFragmentShadingRateCombinerOpKHR const *>( combinerOps ) );
24912 }
24913
24914 //=== VK_EXT_mesh_shader ===
24915
24916 // wrapper function for command vkCmdDrawMeshTasksEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksEXT.html
24917 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksEXT ), bool>::type>
24918 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksEXT( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ, Dispatch const & d )
24919 const VULKAN_HPP_NOEXCEPT
24920 {
24921 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24922 d.vkCmdDrawMeshTasksEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), groupCountX, groupCountY, groupCountZ );
24923 }
24924
24925 // wrapper function for command vkCmdDrawMeshTasksIndirectEXT, see
24926 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectEXT.html
24927 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksIndirectEXT ), bool>::type>
24928 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectEXT( Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride, Dispatch const & d )
24929 const VULKAN_HPP_NOEXCEPT
24930 {
24931 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24932 d.vkCmdDrawMeshTasksIndirectEXT(
24933 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ), drawCount, stride );
24934 }
24935
24936 // wrapper function for command vkCmdDrawMeshTasksIndirectCountEXT, see
24937 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectCountEXT.html
24938 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksIndirectCountEXT ), bool>::type>
24939 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectCountEXT(
24940 Buffer buffer, DeviceSize offset, Buffer countBuffer, DeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride, Dispatch const & d )
24941 const VULKAN_HPP_NOEXCEPT
24942 {
24943 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24944 d.vkCmdDrawMeshTasksIndirectCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
24945 static_cast<VkBuffer>( buffer ),
24946 static_cast<VkDeviceSize>( offset ),
24947 static_cast<VkBuffer>( countBuffer ),
24948 static_cast<VkDeviceSize>( countBufferOffset ),
24949 maxDrawCount,
24950 stride );
24951 }
24952
24953 //=== VK_KHR_copy_commands2 ===
24954
24955 // wrapper function for command vkCmdCopyBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer2KHR.html
24956 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBuffer2KHR ), bool>::type>
24957 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer2KHR( CopyBufferInfo2 const * pCopyBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24958 {
24959 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24960 d.vkCmdCopyBuffer2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyBufferInfo2 const *>( pCopyBufferInfo ) );
24961 }
24962
24963 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24964 // wrapper function for command vkCmdCopyBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer2KHR.html
24965 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBuffer2KHR ), bool>::type>
24966 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer2KHR( CopyBufferInfo2 const & copyBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24967 {
24968 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24969 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24970 VULKAN_HPP_ASSERT( d.vkCmdCopyBuffer2KHR && "Function <vkCmdCopyBuffer2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
24971 # endif
24972
24973 d.vkCmdCopyBuffer2KHR( m_commandBuffer, reinterpret_cast<VkCopyBufferInfo2 const *>( &copyBufferInfo ) );
24974 }
24975 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24976
24977 // wrapper function for command vkCmdCopyImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage2KHR.html
24978 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImage2KHR ), bool>::type>
24979 VULKAN_HPP_INLINE void CommandBuffer::copyImage2KHR( CopyImageInfo2 const * pCopyImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24980 {
24981 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24982 d.vkCmdCopyImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyImageInfo2 const *>( pCopyImageInfo ) );
24983 }
24984
24985 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24986 // wrapper function for command vkCmdCopyImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage2KHR.html
24987 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImage2KHR ), bool>::type>
24988 VULKAN_HPP_INLINE void CommandBuffer::copyImage2KHR( CopyImageInfo2 const & copyImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24989 {
24990 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24991 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24992 VULKAN_HPP_ASSERT( d.vkCmdCopyImage2KHR && "Function <vkCmdCopyImage2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
24993 # endif
24994
24995 d.vkCmdCopyImage2KHR( m_commandBuffer, reinterpret_cast<VkCopyImageInfo2 const *>( &copyImageInfo ) );
24996 }
24997 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24998
24999 // wrapper function for command vkCmdCopyBufferToImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage2KHR.html
25000 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBufferToImage2KHR ), bool>::type>
25001 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage2KHR( CopyBufferToImageInfo2 const * pCopyBufferToImageInfo, Dispatch const & d )
25002 const VULKAN_HPP_NOEXCEPT
25003 {
25004 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25005 d.vkCmdCopyBufferToImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25006 reinterpret_cast<VkCopyBufferToImageInfo2 const *>( pCopyBufferToImageInfo ) );
25007 }
25008
25009 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25010 // wrapper function for command vkCmdCopyBufferToImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage2KHR.html
25011 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBufferToImage2KHR ), bool>::type>
25012 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage2KHR( CopyBufferToImageInfo2 const & copyBufferToImageInfo, Dispatch const & d )
25013 const VULKAN_HPP_NOEXCEPT
25014 {
25015 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25016 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25017 VULKAN_HPP_ASSERT( d.vkCmdCopyBufferToImage2KHR && "Function <vkCmdCopyBufferToImage2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
25018 # endif
25019
25020 d.vkCmdCopyBufferToImage2KHR( m_commandBuffer, reinterpret_cast<VkCopyBufferToImageInfo2 const *>( &copyBufferToImageInfo ) );
25021 }
25022 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25023
25024 // wrapper function for command vkCmdCopyImageToBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer2KHR.html
25025 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToBuffer2KHR ), bool>::type>
25026 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer2KHR( CopyImageToBufferInfo2 const * pCopyImageToBufferInfo, Dispatch const & d )
25027 const VULKAN_HPP_NOEXCEPT
25028 {
25029 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25030 d.vkCmdCopyImageToBuffer2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25031 reinterpret_cast<VkCopyImageToBufferInfo2 const *>( pCopyImageToBufferInfo ) );
25032 }
25033
25034 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25035 // wrapper function for command vkCmdCopyImageToBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer2KHR.html
25036 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToBuffer2KHR ), bool>::type>
25037 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer2KHR( CopyImageToBufferInfo2 const & copyImageToBufferInfo, Dispatch const & d )
25038 const VULKAN_HPP_NOEXCEPT
25039 {
25040 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25041 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25042 VULKAN_HPP_ASSERT( d.vkCmdCopyImageToBuffer2KHR && "Function <vkCmdCopyImageToBuffer2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
25043 # endif
25044
25045 d.vkCmdCopyImageToBuffer2KHR( m_commandBuffer, reinterpret_cast<VkCopyImageToBufferInfo2 const *>( &copyImageToBufferInfo ) );
25046 }
25047 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25048
25049 // wrapper function for command vkCmdBlitImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage2KHR.html
25050 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBlitImage2KHR ), bool>::type>
25051 VULKAN_HPP_INLINE void CommandBuffer::blitImage2KHR( BlitImageInfo2 const * pBlitImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25052 {
25053 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25054 d.vkCmdBlitImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkBlitImageInfo2 const *>( pBlitImageInfo ) );
25055 }
25056
25057 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25058 // wrapper function for command vkCmdBlitImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage2KHR.html
25059 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBlitImage2KHR ), bool>::type>
25060 VULKAN_HPP_INLINE void CommandBuffer::blitImage2KHR( BlitImageInfo2 const & blitImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25061 {
25062 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25063 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25064 VULKAN_HPP_ASSERT( d.vkCmdBlitImage2KHR && "Function <vkCmdBlitImage2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
25065 # endif
25066
25067 d.vkCmdBlitImage2KHR( m_commandBuffer, reinterpret_cast<VkBlitImageInfo2 const *>( &blitImageInfo ) );
25068 }
25069 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25070
25071 // wrapper function for command vkCmdResolveImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage2KHR.html
25072 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResolveImage2KHR ), bool>::type>
25073 VULKAN_HPP_INLINE void CommandBuffer::resolveImage2KHR( ResolveImageInfo2 const * pResolveImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25074 {
25075 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25076 d.vkCmdResolveImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkResolveImageInfo2 const *>( pResolveImageInfo ) );
25077 }
25078
25079 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25080 // wrapper function for command vkCmdResolveImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage2KHR.html
25081 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResolveImage2KHR ), bool>::type>
25082 VULKAN_HPP_INLINE void CommandBuffer::resolveImage2KHR( ResolveImageInfo2 const & resolveImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25083 {
25084 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25085 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25086 VULKAN_HPP_ASSERT( d.vkCmdResolveImage2KHR && "Function <vkCmdResolveImage2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
25087 # endif
25088
25089 d.vkCmdResolveImage2KHR( m_commandBuffer, reinterpret_cast<VkResolveImageInfo2 const *>( &resolveImageInfo ) );
25090 }
25091 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25092
25093 //=== VK_EXT_device_fault ===
25094
25095 // wrapper function for command vkGetDeviceFaultInfoEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceFaultInfoEXT.html
25096 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceFaultInfoEXT ), bool>::type>
25097 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFaultInfoEXT(
25098 DeviceFaultCountsEXT * pFaultCounts, DeviceFaultInfoEXT * pFaultInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25099 {
25100 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25101 return static_cast<Result>( d.vkGetDeviceFaultInfoEXT(
25102 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceFaultCountsEXT *>( pFaultCounts ), reinterpret_cast<VkDeviceFaultInfoEXT *>( pFaultInfo ) ) );
25103 }
25104
25105 #if defined( VK_USE_PLATFORM_WIN32_KHR )
25106 //=== VK_NV_acquire_winrt_display ===
25107
25108 # ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
25109 // wrapper function for command vkAcquireWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireWinrtDisplayNV.html
25110 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireWinrtDisplayNV ), bool>::type>
25111 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::acquireWinrtDisplayNV( DisplayKHR display, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25112 {
25113 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25114 return static_cast<Result>( d.vkAcquireWinrtDisplayNV( static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( display ) ) );
25115 }
25116 # else
25117 // wrapper function for command vkAcquireWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireWinrtDisplayNV.html
25118 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireWinrtDisplayNV ), bool>::type>
25119 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type PhysicalDevice::acquireWinrtDisplayNV(
25120 DisplayKHR display, Dispatch const & d ) const
25121 {
25122 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25123 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25124 VULKAN_HPP_ASSERT( d.vkAcquireWinrtDisplayNV && "Function <vkAcquireWinrtDisplayNV> requires <VK_NV_acquire_winrt_display>" );
25125 # endif
25126
25127 Result result = static_cast<Result>( d.vkAcquireWinrtDisplayNV( m_physicalDevice, static_cast<VkDisplayKHR>( display ) ) );
25128 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::acquireWinrtDisplayNV" );
25129
25130 return detail::createResultValueType( result );
25131 }
25132 # endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
25133
25134 // wrapper function for command vkGetWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetWinrtDisplayNV.html
25135 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetWinrtDisplayNV ), bool>::type>
25136 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getWinrtDisplayNV( uint32_t deviceRelativeId, DisplayKHR * pDisplay, Dispatch const & d )
25137 const VULKAN_HPP_NOEXCEPT
25138 {
25139 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25140 return static_cast<Result>(
25141 d.vkGetWinrtDisplayNV( static_cast<VkPhysicalDevice>( m_physicalDevice ), deviceRelativeId, reinterpret_cast<VkDisplayKHR *>( pDisplay ) ) );
25142 }
25143
25144 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25145 // wrapper function for command vkGetWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetWinrtDisplayNV.html
25146 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetWinrtDisplayNV ), bool>::type>
25147 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayKHR>::type PhysicalDevice::getWinrtDisplayNV( uint32_t deviceRelativeId,
25148 Dispatch const & d ) const
25149 {
25150 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25151 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25152 VULKAN_HPP_ASSERT( d.vkGetWinrtDisplayNV && "Function <vkGetWinrtDisplayNV> requires <VK_NV_acquire_winrt_display>" );
25153 # endif
25154
25155 DisplayKHR display;
25156 Result result = static_cast<Result>( d.vkGetWinrtDisplayNV( m_physicalDevice, deviceRelativeId, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
25157 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getWinrtDisplayNV" );
25158
25159 return detail::createResultValueType( result, std::move( display ) );
25160 }
25161
25162 # ifndef VULKAN_HPP_NO_SMART_HANDLE
25163 // wrapper function for command vkGetWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetWinrtDisplayNV.html
25164 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetWinrtDisplayNV ), bool>::type>
25165 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DisplayKHR, Dispatch>>::type PhysicalDevice::getWinrtDisplayNVUnique(
25166 uint32_t deviceRelativeId, Dispatch const & d ) const
25167 {
25168 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25169 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25170 VULKAN_HPP_ASSERT( d.vkGetWinrtDisplayNV && "Function <vkGetWinrtDisplayNV> requires <VK_NV_acquire_winrt_display>" );
25171 # endif
25172
25173 DisplayKHR display;
25174 Result result = static_cast<Result>( d.vkGetWinrtDisplayNV( m_physicalDevice, deviceRelativeId, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
25175 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getWinrtDisplayNVUnique" );
25176
25177 return detail::createResultValueType( result, UniqueHandle<DisplayKHR, Dispatch>( display, detail::ObjectRelease<PhysicalDevice, Dispatch>( *this, d ) ) );
25178 }
25179 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
25180 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25181 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
25182
25183 #if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
25184 //=== VK_EXT_directfb_surface ===
25185
25186 // wrapper function for command vkCreateDirectFBSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDirectFBSurfaceEXT.html
25187 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDirectFBSurfaceEXT ), bool>::type>
25188 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createDirectFBSurfaceEXT(
25189 DirectFBSurfaceCreateInfoEXT const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d )
25190 const VULKAN_HPP_NOEXCEPT
25191 {
25192 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25193 return static_cast<Result>( d.vkCreateDirectFBSurfaceEXT( static_cast<VkInstance>( m_instance ),
25194 reinterpret_cast<VkDirectFBSurfaceCreateInfoEXT const *>( pCreateInfo ),
25195 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
25196 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
25197 }
25198
25199 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25200 // wrapper function for command vkCreateDirectFBSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDirectFBSurfaceEXT.html
25201 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDirectFBSurfaceEXT ), bool>::type>
25202 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createDirectFBSurfaceEXT(
25203 DirectFBSurfaceCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, 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.vkCreateDirectFBSurfaceEXT && "Function <vkCreateDirectFBSurfaceEXT> requires <VK_EXT_directfb_surface>" );
25208 # endif
25209
25210 SurfaceKHR surface;
25211 Result result = static_cast<Result>( d.vkCreateDirectFBSurfaceEXT( m_instance,
25212 reinterpret_cast<VkDirectFBSurfaceCreateInfoEXT const *>( &createInfo ),
25213 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
25214 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
25215 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDirectFBSurfaceEXT" );
25216
25217 return detail::createResultValueType( result, std::move( surface ) );
25218 }
25219
25220 # ifndef VULKAN_HPP_NO_SMART_HANDLE
25221 // wrapper function for command vkCreateDirectFBSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDirectFBSurfaceEXT.html
25222 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDirectFBSurfaceEXT ), bool>::type>
25223 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createDirectFBSurfaceEXTUnique(
25224 DirectFBSurfaceCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
25225 {
25226 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25227 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25228 VULKAN_HPP_ASSERT( d.vkCreateDirectFBSurfaceEXT && "Function <vkCreateDirectFBSurfaceEXT> requires <VK_EXT_directfb_surface>" );
25229 # endif
25230
25231 SurfaceKHR surface;
25232 Result result = static_cast<Result>( d.vkCreateDirectFBSurfaceEXT( m_instance,
25233 reinterpret_cast<VkDirectFBSurfaceCreateInfoEXT const *>( &createInfo ),
25234 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
25235 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
25236 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDirectFBSurfaceEXTUnique" );
25237
25238 return detail::createResultValueType( result,
25239 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
25240 }
25241 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
25242 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25243
25244 // wrapper function for command vkGetPhysicalDeviceDirectFBPresentationSupportEXT, see
25245 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDirectFBPresentationSupportEXT.html
25246 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDirectFBPresentationSupportEXT ), bool>::type>
25247 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getDirectFBPresentationSupportEXT( uint32_t queueFamilyIndex, IDirectFB * dfb, Dispatch const & d )
25248 const VULKAN_HPP_NOEXCEPT
25249 {
25250 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25251 return static_cast<Bool32>(
25252 d.vkGetPhysicalDeviceDirectFBPresentationSupportEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, dfb ) );
25253 }
25254
25255 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25256 // wrapper function for command vkGetPhysicalDeviceDirectFBPresentationSupportEXT, see
25257 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDirectFBPresentationSupportEXT.html
25258 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDirectFBPresentationSupportEXT ), bool>::type>
25259 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getDirectFBPresentationSupportEXT( uint32_t queueFamilyIndex, IDirectFB & dfb, Dispatch const & d )
25260 const VULKAN_HPP_NOEXCEPT
25261 {
25262 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25263 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25264 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDirectFBPresentationSupportEXT &&
25265 "Function <vkGetPhysicalDeviceDirectFBPresentationSupportEXT> requires <VK_EXT_directfb_surface>" );
25266 # endif
25267
25268 VkBool32 result = d.vkGetPhysicalDeviceDirectFBPresentationSupportEXT( m_physicalDevice, queueFamilyIndex, &dfb );
25269
25270 return static_cast<Bool32>( result );
25271 }
25272 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25273 #endif /*VK_USE_PLATFORM_DIRECTFB_EXT*/
25274
25275 //=== VK_EXT_vertex_input_dynamic_state ===
25276
25277 // wrapper function for command vkCmdSetVertexInputEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetVertexInputEXT.html
25278 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetVertexInputEXT ), bool>::type>
25279 VULKAN_HPP_INLINE void CommandBuffer::setVertexInputEXT( uint32_t vertexBindingDescriptionCount,
25280 VertexInputBindingDescription2EXT const * pVertexBindingDescriptions,
25281 uint32_t vertexAttributeDescriptionCount,
25282 VertexInputAttributeDescription2EXT const * pVertexAttributeDescriptions,
25283 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25284 {
25285 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25286 d.vkCmdSetVertexInputEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
25287 vertexBindingDescriptionCount,
25288 reinterpret_cast<VkVertexInputBindingDescription2EXT const *>( pVertexBindingDescriptions ),
25289 vertexAttributeDescriptionCount,
25290 reinterpret_cast<VkVertexInputAttributeDescription2EXT const *>( pVertexAttributeDescriptions ) );
25291 }
25292
25293 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25294 // wrapper function for command vkCmdSetVertexInputEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetVertexInputEXT.html
25295 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetVertexInputEXT ), bool>::type>
25296 VULKAN_HPP_INLINE void CommandBuffer::setVertexInputEXT( ArrayProxy<VertexInputBindingDescription2EXT const> const & vertexBindingDescriptions,
25297 ArrayProxy<VertexInputAttributeDescription2EXT const> const & vertexAttributeDescriptions,
25298 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25299 {
25300 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25301 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25302 VULKAN_HPP_ASSERT( d.vkCmdSetVertexInputEXT && "Function <vkCmdSetVertexInputEXT> requires <VK_EXT_shader_object> or <VK_EXT_vertex_input_dynamic_state>" );
25303 # endif
25304
25305 d.vkCmdSetVertexInputEXT( m_commandBuffer,
25306 vertexBindingDescriptions.size(),
25307 reinterpret_cast<VkVertexInputBindingDescription2EXT const *>( vertexBindingDescriptions.data() ),
25308 vertexAttributeDescriptions.size(),
25309 reinterpret_cast<VkVertexInputAttributeDescription2EXT const *>( vertexAttributeDescriptions.data() ) );
25310 }
25311 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25312
25313 #if defined( VK_USE_PLATFORM_FUCHSIA )
25314 //=== VK_FUCHSIA_external_memory ===
25315
25316 // wrapper function for command vkGetMemoryZirconHandleFUCHSIA, see
25317 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryZirconHandleFUCHSIA.html
25318 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryZirconHandleFUCHSIA ), bool>::type>
25319 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryZirconHandleFUCHSIA(
25320 MemoryGetZirconHandleInfoFUCHSIA const * pGetZirconHandleInfo, zx_handle_t * pZirconHandle, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25321 {
25322 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25323 return static_cast<Result>( d.vkGetMemoryZirconHandleFUCHSIA(
25324 static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryGetZirconHandleInfoFUCHSIA const *>( pGetZirconHandleInfo ), pZirconHandle ) );
25325 }
25326
25327 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25328 // wrapper function for command vkGetMemoryZirconHandleFUCHSIA, see
25329 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryZirconHandleFUCHSIA.html
25330 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryZirconHandleFUCHSIA ), bool>::type>
25331 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<zx_handle_t>::type Device::getMemoryZirconHandleFUCHSIA(
25332 MemoryGetZirconHandleInfoFUCHSIA const & getZirconHandleInfo, Dispatch const & d ) const
25333 {
25334 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25335 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25336 VULKAN_HPP_ASSERT( d.vkGetMemoryZirconHandleFUCHSIA && "Function <vkGetMemoryZirconHandleFUCHSIA> requires <VK_FUCHSIA_external_memory>" );
25337 # endif
25338
25339 zx_handle_t zirconHandle;
25340 Result result = static_cast<Result>(
25341 d.vkGetMemoryZirconHandleFUCHSIA( m_device, reinterpret_cast<VkMemoryGetZirconHandleInfoFUCHSIA const *>( &getZirconHandleInfo ), &zirconHandle ) );
25342 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryZirconHandleFUCHSIA" );
25343
25344 return detail::createResultValueType( result, std::move( zirconHandle ) );
25345 }
25346 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25347
25348 // wrapper function for command vkGetMemoryZirconHandlePropertiesFUCHSIA, see
25349 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryZirconHandlePropertiesFUCHSIA.html
25350 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryZirconHandlePropertiesFUCHSIA ), bool>::type>
25351 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryZirconHandlePropertiesFUCHSIA( ExternalMemoryHandleTypeFlagBits handleType,
25352 zx_handle_t zirconHandle,
25353 MemoryZirconHandlePropertiesFUCHSIA *
25354 pMemoryZirconHandleProperties,
25355 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25356 {
25357 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25358 return static_cast<Result>(
25359 d.vkGetMemoryZirconHandlePropertiesFUCHSIA( static_cast<VkDevice>( m_device ),
25360 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
25361 zirconHandle,
25362 reinterpret_cast<VkMemoryZirconHandlePropertiesFUCHSIA *>( pMemoryZirconHandleProperties ) ) );
25363 }
25364
25365 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25366 // wrapper function for command vkGetMemoryZirconHandlePropertiesFUCHSIA, see
25367 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryZirconHandlePropertiesFUCHSIA.html
25368 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryZirconHandlePropertiesFUCHSIA ), bool>::type>
25369 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryZirconHandlePropertiesFUCHSIA>::type Device::getMemoryZirconHandlePropertiesFUCHSIA(
25370 ExternalMemoryHandleTypeFlagBits handleType, zx_handle_t zirconHandle, Dispatch const & d ) const
25371 {
25372 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25373 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25374 VULKAN_HPP_ASSERT( d.vkGetMemoryZirconHandlePropertiesFUCHSIA &&
25375 "Function <vkGetMemoryZirconHandlePropertiesFUCHSIA> requires <VK_FUCHSIA_external_memory>" );
25376 # endif
25377
25378 MemoryZirconHandlePropertiesFUCHSIA memoryZirconHandleProperties;
25379 Result result = static_cast<Result>(
25380 d.vkGetMemoryZirconHandlePropertiesFUCHSIA( m_device,
25381 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
25382 zirconHandle,
25383 reinterpret_cast<VkMemoryZirconHandlePropertiesFUCHSIA *>( &memoryZirconHandleProperties ) ) );
25384 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryZirconHandlePropertiesFUCHSIA" );
25385
25386 return detail::createResultValueType( result, std::move( memoryZirconHandleProperties ) );
25387 }
25388 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25389 #endif /*VK_USE_PLATFORM_FUCHSIA*/
25390
25391 #if defined( VK_USE_PLATFORM_FUCHSIA )
25392 //=== VK_FUCHSIA_external_semaphore ===
25393
25394 // wrapper function for command vkImportSemaphoreZirconHandleFUCHSIA, see
25395 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreZirconHandleFUCHSIA.html
25396 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportSemaphoreZirconHandleFUCHSIA ), bool>::type>
25397 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::importSemaphoreZirconHandleFUCHSIA(
25398 ImportSemaphoreZirconHandleInfoFUCHSIA const * pImportSemaphoreZirconHandleInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25399 {
25400 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25401 return static_cast<Result>( d.vkImportSemaphoreZirconHandleFUCHSIA(
25402 static_cast<VkDevice>( m_device ), reinterpret_cast<VkImportSemaphoreZirconHandleInfoFUCHSIA const *>( pImportSemaphoreZirconHandleInfo ) ) );
25403 }
25404
25405 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25406 // wrapper function for command vkImportSemaphoreZirconHandleFUCHSIA, see
25407 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreZirconHandleFUCHSIA.html
25408 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportSemaphoreZirconHandleFUCHSIA ), bool>::type>
25409 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::importSemaphoreZirconHandleFUCHSIA(
25410 ImportSemaphoreZirconHandleInfoFUCHSIA const & importSemaphoreZirconHandleInfo, Dispatch const & d ) const
25411 {
25412 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25413 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25414 VULKAN_HPP_ASSERT( d.vkImportSemaphoreZirconHandleFUCHSIA && "Function <vkImportSemaphoreZirconHandleFUCHSIA> requires <VK_FUCHSIA_external_semaphore>" );
25415 # endif
25416
25417 Result result = static_cast<Result>( d.vkImportSemaphoreZirconHandleFUCHSIA(
25418 m_device, reinterpret_cast<VkImportSemaphoreZirconHandleInfoFUCHSIA const *>( &importSemaphoreZirconHandleInfo ) ) );
25419 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importSemaphoreZirconHandleFUCHSIA" );
25420
25421 return detail::createResultValueType( result );
25422 }
25423 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25424
25425 // wrapper function for command vkGetSemaphoreZirconHandleFUCHSIA, see
25426 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreZirconHandleFUCHSIA.html
25427 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreZirconHandleFUCHSIA ), bool>::type>
25428 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSemaphoreZirconHandleFUCHSIA(
25429 SemaphoreGetZirconHandleInfoFUCHSIA const * pGetZirconHandleInfo, zx_handle_t * pZirconHandle, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25430 {
25431 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25432 return static_cast<Result>( d.vkGetSemaphoreZirconHandleFUCHSIA(
25433 static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreGetZirconHandleInfoFUCHSIA const *>( pGetZirconHandleInfo ), pZirconHandle ) );
25434 }
25435
25436 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25437 // wrapper function for command vkGetSemaphoreZirconHandleFUCHSIA, see
25438 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreZirconHandleFUCHSIA.html
25439 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreZirconHandleFUCHSIA ), bool>::type>
25440 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<zx_handle_t>::type Device::getSemaphoreZirconHandleFUCHSIA(
25441 SemaphoreGetZirconHandleInfoFUCHSIA const & getZirconHandleInfo, Dispatch const & d ) const
25442 {
25443 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25444 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25445 VULKAN_HPP_ASSERT( d.vkGetSemaphoreZirconHandleFUCHSIA && "Function <vkGetSemaphoreZirconHandleFUCHSIA> requires <VK_FUCHSIA_external_semaphore>" );
25446 # endif
25447
25448 zx_handle_t zirconHandle;
25449 Result result = static_cast<Result>(
25450 d.vkGetSemaphoreZirconHandleFUCHSIA( m_device, reinterpret_cast<VkSemaphoreGetZirconHandleInfoFUCHSIA const *>( &getZirconHandleInfo ), &zirconHandle ) );
25451 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreZirconHandleFUCHSIA" );
25452
25453 return detail::createResultValueType( result, std::move( zirconHandle ) );
25454 }
25455 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25456 #endif /*VK_USE_PLATFORM_FUCHSIA*/
25457
25458 #if defined( VK_USE_PLATFORM_FUCHSIA )
25459 //=== VK_FUCHSIA_buffer_collection ===
25460
25461 // wrapper function for command vkCreateBufferCollectionFUCHSIA, see
25462 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferCollectionFUCHSIA.html
25463 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBufferCollectionFUCHSIA ), bool>::type>
25464 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createBufferCollectionFUCHSIA(
25465 BufferCollectionCreateInfoFUCHSIA const * pCreateInfo, AllocationCallbacks const * pAllocator, BufferCollectionFUCHSIA * pCollection, Dispatch const & d )
25466 const VULKAN_HPP_NOEXCEPT
25467 {
25468 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25469 return static_cast<Result>( d.vkCreateBufferCollectionFUCHSIA( static_cast<VkDevice>( m_device ),
25470 reinterpret_cast<VkBufferCollectionCreateInfoFUCHSIA const *>( pCreateInfo ),
25471 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
25472 reinterpret_cast<VkBufferCollectionFUCHSIA *>( pCollection ) ) );
25473 }
25474
25475 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25476 // wrapper function for command vkCreateBufferCollectionFUCHSIA, see
25477 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferCollectionFUCHSIA.html
25478 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBufferCollectionFUCHSIA ), bool>::type>
25479 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<BufferCollectionFUCHSIA>::type Device::createBufferCollectionFUCHSIA(
25480 BufferCollectionCreateInfoFUCHSIA const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
25481 {
25482 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25483 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25484 VULKAN_HPP_ASSERT( d.vkCreateBufferCollectionFUCHSIA && "Function <vkCreateBufferCollectionFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25485 # endif
25486
25487 BufferCollectionFUCHSIA collection;
25488 Result result = static_cast<Result>( d.vkCreateBufferCollectionFUCHSIA( m_device,
25489 reinterpret_cast<VkBufferCollectionCreateInfoFUCHSIA const *>( &createInfo ),
25490 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
25491 reinterpret_cast<VkBufferCollectionFUCHSIA *>( &collection ) ) );
25492 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferCollectionFUCHSIA" );
25493
25494 return detail::createResultValueType( result, std::move( collection ) );
25495 }
25496
25497 # ifndef VULKAN_HPP_NO_SMART_HANDLE
25498 // wrapper function for command vkCreateBufferCollectionFUCHSIA, see
25499 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferCollectionFUCHSIA.html
25500 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBufferCollectionFUCHSIA ), bool>::type>
25501 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<BufferCollectionFUCHSIA, Dispatch>>::type
25502 Device::createBufferCollectionFUCHSIAUnique(
25503 BufferCollectionCreateInfoFUCHSIA const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
25504 {
25505 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25506 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25507 VULKAN_HPP_ASSERT( d.vkCreateBufferCollectionFUCHSIA && "Function <vkCreateBufferCollectionFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25508 # endif
25509
25510 BufferCollectionFUCHSIA collection;
25511 Result result = static_cast<Result>( d.vkCreateBufferCollectionFUCHSIA( m_device,
25512 reinterpret_cast<VkBufferCollectionCreateInfoFUCHSIA const *>( &createInfo ),
25513 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
25514 reinterpret_cast<VkBufferCollectionFUCHSIA *>( &collection ) ) );
25515 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferCollectionFUCHSIAUnique" );
25516
25517 return detail::createResultValueType(
25518 result, UniqueHandle<BufferCollectionFUCHSIA, Dispatch>( collection, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
25519 }
25520 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
25521 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25522
25523 // wrapper function for command vkSetBufferCollectionImageConstraintsFUCHSIA, see
25524 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetBufferCollectionImageConstraintsFUCHSIA.html
25525 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetBufferCollectionImageConstraintsFUCHSIA ), bool>::type>
25526 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setBufferCollectionImageConstraintsFUCHSIA(
25527 BufferCollectionFUCHSIA collection, ImageConstraintsInfoFUCHSIA const * pImageConstraintsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25528 {
25529 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25530 return static_cast<Result>(
25531 d.vkSetBufferCollectionImageConstraintsFUCHSIA( static_cast<VkDevice>( m_device ),
25532 static_cast<VkBufferCollectionFUCHSIA>( collection ),
25533 reinterpret_cast<VkImageConstraintsInfoFUCHSIA const *>( pImageConstraintsInfo ) ) );
25534 }
25535
25536 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25537 // wrapper function for command vkSetBufferCollectionImageConstraintsFUCHSIA, see
25538 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetBufferCollectionImageConstraintsFUCHSIA.html
25539 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetBufferCollectionImageConstraintsFUCHSIA ), bool>::type>
25540 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setBufferCollectionImageConstraintsFUCHSIA(
25541 BufferCollectionFUCHSIA collection, ImageConstraintsInfoFUCHSIA const & imageConstraintsInfo, Dispatch const & d ) const
25542 {
25543 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25544 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25545 VULKAN_HPP_ASSERT( d.vkSetBufferCollectionImageConstraintsFUCHSIA &&
25546 "Function <vkSetBufferCollectionImageConstraintsFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25547 # endif
25548
25549 Result result = static_cast<Result>( d.vkSetBufferCollectionImageConstraintsFUCHSIA(
25550 m_device, static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<VkImageConstraintsInfoFUCHSIA const *>( &imageConstraintsInfo ) ) );
25551 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setBufferCollectionImageConstraintsFUCHSIA" );
25552
25553 return detail::createResultValueType( result );
25554 }
25555 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25556
25557 // wrapper function for command vkSetBufferCollectionBufferConstraintsFUCHSIA, see
25558 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetBufferCollectionBufferConstraintsFUCHSIA.html
25559 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetBufferCollectionBufferConstraintsFUCHSIA ), bool>::type>
25560 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setBufferCollectionBufferConstraintsFUCHSIA(
25561 BufferCollectionFUCHSIA collection, BufferConstraintsInfoFUCHSIA const * pBufferConstraintsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25562 {
25563 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25564 return static_cast<Result>(
25565 d.vkSetBufferCollectionBufferConstraintsFUCHSIA( static_cast<VkDevice>( m_device ),
25566 static_cast<VkBufferCollectionFUCHSIA>( collection ),
25567 reinterpret_cast<VkBufferConstraintsInfoFUCHSIA const *>( pBufferConstraintsInfo ) ) );
25568 }
25569
25570 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25571 // wrapper function for command vkSetBufferCollectionBufferConstraintsFUCHSIA, see
25572 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetBufferCollectionBufferConstraintsFUCHSIA.html
25573 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetBufferCollectionBufferConstraintsFUCHSIA ), bool>::type>
25574 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setBufferCollectionBufferConstraintsFUCHSIA(
25575 BufferCollectionFUCHSIA collection, BufferConstraintsInfoFUCHSIA const & bufferConstraintsInfo, Dispatch const & d ) const
25576 {
25577 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25578 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25579 VULKAN_HPP_ASSERT( d.vkSetBufferCollectionBufferConstraintsFUCHSIA &&
25580 "Function <vkSetBufferCollectionBufferConstraintsFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25581 # endif
25582
25583 Result result = static_cast<Result>( d.vkSetBufferCollectionBufferConstraintsFUCHSIA(
25584 m_device, static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<VkBufferConstraintsInfoFUCHSIA const *>( &bufferConstraintsInfo ) ) );
25585 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setBufferCollectionBufferConstraintsFUCHSIA" );
25586
25587 return detail::createResultValueType( result );
25588 }
25589 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25590
25591 // wrapper function for command vkDestroyBufferCollectionFUCHSIA, see
25592 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferCollectionFUCHSIA.html
25593 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferCollectionFUCHSIA ), bool>::type>
25594 VULKAN_HPP_INLINE void Device::destroyBufferCollectionFUCHSIA(
25595 BufferCollectionFUCHSIA collection, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25596 {
25597 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25598 d.vkDestroyBufferCollectionFUCHSIA(
25599 static_cast<VkDevice>( m_device ), static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
25600 }
25601
25602 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25603 // wrapper function for command vkDestroyBufferCollectionFUCHSIA, see
25604 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferCollectionFUCHSIA.html
25605 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferCollectionFUCHSIA ), bool>::type>
25606 VULKAN_HPP_INLINE void Device::destroyBufferCollectionFUCHSIA(
25607 BufferCollectionFUCHSIA collection, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25608 {
25609 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25610 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25611 VULKAN_HPP_ASSERT( d.vkDestroyBufferCollectionFUCHSIA && "Function <vkDestroyBufferCollectionFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25612 # endif
25613
25614 d.vkDestroyBufferCollectionFUCHSIA(
25615 m_device, static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
25616 }
25617 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25618
25619 // wrapper function for command vkDestroyBufferCollectionFUCHSIA, see
25620 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferCollectionFUCHSIA.html
25621 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferCollectionFUCHSIA ), bool>::type>
25622 VULKAN_HPP_INLINE void Device::destroy( BufferCollectionFUCHSIA collection, AllocationCallbacks const * pAllocator, Dispatch const & d )
25623 const VULKAN_HPP_NOEXCEPT
25624 {
25625 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25626 d.vkDestroyBufferCollectionFUCHSIA(
25627 static_cast<VkDevice>( m_device ), static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
25628 }
25629
25630 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25631 // wrapper function for command vkDestroyBufferCollectionFUCHSIA, see
25632 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferCollectionFUCHSIA.html
25633 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferCollectionFUCHSIA ), bool>::type>
25634 VULKAN_HPP_INLINE void Device::destroy( BufferCollectionFUCHSIA collection, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
25635 const VULKAN_HPP_NOEXCEPT
25636 {
25637 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25638 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25639 VULKAN_HPP_ASSERT( d.vkDestroyBufferCollectionFUCHSIA && "Function <vkDestroyBufferCollectionFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25640 # endif
25641
25642 d.vkDestroyBufferCollectionFUCHSIA(
25643 m_device, static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
25644 }
25645 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25646
25647 // wrapper function for command vkGetBufferCollectionPropertiesFUCHSIA, see
25648 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferCollectionPropertiesFUCHSIA.html
25649 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferCollectionPropertiesFUCHSIA ), bool>::type>
25650 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getBufferCollectionPropertiesFUCHSIA(
25651 BufferCollectionFUCHSIA collection, BufferCollectionPropertiesFUCHSIA * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25652 {
25653 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25654 return static_cast<Result>( d.vkGetBufferCollectionPropertiesFUCHSIA( static_cast<VkDevice>( m_device ),
25655 static_cast<VkBufferCollectionFUCHSIA>( collection ),
25656 reinterpret_cast<VkBufferCollectionPropertiesFUCHSIA *>( pProperties ) ) );
25657 }
25658
25659 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25660 // wrapper function for command vkGetBufferCollectionPropertiesFUCHSIA, see
25661 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferCollectionPropertiesFUCHSIA.html
25662 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferCollectionPropertiesFUCHSIA ), bool>::type>
25663 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<BufferCollectionPropertiesFUCHSIA>::type Device::getBufferCollectionPropertiesFUCHSIA(
25664 BufferCollectionFUCHSIA collection, Dispatch const & d ) const
25665 {
25666 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25667 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25668 VULKAN_HPP_ASSERT( d.vkGetBufferCollectionPropertiesFUCHSIA &&
25669 "Function <vkGetBufferCollectionPropertiesFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25670 # endif
25671
25672 BufferCollectionPropertiesFUCHSIA properties;
25673 Result result = static_cast<Result>( d.vkGetBufferCollectionPropertiesFUCHSIA(
25674 m_device, static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<VkBufferCollectionPropertiesFUCHSIA *>( &properties ) ) );
25675 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getBufferCollectionPropertiesFUCHSIA" );
25676
25677 return detail::createResultValueType( result, std::move( properties ) );
25678 }
25679 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25680 #endif /*VK_USE_PLATFORM_FUCHSIA*/
25681
25682 //=== VK_HUAWEI_subpass_shading ===
25683
25684 // wrapper function for command vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI, see
25685 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI.html
25686 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI ), bool>::type>
25687 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSubpassShadingMaxWorkgroupSizeHUAWEI(
25688 RenderPass renderpass, Extent2D * pMaxWorkgroupSize, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25689 {
25690 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25691 return static_cast<Result>( d.vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI(
25692 static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( renderpass ), reinterpret_cast<VkExtent2D *>( pMaxWorkgroupSize ) ) );
25693 }
25694
25695 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25696 // wrapper function for command vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI, see
25697 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI.html
25698 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI ), bool>::type>
25699 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Extent2D>::type Device::getSubpassShadingMaxWorkgroupSizeHUAWEI( RenderPass renderpass,
25700 Dispatch const & d ) const
25701 {
25702 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25703 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25704 VULKAN_HPP_ASSERT( d.vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI &&
25705 "Function <vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI> requires <VK_HUAWEI_subpass_shading>" );
25706 # endif
25707
25708 Extent2D maxWorkgroupSize;
25709 Result result = static_cast<Result>( d.vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI(
25710 m_device, static_cast<VkRenderPass>( renderpass ), reinterpret_cast<VkExtent2D *>( &maxWorkgroupSize ) ) );
25711 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSubpassShadingMaxWorkgroupSizeHUAWEI" );
25712
25713 return detail::createResultValueType( result, std::move( maxWorkgroupSize ) );
25714 }
25715 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25716
25717 // wrapper function for command vkCmdSubpassShadingHUAWEI, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSubpassShadingHUAWEI.html
25718 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSubpassShadingHUAWEI ), bool>::type>
25719 VULKAN_HPP_INLINE void CommandBuffer::subpassShadingHUAWEI( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25720 {
25721 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25722 d.vkCmdSubpassShadingHUAWEI( static_cast<VkCommandBuffer>( m_commandBuffer ) );
25723 }
25724
25725 //=== VK_HUAWEI_invocation_mask ===
25726
25727 // wrapper function for command vkCmdBindInvocationMaskHUAWEI, see
25728 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindInvocationMaskHUAWEI.html
25729 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindInvocationMaskHUAWEI ), bool>::type>
25730 VULKAN_HPP_INLINE void CommandBuffer::bindInvocationMaskHUAWEI( ImageView imageView, ImageLayout imageLayout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25731 {
25732 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25733 d.vkCmdBindInvocationMaskHUAWEI(
25734 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkImageView>( imageView ), static_cast<VkImageLayout>( imageLayout ) );
25735 }
25736
25737 //=== VK_NV_external_memory_rdma ===
25738
25739 // wrapper function for command vkGetMemoryRemoteAddressNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryRemoteAddressNV.html
25740 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryRemoteAddressNV ), bool>::type>
25741 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryRemoteAddressNV(
25742 MemoryGetRemoteAddressInfoNV const * pMemoryGetRemoteAddressInfo, RemoteAddressNV * pAddress, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25743 {
25744 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25745 return static_cast<Result>( d.vkGetMemoryRemoteAddressNV( static_cast<VkDevice>( m_device ),
25746 reinterpret_cast<VkMemoryGetRemoteAddressInfoNV const *>( pMemoryGetRemoteAddressInfo ),
25747 reinterpret_cast<VkRemoteAddressNV *>( pAddress ) ) );
25748 }
25749
25750 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25751 // wrapper function for command vkGetMemoryRemoteAddressNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryRemoteAddressNV.html
25752 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryRemoteAddressNV ), bool>::type>
25753 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RemoteAddressNV>::type Device::getMemoryRemoteAddressNV(
25754 MemoryGetRemoteAddressInfoNV const & memoryGetRemoteAddressInfo, Dispatch const & d ) const
25755 {
25756 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25757 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25758 VULKAN_HPP_ASSERT( d.vkGetMemoryRemoteAddressNV && "Function <vkGetMemoryRemoteAddressNV> requires <VK_NV_external_memory_rdma>" );
25759 # endif
25760
25761 RemoteAddressNV address;
25762 Result result = static_cast<Result>( d.vkGetMemoryRemoteAddressNV(
25763 m_device, reinterpret_cast<VkMemoryGetRemoteAddressInfoNV const *>( &memoryGetRemoteAddressInfo ), reinterpret_cast<VkRemoteAddressNV *>( &address ) ) );
25764 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryRemoteAddressNV" );
25765
25766 return detail::createResultValueType( result, std::move( address ) );
25767 }
25768 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25769
25770 //=== VK_EXT_pipeline_properties ===
25771
25772 // wrapper function for command vkGetPipelinePropertiesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelinePropertiesEXT.html
25773 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelinePropertiesEXT ), bool>::type>
25774 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelinePropertiesEXT(
25775 PipelineInfoEXT const * pPipelineInfo, BaseOutStructure * pPipelineProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25776 {
25777 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25778 return static_cast<Result>( d.vkGetPipelinePropertiesEXT( static_cast<VkDevice>( m_device ),
25779 reinterpret_cast<VkPipelineInfoEXT const *>( pPipelineInfo ),
25780 reinterpret_cast<VkBaseOutStructure *>( pPipelineProperties ) ) );
25781 }
25782
25783 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25784 // wrapper function for command vkGetPipelinePropertiesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelinePropertiesEXT.html
25785 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelinePropertiesEXT ), bool>::type>
25786 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<BaseOutStructure>::type Device::getPipelinePropertiesEXT(
25787 PipelineInfoEXT const & pipelineInfo, Dispatch const & d ) const
25788 {
25789 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25790 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25791 VULKAN_HPP_ASSERT( d.vkGetPipelinePropertiesEXT && "Function <vkGetPipelinePropertiesEXT> requires <VK_EXT_pipeline_properties>" );
25792 # endif
25793
25794 BaseOutStructure pipelineProperties;
25795 Result result = static_cast<Result>( d.vkGetPipelinePropertiesEXT(
25796 m_device, reinterpret_cast<VkPipelineInfoEXT const *>( &pipelineInfo ), reinterpret_cast<VkBaseOutStructure *>( &pipelineProperties ) ) );
25797 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelinePropertiesEXT" );
25798
25799 return detail::createResultValueType( result, std::move( pipelineProperties ) );
25800 }
25801 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25802
25803 //=== VK_EXT_extended_dynamic_state2 ===
25804
25805 // wrapper function for command vkCmdSetPatchControlPointsEXT, see
25806 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPatchControlPointsEXT.html
25807 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPatchControlPointsEXT ), bool>::type>
25808 VULKAN_HPP_INLINE void CommandBuffer::setPatchControlPointsEXT( uint32_t patchControlPoints, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25809 {
25810 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25811 d.vkCmdSetPatchControlPointsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), patchControlPoints );
25812 }
25813
25814 // wrapper function for command vkCmdSetRasterizerDiscardEnableEXT, see
25815 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizerDiscardEnableEXT.html
25816 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRasterizerDiscardEnableEXT ), bool>::type>
25817 VULKAN_HPP_INLINE void CommandBuffer::setRasterizerDiscardEnableEXT( Bool32 rasterizerDiscardEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25818 {
25819 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25820 d.vkCmdSetRasterizerDiscardEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( rasterizerDiscardEnable ) );
25821 }
25822
25823 // wrapper function for command vkCmdSetDepthBiasEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBiasEnableEXT.html
25824 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBiasEnableEXT ), bool>::type>
25825 VULKAN_HPP_INLINE void CommandBuffer::setDepthBiasEnableEXT( Bool32 depthBiasEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25826 {
25827 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25828 d.vkCmdSetDepthBiasEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBiasEnable ) );
25829 }
25830
25831 // wrapper function for command vkCmdSetLogicOpEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLogicOpEXT.html
25832 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLogicOpEXT ), bool>::type>
25833 VULKAN_HPP_INLINE void CommandBuffer::setLogicOpEXT( LogicOp logicOp, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25834 {
25835 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25836 d.vkCmdSetLogicOpEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkLogicOp>( logicOp ) );
25837 }
25838
25839 // wrapper function for command vkCmdSetPrimitiveRestartEnableEXT, see
25840 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveRestartEnableEXT.html
25841 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPrimitiveRestartEnableEXT ), bool>::type>
25842 VULKAN_HPP_INLINE void CommandBuffer::setPrimitiveRestartEnableEXT( Bool32 primitiveRestartEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25843 {
25844 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25845 d.vkCmdSetPrimitiveRestartEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( primitiveRestartEnable ) );
25846 }
25847
25848 #if defined( VK_USE_PLATFORM_SCREEN_QNX )
25849 //=== VK_QNX_screen_surface ===
25850
25851 // wrapper function for command vkCreateScreenSurfaceQNX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateScreenSurfaceQNX.html
25852 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateScreenSurfaceQNX ), bool>::type>
25853 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createScreenSurfaceQNX(
25854 ScreenSurfaceCreateInfoQNX const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d )
25855 const VULKAN_HPP_NOEXCEPT
25856 {
25857 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25858 return static_cast<Result>( d.vkCreateScreenSurfaceQNX( static_cast<VkInstance>( m_instance ),
25859 reinterpret_cast<VkScreenSurfaceCreateInfoQNX const *>( pCreateInfo ),
25860 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
25861 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
25862 }
25863
25864 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25865 // wrapper function for command vkCreateScreenSurfaceQNX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateScreenSurfaceQNX.html
25866 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateScreenSurfaceQNX ), bool>::type>
25867 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createScreenSurfaceQNX(
25868 ScreenSurfaceCreateInfoQNX const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
25869 {
25870 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25871 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25872 VULKAN_HPP_ASSERT( d.vkCreateScreenSurfaceQNX && "Function <vkCreateScreenSurfaceQNX> requires <VK_QNX_screen_surface>" );
25873 # endif
25874
25875 SurfaceKHR surface;
25876 Result result = static_cast<Result>( d.vkCreateScreenSurfaceQNX( m_instance,
25877 reinterpret_cast<VkScreenSurfaceCreateInfoQNX const *>( &createInfo ),
25878 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
25879 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
25880 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createScreenSurfaceQNX" );
25881
25882 return detail::createResultValueType( result, std::move( surface ) );
25883 }
25884
25885 # ifndef VULKAN_HPP_NO_SMART_HANDLE
25886 // wrapper function for command vkCreateScreenSurfaceQNX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateScreenSurfaceQNX.html
25887 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateScreenSurfaceQNX ), bool>::type>
25888 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createScreenSurfaceQNXUnique(
25889 ScreenSurfaceCreateInfoQNX const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
25890 {
25891 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25892 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25893 VULKAN_HPP_ASSERT( d.vkCreateScreenSurfaceQNX && "Function <vkCreateScreenSurfaceQNX> requires <VK_QNX_screen_surface>" );
25894 # endif
25895
25896 SurfaceKHR surface;
25897 Result result = static_cast<Result>( d.vkCreateScreenSurfaceQNX( m_instance,
25898 reinterpret_cast<VkScreenSurfaceCreateInfoQNX const *>( &createInfo ),
25899 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
25900 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
25901 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createScreenSurfaceQNXUnique" );
25902
25903 return detail::createResultValueType( result,
25904 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
25905 }
25906 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
25907 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25908
25909 // wrapper function for command vkGetPhysicalDeviceScreenPresentationSupportQNX, see
25910 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceScreenPresentationSupportQNX.html
25911 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceScreenPresentationSupportQNX ), bool>::type>
25912 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getScreenPresentationSupportQNX( uint32_t queueFamilyIndex, struct _screen_window * window, Dispatch const & d )
25913 const VULKAN_HPP_NOEXCEPT
25914 {
25915 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25916 return static_cast<Bool32>(
25917 d.vkGetPhysicalDeviceScreenPresentationSupportQNX( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, window ) );
25918 }
25919
25920 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25921 // wrapper function for command vkGetPhysicalDeviceScreenPresentationSupportQNX, see
25922 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceScreenPresentationSupportQNX.html
25923 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceScreenPresentationSupportQNX ), bool>::type>
25924 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getScreenPresentationSupportQNX( uint32_t queueFamilyIndex, struct _screen_window & window, Dispatch const & d )
25925 const VULKAN_HPP_NOEXCEPT
25926 {
25927 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25928 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25929 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceScreenPresentationSupportQNX &&
25930 "Function <vkGetPhysicalDeviceScreenPresentationSupportQNX> requires <VK_QNX_screen_surface>" );
25931 # endif
25932
25933 VkBool32 result = d.vkGetPhysicalDeviceScreenPresentationSupportQNX( m_physicalDevice, queueFamilyIndex, &window );
25934
25935 return static_cast<Bool32>( result );
25936 }
25937 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25938 #endif /*VK_USE_PLATFORM_SCREEN_QNX*/
25939
25940 //=== VK_EXT_color_write_enable ===
25941
25942 // wrapper function for command vkCmdSetColorWriteEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorWriteEnableEXT.html
25943 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorWriteEnableEXT ), bool>::type>
25944 VULKAN_HPP_INLINE void CommandBuffer::setColorWriteEnableEXT( uint32_t attachmentCount, Bool32 const * pColorWriteEnables, Dispatch const & d )
25945 const VULKAN_HPP_NOEXCEPT
25946 {
25947 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25948 d.vkCmdSetColorWriteEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), attachmentCount, reinterpret_cast<VkBool32 const *>( pColorWriteEnables ) );
25949 }
25950
25951 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25952 // wrapper function for command vkCmdSetColorWriteEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorWriteEnableEXT.html
25953 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorWriteEnableEXT ), bool>::type>
25954 VULKAN_HPP_INLINE void CommandBuffer::setColorWriteEnableEXT( ArrayProxy<Bool32 const> const & colorWriteEnables, Dispatch const & d )
25955 const VULKAN_HPP_NOEXCEPT
25956 {
25957 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25958 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25959 VULKAN_HPP_ASSERT( d.vkCmdSetColorWriteEnableEXT && "Function <vkCmdSetColorWriteEnableEXT> requires <VK_EXT_color_write_enable>" );
25960 # endif
25961
25962 d.vkCmdSetColorWriteEnableEXT( m_commandBuffer, colorWriteEnables.size(), reinterpret_cast<VkBool32 const *>( colorWriteEnables.data() ) );
25963 }
25964 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25965
25966 //=== VK_KHR_ray_tracing_maintenance1 ===
25967
25968 // wrapper function for command vkCmdTraceRaysIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysIndirect2KHR.html
25969 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdTraceRaysIndirect2KHR ), bool>::type>
25970 VULKAN_HPP_INLINE void CommandBuffer::traceRaysIndirect2KHR( DeviceAddress indirectDeviceAddress, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25971 {
25972 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25973 d.vkCmdTraceRaysIndirect2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkDeviceAddress>( indirectDeviceAddress ) );
25974 }
25975
25976 //=== VK_EXT_multi_draw ===
25977
25978 // wrapper function for command vkCmdDrawMultiEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMultiEXT.html
25979 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMultiEXT ), bool>::type>
25980 VULKAN_HPP_INLINE void CommandBuffer::drawMultiEXT(
25981 uint32_t drawCount, MultiDrawInfoEXT const * pVertexInfo, uint32_t instanceCount, uint32_t firstInstance, uint32_t stride, Dispatch const & d )
25982 const VULKAN_HPP_NOEXCEPT
25983 {
25984 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25985 d.vkCmdDrawMultiEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
25986 drawCount,
25987 reinterpret_cast<VkMultiDrawInfoEXT const *>( pVertexInfo ),
25988 instanceCount,
25989 firstInstance,
25990 stride );
25991 }
25992
25993 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25994 // wrapper function for command vkCmdDrawMultiEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMultiEXT.html
25995 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMultiEXT ), bool>::type>
25996 VULKAN_HPP_INLINE void CommandBuffer::drawMultiEXT(
25997 StridedArrayProxy<MultiDrawInfoEXT const> const & vertexInfo, uint32_t instanceCount, uint32_t firstInstance, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25998 {
25999 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26000 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26001 VULKAN_HPP_ASSERT( d.vkCmdDrawMultiEXT && "Function <vkCmdDrawMultiEXT> requires <VK_EXT_multi_draw>" );
26002 # endif
26003
26004 d.vkCmdDrawMultiEXT( m_commandBuffer,
26005 vertexInfo.size(),
26006 reinterpret_cast<VkMultiDrawInfoEXT const *>( vertexInfo.data() ),
26007 instanceCount,
26008 firstInstance,
26009 vertexInfo.stride() );
26010 }
26011 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26012
26013 // wrapper function for command vkCmdDrawMultiIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMultiIndexedEXT.html
26014 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMultiIndexedEXT ), bool>::type>
26015 VULKAN_HPP_INLINE void CommandBuffer::drawMultiIndexedEXT( uint32_t drawCount,
26016 MultiDrawIndexedInfoEXT const * pIndexInfo,
26017 uint32_t instanceCount,
26018 uint32_t firstInstance,
26019 uint32_t stride,
26020 int32_t const * pVertexOffset,
26021 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26022 {
26023 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26024 d.vkCmdDrawMultiIndexedEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
26025 drawCount,
26026 reinterpret_cast<VkMultiDrawIndexedInfoEXT const *>( pIndexInfo ),
26027 instanceCount,
26028 firstInstance,
26029 stride,
26030 pVertexOffset );
26031 }
26032
26033 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26034 // wrapper function for command vkCmdDrawMultiIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMultiIndexedEXT.html
26035 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMultiIndexedEXT ), bool>::type>
26036 VULKAN_HPP_INLINE void CommandBuffer::drawMultiIndexedEXT( StridedArrayProxy<MultiDrawIndexedInfoEXT const> const & indexInfo,
26037 uint32_t instanceCount,
26038 uint32_t firstInstance,
26039 Optional<int32_t const> vertexOffset,
26040 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26041 {
26042 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26043 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26044 VULKAN_HPP_ASSERT( d.vkCmdDrawMultiIndexedEXT && "Function <vkCmdDrawMultiIndexedEXT> requires <VK_EXT_multi_draw>" );
26045 # endif
26046
26047 d.vkCmdDrawMultiIndexedEXT( m_commandBuffer,
26048 indexInfo.size(),
26049 reinterpret_cast<VkMultiDrawIndexedInfoEXT const *>( indexInfo.data() ),
26050 instanceCount,
26051 firstInstance,
26052 indexInfo.stride(),
26053 vertexOffset.get() );
26054 }
26055 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26056
26057 //=== VK_EXT_opacity_micromap ===
26058
26059 // wrapper function for command vkCreateMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMicromapEXT.html
26060 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMicromapEXT ), bool>::type>
26061 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createMicromapEXT(
26062 MicromapCreateInfoEXT const * pCreateInfo, AllocationCallbacks const * pAllocator, MicromapEXT * pMicromap, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26063 {
26064 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26065 return static_cast<Result>( d.vkCreateMicromapEXT( static_cast<VkDevice>( m_device ),
26066 reinterpret_cast<VkMicromapCreateInfoEXT const *>( pCreateInfo ),
26067 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
26068 reinterpret_cast<VkMicromapEXT *>( pMicromap ) ) );
26069 }
26070
26071 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26072 // wrapper function for command vkCreateMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMicromapEXT.html
26073 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMicromapEXT ), bool>::type>
26074 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MicromapEXT>::type Device::createMicromapEXT(
26075 MicromapCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
26076 {
26077 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26078 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26079 VULKAN_HPP_ASSERT( d.vkCreateMicromapEXT && "Function <vkCreateMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26080 # endif
26081
26082 MicromapEXT micromap;
26083 Result result = static_cast<Result>( d.vkCreateMicromapEXT( m_device,
26084 reinterpret_cast<VkMicromapCreateInfoEXT const *>( &createInfo ),
26085 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
26086 reinterpret_cast<VkMicromapEXT *>( &micromap ) ) );
26087 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createMicromapEXT" );
26088
26089 return detail::createResultValueType( result, std::move( micromap ) );
26090 }
26091
26092 # ifndef VULKAN_HPP_NO_SMART_HANDLE
26093 // wrapper function for command vkCreateMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMicromapEXT.html
26094 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMicromapEXT ), bool>::type>
26095 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<MicromapEXT, Dispatch>>::type Device::createMicromapEXTUnique(
26096 MicromapCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
26097 {
26098 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26099 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26100 VULKAN_HPP_ASSERT( d.vkCreateMicromapEXT && "Function <vkCreateMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26101 # endif
26102
26103 MicromapEXT micromap;
26104 Result result = static_cast<Result>( d.vkCreateMicromapEXT( m_device,
26105 reinterpret_cast<VkMicromapCreateInfoEXT const *>( &createInfo ),
26106 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
26107 reinterpret_cast<VkMicromapEXT *>( &micromap ) ) );
26108 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createMicromapEXTUnique" );
26109
26110 return detail::createResultValueType( result,
26111 UniqueHandle<MicromapEXT, Dispatch>( micromap, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
26112 }
26113 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
26114 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26115
26116 // wrapper function for command vkDestroyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyMicromapEXT.html
26117 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyMicromapEXT ), bool>::type>
26118 VULKAN_HPP_INLINE void Device::destroyMicromapEXT( MicromapEXT micromap, AllocationCallbacks const * pAllocator, Dispatch const & d )
26119 const VULKAN_HPP_NOEXCEPT
26120 {
26121 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26122 d.vkDestroyMicromapEXT(
26123 static_cast<VkDevice>( m_device ), static_cast<VkMicromapEXT>( micromap ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
26124 }
26125
26126 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26127 // wrapper function for command vkDestroyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyMicromapEXT.html
26128 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyMicromapEXT ), bool>::type>
26129 VULKAN_HPP_INLINE void Device::destroyMicromapEXT( MicromapEXT micromap, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
26130 const VULKAN_HPP_NOEXCEPT
26131 {
26132 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26133 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26134 VULKAN_HPP_ASSERT( d.vkDestroyMicromapEXT && "Function <vkDestroyMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26135 # endif
26136
26137 d.vkDestroyMicromapEXT( m_device, static_cast<VkMicromapEXT>( micromap ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
26138 }
26139 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26140
26141 // wrapper function for command vkDestroyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyMicromapEXT.html
26142 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyMicromapEXT ), bool>::type>
26143 VULKAN_HPP_INLINE void Device::destroy( MicromapEXT micromap, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26144 {
26145 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26146 d.vkDestroyMicromapEXT(
26147 static_cast<VkDevice>( m_device ), static_cast<VkMicromapEXT>( micromap ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
26148 }
26149
26150 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26151 // wrapper function for command vkDestroyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyMicromapEXT.html
26152 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyMicromapEXT ), bool>::type>
26153 VULKAN_HPP_INLINE void Device::destroy( MicromapEXT micromap, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26154 {
26155 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26156 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26157 VULKAN_HPP_ASSERT( d.vkDestroyMicromapEXT && "Function <vkDestroyMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26158 # endif
26159
26160 d.vkDestroyMicromapEXT( m_device, static_cast<VkMicromapEXT>( micromap ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
26161 }
26162 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26163
26164 // wrapper function for command vkCmdBuildMicromapsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildMicromapsEXT.html
26165 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildMicromapsEXT ), bool>::type>
26166 VULKAN_HPP_INLINE void CommandBuffer::buildMicromapsEXT( uint32_t infoCount, MicromapBuildInfoEXT const * pInfos, Dispatch const & d )
26167 const VULKAN_HPP_NOEXCEPT
26168 {
26169 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26170 d.vkCmdBuildMicromapsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), infoCount, reinterpret_cast<VkMicromapBuildInfoEXT const *>( pInfos ) );
26171 }
26172
26173 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26174 // wrapper function for command vkCmdBuildMicromapsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildMicromapsEXT.html
26175 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildMicromapsEXT ), bool>::type>
26176 VULKAN_HPP_INLINE void CommandBuffer::buildMicromapsEXT( ArrayProxy<MicromapBuildInfoEXT const> const & infos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26177 {
26178 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26179 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26180 VULKAN_HPP_ASSERT( d.vkCmdBuildMicromapsEXT && "Function <vkCmdBuildMicromapsEXT> requires <VK_EXT_opacity_micromap>" );
26181 # endif
26182
26183 d.vkCmdBuildMicromapsEXT( m_commandBuffer, infos.size(), reinterpret_cast<VkMicromapBuildInfoEXT const *>( infos.data() ) );
26184 }
26185 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26186
26187 // wrapper function for command vkBuildMicromapsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBuildMicromapsEXT.html
26188 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBuildMicromapsEXT ), bool>::type>
26189 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::buildMicromapsEXT(
26190 DeferredOperationKHR deferredOperation, uint32_t infoCount, MicromapBuildInfoEXT const * pInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26191 {
26192 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26193 return static_cast<Result>( d.vkBuildMicromapsEXT( static_cast<VkDevice>( m_device ),
26194 static_cast<VkDeferredOperationKHR>( deferredOperation ),
26195 infoCount,
26196 reinterpret_cast<VkMicromapBuildInfoEXT const *>( pInfos ) ) );
26197 }
26198
26199 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26200 // wrapper function for command vkBuildMicromapsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBuildMicromapsEXT.html
26201 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBuildMicromapsEXT ), bool>::type>
26202 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::buildMicromapsEXT(
26203 DeferredOperationKHR deferredOperation, ArrayProxy<MicromapBuildInfoEXT const> const & infos, Dispatch const & d ) const
26204 {
26205 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26206 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26207 VULKAN_HPP_ASSERT( d.vkBuildMicromapsEXT && "Function <vkBuildMicromapsEXT> requires <VK_EXT_opacity_micromap>" );
26208 # endif
26209
26210 Result result = static_cast<Result>( d.vkBuildMicromapsEXT(
26211 m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), infos.size(), reinterpret_cast<VkMicromapBuildInfoEXT const *>( infos.data() ) ) );
26212 detail::resultCheck( result,
26213 VULKAN_HPP_NAMESPACE_STRING "::Device::buildMicromapsEXT",
26214 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
26215
26216 return static_cast<Result>( result );
26217 }
26218 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26219
26220 // wrapper function for command vkCopyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMicromapEXT.html
26221 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMicromapEXT ), bool>::type>
26222 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMicromapEXT(
26223 DeferredOperationKHR deferredOperation, CopyMicromapInfoEXT const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26224 {
26225 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26226 return static_cast<Result>( d.vkCopyMicromapEXT(
26227 static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<VkCopyMicromapInfoEXT const *>( pInfo ) ) );
26228 }
26229
26230 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26231 // wrapper function for command vkCopyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMicromapEXT.html
26232 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMicromapEXT ), bool>::type>
26233 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMicromapEXT(
26234 DeferredOperationKHR deferredOperation, CopyMicromapInfoEXT const & info, Dispatch const & d ) const
26235 {
26236 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26237 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26238 VULKAN_HPP_ASSERT( d.vkCopyMicromapEXT && "Function <vkCopyMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26239 # endif
26240
26241 Result result = static_cast<Result>(
26242 d.vkCopyMicromapEXT( m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<VkCopyMicromapInfoEXT const *>( &info ) ) );
26243 detail::resultCheck(
26244 result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyMicromapEXT", { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
26245
26246 return static_cast<Result>( result );
26247 }
26248 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26249
26250 // wrapper function for command vkCopyMicromapToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMicromapToMemoryEXT.html
26251 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMicromapToMemoryEXT ), bool>::type>
26252 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMicromapToMemoryEXT(
26253 DeferredOperationKHR deferredOperation, CopyMicromapToMemoryInfoEXT const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26254 {
26255 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26256 return static_cast<Result>( d.vkCopyMicromapToMemoryEXT( static_cast<VkDevice>( m_device ),
26257 static_cast<VkDeferredOperationKHR>( deferredOperation ),
26258 reinterpret_cast<VkCopyMicromapToMemoryInfoEXT const *>( pInfo ) ) );
26259 }
26260
26261 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26262 // wrapper function for command vkCopyMicromapToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMicromapToMemoryEXT.html
26263 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMicromapToMemoryEXT ), bool>::type>
26264 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMicromapToMemoryEXT(
26265 DeferredOperationKHR deferredOperation, CopyMicromapToMemoryInfoEXT const & info, Dispatch const & d ) const
26266 {
26267 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26268 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26269 VULKAN_HPP_ASSERT( d.vkCopyMicromapToMemoryEXT && "Function <vkCopyMicromapToMemoryEXT> requires <VK_EXT_opacity_micromap>" );
26270 # endif
26271
26272 Result result = static_cast<Result>( d.vkCopyMicromapToMemoryEXT(
26273 m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<VkCopyMicromapToMemoryInfoEXT const *>( &info ) ) );
26274 detail::resultCheck( result,
26275 VULKAN_HPP_NAMESPACE_STRING "::Device::copyMicromapToMemoryEXT",
26276 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
26277
26278 return static_cast<Result>( result );
26279 }
26280 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26281
26282 // wrapper function for command vkCopyMemoryToMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToMicromapEXT.html
26283 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToMicromapEXT ), bool>::type>
26284 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToMicromapEXT(
26285 DeferredOperationKHR deferredOperation, CopyMemoryToMicromapInfoEXT const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26286 {
26287 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26288 return static_cast<Result>( d.vkCopyMemoryToMicromapEXT( static_cast<VkDevice>( m_device ),
26289 static_cast<VkDeferredOperationKHR>( deferredOperation ),
26290 reinterpret_cast<VkCopyMemoryToMicromapInfoEXT const *>( pInfo ) ) );
26291 }
26292
26293 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26294 // wrapper function for command vkCopyMemoryToMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToMicromapEXT.html
26295 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToMicromapEXT ), bool>::type>
26296 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToMicromapEXT(
26297 DeferredOperationKHR deferredOperation, CopyMemoryToMicromapInfoEXT const & info, Dispatch const & d ) const
26298 {
26299 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26300 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26301 VULKAN_HPP_ASSERT( d.vkCopyMemoryToMicromapEXT && "Function <vkCopyMemoryToMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26302 # endif
26303
26304 Result result = static_cast<Result>( d.vkCopyMemoryToMicromapEXT(
26305 m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<VkCopyMemoryToMicromapInfoEXT const *>( &info ) ) );
26306 detail::resultCheck( result,
26307 VULKAN_HPP_NAMESPACE_STRING "::Device::copyMemoryToMicromapEXT",
26308 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
26309
26310 return static_cast<Result>( result );
26311 }
26312 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26313
26314 // wrapper function for command vkWriteMicromapsPropertiesEXT, see
26315 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteMicromapsPropertiesEXT.html
26316 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteMicromapsPropertiesEXT ), bool>::type>
26317 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::writeMicromapsPropertiesEXT(
26318 uint32_t micromapCount, MicromapEXT const * pMicromaps, QueryType queryType, size_t dataSize, void * pData, size_t stride, Dispatch const & d )
26319 const VULKAN_HPP_NOEXCEPT
26320 {
26321 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26322 return static_cast<Result>( d.vkWriteMicromapsPropertiesEXT( static_cast<VkDevice>( m_device ),
26323 micromapCount,
26324 reinterpret_cast<VkMicromapEXT const *>( pMicromaps ),
26325 static_cast<VkQueryType>( queryType ),
26326 dataSize,
26327 pData,
26328 stride ) );
26329 }
26330
26331 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26332 // wrapper function for command vkWriteMicromapsPropertiesEXT, see
26333 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteMicromapsPropertiesEXT.html
26334 template <typename DataType,
26335 typename DataTypeAllocator,
26336 typename Dispatch,
26337 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
26338 typename std::enable_if<IS_DISPATCHED( vkWriteMicromapsPropertiesEXT ), bool>::type>
26339 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType, DataTypeAllocator>>::type Device::writeMicromapsPropertiesEXT(
26340 ArrayProxy<MicromapEXT const> const & micromaps, QueryType queryType, size_t dataSize, size_t stride, Dispatch const & d ) const
26341 {
26342 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26343 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26344 VULKAN_HPP_ASSERT( d.vkWriteMicromapsPropertiesEXT && "Function <vkWriteMicromapsPropertiesEXT> requires <VK_EXT_opacity_micromap>" );
26345 # endif
26346
26347 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
26348 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
26349 Result result = static_cast<Result>( d.vkWriteMicromapsPropertiesEXT( m_device,
26350 micromaps.size(),
26351 reinterpret_cast<VkMicromapEXT const *>( micromaps.data() ),
26352 static_cast<VkQueryType>( queryType ),
26353 data.size() * sizeof( DataType ),
26354 reinterpret_cast<void *>( data.data() ),
26355 stride ) );
26356 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeMicromapsPropertiesEXT" );
26357
26358 return detail::createResultValueType( result, std::move( data ) );
26359 }
26360
26361 // wrapper function for command vkWriteMicromapsPropertiesEXT, see
26362 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteMicromapsPropertiesEXT.html
26363 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteMicromapsPropertiesEXT ), bool>::type>
26364 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::writeMicromapsPropertyEXT(
26365 ArrayProxy<MicromapEXT const> const & micromaps, QueryType queryType, size_t stride, Dispatch const & d ) const
26366 {
26367 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26368 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26369 VULKAN_HPP_ASSERT( d.vkWriteMicromapsPropertiesEXT && "Function <vkWriteMicromapsPropertiesEXT> requires <VK_EXT_opacity_micromap>" );
26370 # endif
26371
26372 DataType data;
26373 Result result = static_cast<Result>( d.vkWriteMicromapsPropertiesEXT( m_device,
26374 micromaps.size(),
26375 reinterpret_cast<VkMicromapEXT const *>( micromaps.data() ),
26376 static_cast<VkQueryType>( queryType ),
26377 sizeof( DataType ),
26378 reinterpret_cast<void *>( &data ),
26379 stride ) );
26380 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeMicromapsPropertyEXT" );
26381
26382 return detail::createResultValueType( result, std::move( data ) );
26383 }
26384 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26385
26386 // wrapper function for command vkCmdCopyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMicromapEXT.html
26387 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMicromapEXT ), bool>::type>
26388 VULKAN_HPP_INLINE void CommandBuffer::copyMicromapEXT( CopyMicromapInfoEXT const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26389 {
26390 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26391 d.vkCmdCopyMicromapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyMicromapInfoEXT const *>( pInfo ) );
26392 }
26393
26394 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26395 // wrapper function for command vkCmdCopyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMicromapEXT.html
26396 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMicromapEXT ), bool>::type>
26397 VULKAN_HPP_INLINE void CommandBuffer::copyMicromapEXT( CopyMicromapInfoEXT const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26398 {
26399 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26400 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26401 VULKAN_HPP_ASSERT( d.vkCmdCopyMicromapEXT && "Function <vkCmdCopyMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26402 # endif
26403
26404 d.vkCmdCopyMicromapEXT( m_commandBuffer, reinterpret_cast<VkCopyMicromapInfoEXT const *>( &info ) );
26405 }
26406 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26407
26408 // wrapper function for command vkCmdCopyMicromapToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMicromapToMemoryEXT.html
26409 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMicromapToMemoryEXT ), bool>::type>
26410 VULKAN_HPP_INLINE void CommandBuffer::copyMicromapToMemoryEXT( CopyMicromapToMemoryInfoEXT const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26411 {
26412 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26413 d.vkCmdCopyMicromapToMemoryEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyMicromapToMemoryInfoEXT const *>( pInfo ) );
26414 }
26415
26416 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26417 // wrapper function for command vkCmdCopyMicromapToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMicromapToMemoryEXT.html
26418 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMicromapToMemoryEXT ), bool>::type>
26419 VULKAN_HPP_INLINE void CommandBuffer::copyMicromapToMemoryEXT( CopyMicromapToMemoryInfoEXT const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26420 {
26421 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26422 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26423 VULKAN_HPP_ASSERT( d.vkCmdCopyMicromapToMemoryEXT && "Function <vkCmdCopyMicromapToMemoryEXT> requires <VK_EXT_opacity_micromap>" );
26424 # endif
26425
26426 d.vkCmdCopyMicromapToMemoryEXT( m_commandBuffer, reinterpret_cast<VkCopyMicromapToMemoryInfoEXT const *>( &info ) );
26427 }
26428 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26429
26430 // wrapper function for command vkCmdCopyMemoryToMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToMicromapEXT.html
26431 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToMicromapEXT ), bool>::type>
26432 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToMicromapEXT( CopyMemoryToMicromapInfoEXT const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26433 {
26434 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26435 d.vkCmdCopyMemoryToMicromapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyMemoryToMicromapInfoEXT const *>( pInfo ) );
26436 }
26437
26438 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26439 // wrapper function for command vkCmdCopyMemoryToMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToMicromapEXT.html
26440 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToMicromapEXT ), bool>::type>
26441 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToMicromapEXT( CopyMemoryToMicromapInfoEXT const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26442 {
26443 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26444 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26445 VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToMicromapEXT && "Function <vkCmdCopyMemoryToMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26446 # endif
26447
26448 d.vkCmdCopyMemoryToMicromapEXT( m_commandBuffer, reinterpret_cast<VkCopyMemoryToMicromapInfoEXT const *>( &info ) );
26449 }
26450 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26451
26452 // wrapper function for command vkCmdWriteMicromapsPropertiesEXT, see
26453 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteMicromapsPropertiesEXT.html
26454 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteMicromapsPropertiesEXT ), bool>::type>
26455 VULKAN_HPP_INLINE void CommandBuffer::writeMicromapsPropertiesEXT(
26456 uint32_t micromapCount, MicromapEXT const * pMicromaps, QueryType queryType, QueryPool queryPool, uint32_t firstQuery, Dispatch const & d )
26457 const VULKAN_HPP_NOEXCEPT
26458 {
26459 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26460 d.vkCmdWriteMicromapsPropertiesEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
26461 micromapCount,
26462 reinterpret_cast<VkMicromapEXT const *>( pMicromaps ),
26463 static_cast<VkQueryType>( queryType ),
26464 static_cast<VkQueryPool>( queryPool ),
26465 firstQuery );
26466 }
26467
26468 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26469 // wrapper function for command vkCmdWriteMicromapsPropertiesEXT, see
26470 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteMicromapsPropertiesEXT.html
26471 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteMicromapsPropertiesEXT ), bool>::type>
26472 VULKAN_HPP_INLINE void CommandBuffer::writeMicromapsPropertiesEXT(
26473 ArrayProxy<MicromapEXT const> const & micromaps, QueryType queryType, QueryPool queryPool, uint32_t firstQuery, Dispatch const & d )
26474 const VULKAN_HPP_NOEXCEPT
26475 {
26476 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26477 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26478 VULKAN_HPP_ASSERT( d.vkCmdWriteMicromapsPropertiesEXT && "Function <vkCmdWriteMicromapsPropertiesEXT> requires <VK_EXT_opacity_micromap>" );
26479 # endif
26480
26481 d.vkCmdWriteMicromapsPropertiesEXT( m_commandBuffer,
26482 micromaps.size(),
26483 reinterpret_cast<VkMicromapEXT const *>( micromaps.data() ),
26484 static_cast<VkQueryType>( queryType ),
26485 static_cast<VkQueryPool>( queryPool ),
26486 firstQuery );
26487 }
26488 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26489
26490 // wrapper function for command vkGetDeviceMicromapCompatibilityEXT, see
26491 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMicromapCompatibilityEXT.html
26492 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMicromapCompatibilityEXT ), bool>::type>
26493 VULKAN_HPP_INLINE void Device::getMicromapCompatibilityEXT(
26494 MicromapVersionInfoEXT const * pVersionInfo, AccelerationStructureCompatibilityKHR * pCompatibility, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26495 {
26496 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26497 d.vkGetDeviceMicromapCompatibilityEXT( static_cast<VkDevice>( m_device ),
26498 reinterpret_cast<VkMicromapVersionInfoEXT const *>( pVersionInfo ),
26499 reinterpret_cast<VkAccelerationStructureCompatibilityKHR *>( pCompatibility ) );
26500 }
26501
26502 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26503 // wrapper function for command vkGetDeviceMicromapCompatibilityEXT, see
26504 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMicromapCompatibilityEXT.html
26505 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMicromapCompatibilityEXT ), bool>::type>
26506 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureCompatibilityKHR Device::getMicromapCompatibilityEXT(
26507 MicromapVersionInfoEXT const & versionInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26508 {
26509 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26510 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26511 VULKAN_HPP_ASSERT( d.vkGetDeviceMicromapCompatibilityEXT && "Function <vkGetDeviceMicromapCompatibilityEXT> requires <VK_EXT_opacity_micromap>" );
26512 # endif
26513
26514 AccelerationStructureCompatibilityKHR compatibility;
26515 d.vkGetDeviceMicromapCompatibilityEXT( m_device,
26516 reinterpret_cast<VkMicromapVersionInfoEXT const *>( &versionInfo ),
26517 reinterpret_cast<VkAccelerationStructureCompatibilityKHR *>( &compatibility ) );
26518
26519 return compatibility;
26520 }
26521 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26522
26523 // wrapper function for command vkGetMicromapBuildSizesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMicromapBuildSizesEXT.html
26524 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMicromapBuildSizesEXT ), bool>::type>
26525 VULKAN_HPP_INLINE void Device::getMicromapBuildSizesEXT(
26526 AccelerationStructureBuildTypeKHR buildType, MicromapBuildInfoEXT const * pBuildInfo, MicromapBuildSizesInfoEXT * pSizeInfo, Dispatch const & d )
26527 const VULKAN_HPP_NOEXCEPT
26528 {
26529 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26530 d.vkGetMicromapBuildSizesEXT( static_cast<VkDevice>( m_device ),
26531 static_cast<VkAccelerationStructureBuildTypeKHR>( buildType ),
26532 reinterpret_cast<VkMicromapBuildInfoEXT const *>( pBuildInfo ),
26533 reinterpret_cast<VkMicromapBuildSizesInfoEXT *>( pSizeInfo ) );
26534 }
26535
26536 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26537 // wrapper function for command vkGetMicromapBuildSizesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMicromapBuildSizesEXT.html
26538 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMicromapBuildSizesEXT ), bool>::type>
26539 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MicromapBuildSizesInfoEXT Device::getMicromapBuildSizesEXT(
26540 AccelerationStructureBuildTypeKHR buildType, MicromapBuildInfoEXT const & buildInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26541 {
26542 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26543 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26544 VULKAN_HPP_ASSERT( d.vkGetMicromapBuildSizesEXT && "Function <vkGetMicromapBuildSizesEXT> requires <VK_EXT_opacity_micromap>" );
26545 # endif
26546
26547 MicromapBuildSizesInfoEXT sizeInfo;
26548 d.vkGetMicromapBuildSizesEXT( m_device,
26549 static_cast<VkAccelerationStructureBuildTypeKHR>( buildType ),
26550 reinterpret_cast<VkMicromapBuildInfoEXT const *>( &buildInfo ),
26551 reinterpret_cast<VkMicromapBuildSizesInfoEXT *>( &sizeInfo ) );
26552
26553 return sizeInfo;
26554 }
26555 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26556
26557 //=== VK_HUAWEI_cluster_culling_shader ===
26558
26559 // wrapper function for command vkCmdDrawClusterHUAWEI, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawClusterHUAWEI.html
26560 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawClusterHUAWEI ), bool>::type>
26561 VULKAN_HPP_INLINE void CommandBuffer::drawClusterHUAWEI( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ, Dispatch const & d )
26562 const VULKAN_HPP_NOEXCEPT
26563 {
26564 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26565 d.vkCmdDrawClusterHUAWEI( static_cast<VkCommandBuffer>( m_commandBuffer ), groupCountX, groupCountY, groupCountZ );
26566 }
26567
26568 // wrapper function for command vkCmdDrawClusterIndirectHUAWEI, see
26569 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawClusterIndirectHUAWEI.html
26570 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawClusterIndirectHUAWEI ), bool>::type>
26571 VULKAN_HPP_INLINE void CommandBuffer::drawClusterIndirectHUAWEI( Buffer buffer, DeviceSize offset, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26572 {
26573 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26574 d.vkCmdDrawClusterIndirectHUAWEI( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ) );
26575 }
26576
26577 //=== VK_EXT_pageable_device_local_memory ===
26578
26579 // wrapper function for command vkSetDeviceMemoryPriorityEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDeviceMemoryPriorityEXT.html
26580 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDeviceMemoryPriorityEXT ), bool>::type>
26581 VULKAN_HPP_INLINE void Device::setMemoryPriorityEXT( DeviceMemory memory, float priority, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26582 {
26583 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26584 d.vkSetDeviceMemoryPriorityEXT( static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( memory ), priority );
26585 }
26586
26587 //=== VK_KHR_maintenance4 ===
26588
26589 // wrapper function for command vkGetDeviceBufferMemoryRequirementsKHR, see
26590 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirementsKHR.html
26591 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceBufferMemoryRequirementsKHR ), bool>::type>
26592 VULKAN_HPP_INLINE void Device::getBufferMemoryRequirementsKHR(
26593 DeviceBufferMemoryRequirements const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26594 {
26595 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26596 d.vkGetDeviceBufferMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
26597 reinterpret_cast<VkDeviceBufferMemoryRequirements const *>( pInfo ),
26598 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
26599 }
26600
26601 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26602 // wrapper function for command vkGetDeviceBufferMemoryRequirementsKHR, see
26603 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirementsKHR.html
26604 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceBufferMemoryRequirementsKHR ), bool>::type>
26605 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getBufferMemoryRequirementsKHR( DeviceBufferMemoryRequirements const & info,
26606 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26607 {
26608 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26609 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26610 VULKAN_HPP_ASSERT( d.vkGetDeviceBufferMemoryRequirementsKHR &&
26611 "Function <vkGetDeviceBufferMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26612 # endif
26613
26614 MemoryRequirements2 memoryRequirements;
26615 d.vkGetDeviceBufferMemoryRequirementsKHR(
26616 m_device, reinterpret_cast<VkDeviceBufferMemoryRequirements const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26617
26618 return memoryRequirements;
26619 }
26620
26621 // wrapper function for command vkGetDeviceBufferMemoryRequirementsKHR, see
26622 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirementsKHR.html
26623 template <typename X,
26624 typename Y,
26625 typename... Z,
26626 typename Dispatch,
26627 typename std::enable_if<IS_DISPATCHED( vkGetDeviceBufferMemoryRequirementsKHR ), bool>::type>
26628 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getBufferMemoryRequirementsKHR( DeviceBufferMemoryRequirements const & info,
26629 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26630 {
26631 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26632 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26633 VULKAN_HPP_ASSERT( d.vkGetDeviceBufferMemoryRequirementsKHR &&
26634 "Function <vkGetDeviceBufferMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26635 # endif
26636
26637 StructureChain<X, Y, Z...> structureChain;
26638 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
26639 d.vkGetDeviceBufferMemoryRequirementsKHR(
26640 m_device, reinterpret_cast<VkDeviceBufferMemoryRequirements const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26641
26642 return structureChain;
26643 }
26644 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26645
26646 // wrapper function for command vkGetDeviceImageMemoryRequirementsKHR, see
26647 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirementsKHR.html
26648 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageMemoryRequirementsKHR ), bool>::type>
26649 VULKAN_HPP_INLINE void Device::getImageMemoryRequirementsKHR(
26650 DeviceImageMemoryRequirements const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26651 {
26652 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26653 d.vkGetDeviceImageMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
26654 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( pInfo ),
26655 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
26656 }
26657
26658 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26659 // wrapper function for command vkGetDeviceImageMemoryRequirementsKHR, see
26660 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirementsKHR.html
26661 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageMemoryRequirementsKHR ), bool>::type>
26662 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getImageMemoryRequirementsKHR( DeviceImageMemoryRequirements const & info,
26663 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26664 {
26665 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26666 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26667 VULKAN_HPP_ASSERT( d.vkGetDeviceImageMemoryRequirementsKHR &&
26668 "Function <vkGetDeviceImageMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26669 # endif
26670
26671 MemoryRequirements2 memoryRequirements;
26672 d.vkGetDeviceImageMemoryRequirementsKHR(
26673 m_device, reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26674
26675 return memoryRequirements;
26676 }
26677
26678 // wrapper function for command vkGetDeviceImageMemoryRequirementsKHR, see
26679 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirementsKHR.html
26680 template <typename X,
26681 typename Y,
26682 typename... Z,
26683 typename Dispatch,
26684 typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageMemoryRequirementsKHR ), bool>::type>
26685 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageMemoryRequirementsKHR( DeviceImageMemoryRequirements const & info,
26686 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26687 {
26688 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26689 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26690 VULKAN_HPP_ASSERT( d.vkGetDeviceImageMemoryRequirementsKHR &&
26691 "Function <vkGetDeviceImageMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26692 # endif
26693
26694 StructureChain<X, Y, Z...> structureChain;
26695 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
26696 d.vkGetDeviceImageMemoryRequirementsKHR(
26697 m_device, reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26698
26699 return structureChain;
26700 }
26701 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26702
26703 // wrapper function for command vkGetDeviceImageSparseMemoryRequirementsKHR, see
26704 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirementsKHR.html
26705 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSparseMemoryRequirementsKHR ), bool>::type>
26706 VULKAN_HPP_INLINE void Device::getImageSparseMemoryRequirementsKHR( DeviceImageMemoryRequirements const * pInfo,
26707 uint32_t * pSparseMemoryRequirementCount,
26708 SparseImageMemoryRequirements2 * pSparseMemoryRequirements,
26709 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26710 {
26711 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26712 d.vkGetDeviceImageSparseMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
26713 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( pInfo ),
26714 pSparseMemoryRequirementCount,
26715 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( pSparseMemoryRequirements ) );
26716 }
26717
26718 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26719 // wrapper function for command vkGetDeviceImageSparseMemoryRequirementsKHR, see
26720 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirementsKHR.html
26721 template <
26722 typename SparseImageMemoryRequirements2Allocator,
26723 typename Dispatch,
26724 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
26725 typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSparseMemoryRequirementsKHR ), bool>::type>
26726 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
26727 Device::getImageSparseMemoryRequirementsKHR( DeviceImageMemoryRequirements const & info, Dispatch const & d ) const
26728 {
26729 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26730 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26731 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSparseMemoryRequirementsKHR &&
26732 "Function <vkGetDeviceImageSparseMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26733 # endif
26734
26735 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements;
26736 uint32_t sparseMemoryRequirementCount;
26737 d.vkGetDeviceImageSparseMemoryRequirementsKHR(
26738 m_device, reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ), &sparseMemoryRequirementCount, nullptr );
26739 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
26740 d.vkGetDeviceImageSparseMemoryRequirementsKHR( m_device,
26741 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ),
26742 &sparseMemoryRequirementCount,
26743 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
26744
26745 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
26746 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
26747 {
26748 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
26749 }
26750 return sparseMemoryRequirements;
26751 }
26752
26753 // wrapper function for command vkGetDeviceImageSparseMemoryRequirementsKHR, see
26754 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirementsKHR.html
26755 template <
26756 typename SparseImageMemoryRequirements2Allocator,
26757 typename Dispatch,
26758 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
26759 typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSparseMemoryRequirementsKHR ), bool>::type>
26760 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
26761 Device::getImageSparseMemoryRequirementsKHR(
26762 DeviceImageMemoryRequirements const & info, SparseImageMemoryRequirements2Allocator const & sparseImageMemoryRequirements2Allocator, Dispatch const & d )
26763 const
26764 {
26765 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26766 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26767 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSparseMemoryRequirementsKHR &&
26768 "Function <vkGetDeviceImageSparseMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26769 # endif
26770
26771 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements( sparseImageMemoryRequirements2Allocator );
26772 uint32_t sparseMemoryRequirementCount;
26773 d.vkGetDeviceImageSparseMemoryRequirementsKHR(
26774 m_device, reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ), &sparseMemoryRequirementCount, nullptr );
26775 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
26776 d.vkGetDeviceImageSparseMemoryRequirementsKHR( m_device,
26777 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ),
26778 &sparseMemoryRequirementCount,
26779 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
26780
26781 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
26782 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
26783 {
26784 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
26785 }
26786 return sparseMemoryRequirements;
26787 }
26788 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26789
26790 //=== VK_VALVE_descriptor_set_host_mapping ===
26791
26792 // wrapper function for command vkGetDescriptorSetLayoutHostMappingInfoVALVE, see
26793 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutHostMappingInfoVALVE.html
26794 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutHostMappingInfoVALVE ), bool>::type>
26795 VULKAN_HPP_INLINE void Device::getDescriptorSetLayoutHostMappingInfoVALVE(
26796 DescriptorSetBindingReferenceVALVE const * pBindingReference, DescriptorSetLayoutHostMappingInfoVALVE * pHostMapping, Dispatch const & d )
26797 const VULKAN_HPP_NOEXCEPT
26798 {
26799 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26800 d.vkGetDescriptorSetLayoutHostMappingInfoVALVE( static_cast<VkDevice>( m_device ),
26801 reinterpret_cast<VkDescriptorSetBindingReferenceVALVE const *>( pBindingReference ),
26802 reinterpret_cast<VkDescriptorSetLayoutHostMappingInfoVALVE *>( pHostMapping ) );
26803 }
26804
26805 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26806 // wrapper function for command vkGetDescriptorSetLayoutHostMappingInfoVALVE, see
26807 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutHostMappingInfoVALVE.html
26808 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutHostMappingInfoVALVE ), bool>::type>
26809 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DescriptorSetLayoutHostMappingInfoVALVE Device::getDescriptorSetLayoutHostMappingInfoVALVE(
26810 DescriptorSetBindingReferenceVALVE const & bindingReference, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26811 {
26812 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26813 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26814 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutHostMappingInfoVALVE &&
26815 "Function <vkGetDescriptorSetLayoutHostMappingInfoVALVE> requires <VK_VALVE_descriptor_set_host_mapping>" );
26816 # endif
26817
26818 DescriptorSetLayoutHostMappingInfoVALVE hostMapping;
26819 d.vkGetDescriptorSetLayoutHostMappingInfoVALVE( m_device,
26820 reinterpret_cast<VkDescriptorSetBindingReferenceVALVE const *>( &bindingReference ),
26821 reinterpret_cast<VkDescriptorSetLayoutHostMappingInfoVALVE *>( &hostMapping ) );
26822
26823 return hostMapping;
26824 }
26825 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26826
26827 // wrapper function for command vkGetDescriptorSetHostMappingVALVE, see
26828 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetHostMappingVALVE.html
26829 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetHostMappingVALVE ), bool>::type>
26830 VULKAN_HPP_INLINE void Device::getDescriptorSetHostMappingVALVE( DescriptorSet descriptorSet, void ** ppData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26831 {
26832 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26833 d.vkGetDescriptorSetHostMappingVALVE( static_cast<VkDevice>( m_device ), static_cast<VkDescriptorSet>( descriptorSet ), ppData );
26834 }
26835
26836 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26837 // wrapper function for command vkGetDescriptorSetHostMappingVALVE, see
26838 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetHostMappingVALVE.html
26839 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetHostMappingVALVE ), bool>::type>
26840 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE void * Device::getDescriptorSetHostMappingVALVE( DescriptorSet descriptorSet, Dispatch const & d )
26841 const VULKAN_HPP_NOEXCEPT
26842 {
26843 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26844 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26845 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetHostMappingVALVE &&
26846 "Function <vkGetDescriptorSetHostMappingVALVE> requires <VK_VALVE_descriptor_set_host_mapping>" );
26847 # endif
26848
26849 void * pData;
26850 d.vkGetDescriptorSetHostMappingVALVE( m_device, static_cast<VkDescriptorSet>( descriptorSet ), &pData );
26851
26852 return pData;
26853 }
26854 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26855
26856 //=== VK_NV_copy_memory_indirect ===
26857
26858 // wrapper function for command vkCmdCopyMemoryIndirectNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryIndirectNV.html
26859 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryIndirectNV ), bool>::type>
26860 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryIndirectNV( DeviceAddress copyBufferAddress, uint32_t copyCount, uint32_t stride, Dispatch const & d )
26861 const VULKAN_HPP_NOEXCEPT
26862 {
26863 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26864 d.vkCmdCopyMemoryIndirectNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkDeviceAddress>( copyBufferAddress ), copyCount, stride );
26865 }
26866
26867 // wrapper function for command vkCmdCopyMemoryToImageIndirectNV, see
26868 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageIndirectNV.html
26869 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToImageIndirectNV ), bool>::type>
26870 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToImageIndirectNV( DeviceAddress copyBufferAddress,
26871 uint32_t copyCount,
26872 uint32_t stride,
26873 Image dstImage,
26874 ImageLayout dstImageLayout,
26875 ImageSubresourceLayers const * pImageSubresources,
26876 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26877 {
26878 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26879 d.vkCmdCopyMemoryToImageIndirectNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
26880 static_cast<VkDeviceAddress>( copyBufferAddress ),
26881 copyCount,
26882 stride,
26883 static_cast<VkImage>( dstImage ),
26884 static_cast<VkImageLayout>( dstImageLayout ),
26885 reinterpret_cast<VkImageSubresourceLayers const *>( pImageSubresources ) );
26886 }
26887
26888 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26889 // wrapper function for command vkCmdCopyMemoryToImageIndirectNV, see
26890 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageIndirectNV.html
26891 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToImageIndirectNV ), bool>::type>
26892 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToImageIndirectNV( DeviceAddress copyBufferAddress,
26893 uint32_t stride,
26894 Image dstImage,
26895 ImageLayout dstImageLayout,
26896 ArrayProxy<ImageSubresourceLayers const> const & imageSubresources,
26897 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26898 {
26899 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26900 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26901 VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToImageIndirectNV && "Function <vkCmdCopyMemoryToImageIndirectNV> requires <VK_NV_copy_memory_indirect>" );
26902 # endif
26903
26904 d.vkCmdCopyMemoryToImageIndirectNV( m_commandBuffer,
26905 static_cast<VkDeviceAddress>( copyBufferAddress ),
26906 imageSubresources.size(),
26907 stride,
26908 static_cast<VkImage>( dstImage ),
26909 static_cast<VkImageLayout>( dstImageLayout ),
26910 reinterpret_cast<VkImageSubresourceLayers const *>( imageSubresources.data() ) );
26911 }
26912 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26913
26914 //=== VK_NV_memory_decompression ===
26915
26916 // wrapper function for command vkCmdDecompressMemoryNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryNV.html
26917 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecompressMemoryNV ), bool>::type>
26918 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryNV(
26919 uint32_t decompressRegionCount, DecompressMemoryRegionNV const * pDecompressMemoryRegions, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26920 {
26921 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26922 d.vkCmdDecompressMemoryNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
26923 decompressRegionCount,
26924 reinterpret_cast<VkDecompressMemoryRegionNV const *>( pDecompressMemoryRegions ) );
26925 }
26926
26927 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26928 // wrapper function for command vkCmdDecompressMemoryNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryNV.html
26929 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecompressMemoryNV ), bool>::type>
26930 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryNV( ArrayProxy<DecompressMemoryRegionNV const> const & decompressMemoryRegions, Dispatch const & d )
26931 const VULKAN_HPP_NOEXCEPT
26932 {
26933 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26934 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26935 VULKAN_HPP_ASSERT( d.vkCmdDecompressMemoryNV && "Function <vkCmdDecompressMemoryNV> requires <VK_NV_memory_decompression>" );
26936 # endif
26937
26938 d.vkCmdDecompressMemoryNV(
26939 m_commandBuffer, decompressMemoryRegions.size(), reinterpret_cast<VkDecompressMemoryRegionNV const *>( decompressMemoryRegions.data() ) );
26940 }
26941 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26942
26943 // wrapper function for command vkCmdDecompressMemoryIndirectCountNV, see
26944 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryIndirectCountNV.html
26945 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecompressMemoryIndirectCountNV ), bool>::type>
26946 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryIndirectCountNV(
26947 DeviceAddress indirectCommandsAddress, DeviceAddress indirectCommandsCountAddress, uint32_t stride, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26948 {
26949 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26950 d.vkCmdDecompressMemoryIndirectCountNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
26951 static_cast<VkDeviceAddress>( indirectCommandsAddress ),
26952 static_cast<VkDeviceAddress>( indirectCommandsCountAddress ),
26953 stride );
26954 }
26955
26956 //=== VK_NV_device_generated_commands_compute ===
26957
26958 // wrapper function for command vkGetPipelineIndirectMemoryRequirementsNV, see
26959 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectMemoryRequirementsNV.html
26960 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineIndirectMemoryRequirementsNV ), bool>::type>
26961 VULKAN_HPP_INLINE void Device::getPipelineIndirectMemoryRequirementsNV(
26962 ComputePipelineCreateInfo const * pCreateInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26963 {
26964 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26965 d.vkGetPipelineIndirectMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
26966 reinterpret_cast<VkComputePipelineCreateInfo const *>( pCreateInfo ),
26967 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
26968 }
26969
26970 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26971 // wrapper function for command vkGetPipelineIndirectMemoryRequirementsNV, see
26972 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectMemoryRequirementsNV.html
26973 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineIndirectMemoryRequirementsNV ), bool>::type>
26974 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getPipelineIndirectMemoryRequirementsNV( ComputePipelineCreateInfo const & createInfo,
26975 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26976 {
26977 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26978 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26979 VULKAN_HPP_ASSERT( d.vkGetPipelineIndirectMemoryRequirementsNV &&
26980 "Function <vkGetPipelineIndirectMemoryRequirementsNV> requires <VK_NV_device_generated_commands_compute>" );
26981 # endif
26982
26983 MemoryRequirements2 memoryRequirements;
26984 d.vkGetPipelineIndirectMemoryRequirementsNV(
26985 m_device, reinterpret_cast<VkComputePipelineCreateInfo const *>( &createInfo ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26986
26987 return memoryRequirements;
26988 }
26989
26990 // wrapper function for command vkGetPipelineIndirectMemoryRequirementsNV, see
26991 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectMemoryRequirementsNV.html
26992 template <typename X,
26993 typename Y,
26994 typename... Z,
26995 typename Dispatch,
26996 typename std::enable_if<IS_DISPATCHED( vkGetPipelineIndirectMemoryRequirementsNV ), bool>::type>
26997 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getPipelineIndirectMemoryRequirementsNV(
26998 ComputePipelineCreateInfo const & createInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26999 {
27000 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27001 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27002 VULKAN_HPP_ASSERT( d.vkGetPipelineIndirectMemoryRequirementsNV &&
27003 "Function <vkGetPipelineIndirectMemoryRequirementsNV> requires <VK_NV_device_generated_commands_compute>" );
27004 # endif
27005
27006 StructureChain<X, Y, Z...> structureChain;
27007 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
27008 d.vkGetPipelineIndirectMemoryRequirementsNV(
27009 m_device, reinterpret_cast<VkComputePipelineCreateInfo const *>( &createInfo ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27010
27011 return structureChain;
27012 }
27013 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27014
27015 // wrapper function for command vkCmdUpdatePipelineIndirectBufferNV, see
27016 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdatePipelineIndirectBufferNV.html
27017 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdUpdatePipelineIndirectBufferNV ), bool>::type>
27018 VULKAN_HPP_INLINE void CommandBuffer::updatePipelineIndirectBufferNV( PipelineBindPoint pipelineBindPoint, Pipeline pipeline, Dispatch const & d )
27019 const VULKAN_HPP_NOEXCEPT
27020 {
27021 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27022 d.vkCmdUpdatePipelineIndirectBufferNV(
27023 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipeline>( pipeline ) );
27024 }
27025
27026 // wrapper function for command vkGetPipelineIndirectDeviceAddressNV, see
27027 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectDeviceAddressNV.html
27028 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineIndirectDeviceAddressNV ), bool>::type>
27029 VULKAN_HPP_INLINE DeviceAddress Device::getPipelineIndirectAddressNV( PipelineIndirectDeviceAddressInfoNV const * pInfo, Dispatch const & d )
27030 const VULKAN_HPP_NOEXCEPT
27031 {
27032 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27033 return static_cast<DeviceAddress>(
27034 d.vkGetPipelineIndirectDeviceAddressNV( static_cast<VkDevice>( m_device ), reinterpret_cast<VkPipelineIndirectDeviceAddressInfoNV const *>( pInfo ) ) );
27035 }
27036
27037 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27038 // wrapper function for command vkGetPipelineIndirectDeviceAddressNV, see
27039 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectDeviceAddressNV.html
27040 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineIndirectDeviceAddressNV ), bool>::type>
27041 VULKAN_HPP_INLINE DeviceAddress Device::getPipelineIndirectAddressNV( PipelineIndirectDeviceAddressInfoNV const & info, Dispatch const & d )
27042 const VULKAN_HPP_NOEXCEPT
27043 {
27044 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27045 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27046 VULKAN_HPP_ASSERT( d.vkGetPipelineIndirectDeviceAddressNV &&
27047 "Function <vkGetPipelineIndirectDeviceAddressNV> requires <VK_NV_device_generated_commands_compute>" );
27048 # endif
27049
27050 VkDeviceAddress result = d.vkGetPipelineIndirectDeviceAddressNV( m_device, reinterpret_cast<VkPipelineIndirectDeviceAddressInfoNV const *>( &info ) );
27051
27052 return static_cast<DeviceAddress>( result );
27053 }
27054 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27055
27056 #if defined( VK_USE_PLATFORM_OHOS )
27057 //=== VK_OHOS_external_memory ===
27058
27059 // wrapper function for command vkGetNativeBufferPropertiesOHOS, see
27060 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html
27061 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetNativeBufferPropertiesOHOS ), bool>::type>
27062 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getNativeBufferPropertiesOHOS(
27063 struct OH_NativeBuffer const * buffer, NativeBufferPropertiesOHOS * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27064 {
27065 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27066 return static_cast<Result>(
27067 d.vkGetNativeBufferPropertiesOHOS( static_cast<VkDevice>( m_device ), buffer, reinterpret_cast<VkNativeBufferPropertiesOHOS *>( pProperties ) ) );
27068 }
27069
27070 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27071 // wrapper function for command vkGetNativeBufferPropertiesOHOS, see
27072 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html
27073 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetNativeBufferPropertiesOHOS ), bool>::type>
27074 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<NativeBufferPropertiesOHOS>::type Device::getNativeBufferPropertiesOHOS(
27075 struct OH_NativeBuffer const & buffer, Dispatch const & d ) const
27076 {
27077 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27078 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27079 VULKAN_HPP_ASSERT( d.vkGetNativeBufferPropertiesOHOS && "Function <vkGetNativeBufferPropertiesOHOS> requires <VK_OHOS_external_memory>" );
27080 # endif
27081
27082 NativeBufferPropertiesOHOS properties;
27083 Result result =
27084 static_cast<Result>( d.vkGetNativeBufferPropertiesOHOS( m_device, &buffer, reinterpret_cast<VkNativeBufferPropertiesOHOS *>( &properties ) ) );
27085 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getNativeBufferPropertiesOHOS" );
27086
27087 return detail::createResultValueType( result, std::move( properties ) );
27088 }
27089
27090 // wrapper function for command vkGetNativeBufferPropertiesOHOS, see
27091 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html
27092 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetNativeBufferPropertiesOHOS ), bool>::type>
27093 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type Device::getNativeBufferPropertiesOHOS(
27094 struct OH_NativeBuffer const & buffer, Dispatch const & d ) const
27095 {
27096 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27097 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27098 VULKAN_HPP_ASSERT( d.vkGetNativeBufferPropertiesOHOS && "Function <vkGetNativeBufferPropertiesOHOS> requires <VK_OHOS_external_memory>" );
27099 # endif
27100
27101 StructureChain<X, Y, Z...> structureChain;
27102 NativeBufferPropertiesOHOS & properties = structureChain.template get<NativeBufferPropertiesOHOS>();
27103 Result result =
27104 static_cast<Result>( d.vkGetNativeBufferPropertiesOHOS( m_device, &buffer, reinterpret_cast<VkNativeBufferPropertiesOHOS *>( &properties ) ) );
27105 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getNativeBufferPropertiesOHOS" );
27106
27107 return detail::createResultValueType( result, std::move( structureChain ) );
27108 }
27109 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27110
27111 // wrapper function for command vkGetMemoryNativeBufferOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryNativeBufferOHOS.html
27112 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryNativeBufferOHOS ), bool>::type>
27113 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryNativeBufferOHOS(
27114 MemoryGetNativeBufferInfoOHOS const * pInfo, struct OH_NativeBuffer ** pBuffer, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27115 {
27116 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27117 return static_cast<Result>(
27118 d.vkGetMemoryNativeBufferOHOS( static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryGetNativeBufferInfoOHOS const *>( pInfo ), pBuffer ) );
27119 }
27120
27121 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27122 // wrapper function for command vkGetMemoryNativeBufferOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryNativeBufferOHOS.html
27123 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryNativeBufferOHOS ), bool>::type>
27124 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<struct OH_NativeBuffer *>::type Device::getMemoryNativeBufferOHOS(
27125 MemoryGetNativeBufferInfoOHOS const & info, Dispatch const & d ) const
27126 {
27127 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27128 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27129 VULKAN_HPP_ASSERT( d.vkGetMemoryNativeBufferOHOS && "Function <vkGetMemoryNativeBufferOHOS> requires <VK_OHOS_external_memory>" );
27130 # endif
27131
27132 struct OH_NativeBuffer * buffer;
27133 Result result =
27134 static_cast<Result>( d.vkGetMemoryNativeBufferOHOS( m_device, reinterpret_cast<VkMemoryGetNativeBufferInfoOHOS const *>( &info ), &buffer ) );
27135 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryNativeBufferOHOS" );
27136
27137 return detail::createResultValueType( result, std::move( buffer ) );
27138 }
27139 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27140 #endif /*VK_USE_PLATFORM_OHOS*/
27141
27142 //=== VK_EXT_extended_dynamic_state3 ===
27143
27144 // wrapper function for command vkCmdSetDepthClampEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClampEnableEXT.html
27145 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthClampEnableEXT ), bool>::type>
27146 VULKAN_HPP_INLINE void CommandBuffer::setDepthClampEnableEXT( Bool32 depthClampEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27147 {
27148 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27149 d.vkCmdSetDepthClampEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthClampEnable ) );
27150 }
27151
27152 // wrapper function for command vkCmdSetPolygonModeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPolygonModeEXT.html
27153 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPolygonModeEXT ), bool>::type>
27154 VULKAN_HPP_INLINE void CommandBuffer::setPolygonModeEXT( PolygonMode polygonMode, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27155 {
27156 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27157 d.vkCmdSetPolygonModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPolygonMode>( polygonMode ) );
27158 }
27159
27160 // wrapper function for command vkCmdSetRasterizationSamplesEXT, see
27161 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizationSamplesEXT.html
27162 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRasterizationSamplesEXT ), bool>::type>
27163 VULKAN_HPP_INLINE void CommandBuffer::setRasterizationSamplesEXT( SampleCountFlagBits rasterizationSamples, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27164 {
27165 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27166 d.vkCmdSetRasterizationSamplesEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkSampleCountFlagBits>( rasterizationSamples ) );
27167 }
27168
27169 // wrapper function for command vkCmdSetSampleMaskEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleMaskEXT.html
27170 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetSampleMaskEXT ), bool>::type>
27171 VULKAN_HPP_INLINE void CommandBuffer::setSampleMaskEXT( SampleCountFlagBits samples, SampleMask const * pSampleMask, Dispatch const & d )
27172 const VULKAN_HPP_NOEXCEPT
27173 {
27174 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27175 d.vkCmdSetSampleMaskEXT(
27176 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkSampleCountFlagBits>( samples ), reinterpret_cast<VkSampleMask const *>( pSampleMask ) );
27177 }
27178
27179 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27180 // wrapper function for command vkCmdSetSampleMaskEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleMaskEXT.html
27181 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetSampleMaskEXT ), bool>::type>
27182 VULKAN_HPP_INLINE void CommandBuffer::setSampleMaskEXT( SampleCountFlagBits samples, ArrayProxy<SampleMask const> const & sampleMask, Dispatch const & d )
27183 const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
27184 {
27185 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27186 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27187 VULKAN_HPP_ASSERT( d.vkCmdSetSampleMaskEXT && "Function <vkCmdSetSampleMaskEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27188 # endif
27189 # ifdef VULKAN_HPP_NO_EXCEPTIONS
27190 VULKAN_HPP_ASSERT( sampleMask.size() == ( static_cast<uint32_t>( samples ) + 31 ) / 32 );
27191 # else
27192 if ( sampleMask.size() != ( static_cast<uint32_t>( samples ) + 31 ) / 32 )
27193 {
27194 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setSampleMaskEXT: sampleMask.size() != ( static_cast<uint32_t>( samples ) + 31 ) / 32" );
27195 }
27196 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
27197
27198 d.vkCmdSetSampleMaskEXT( m_commandBuffer, static_cast<VkSampleCountFlagBits>( samples ), reinterpret_cast<VkSampleMask const *>( sampleMask.data() ) );
27199 }
27200 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27201
27202 // wrapper function for command vkCmdSetAlphaToCoverageEnableEXT, see
27203 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetAlphaToCoverageEnableEXT.html
27204 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetAlphaToCoverageEnableEXT ), bool>::type>
27205 VULKAN_HPP_INLINE void CommandBuffer::setAlphaToCoverageEnableEXT( Bool32 alphaToCoverageEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27206 {
27207 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27208 d.vkCmdSetAlphaToCoverageEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( alphaToCoverageEnable ) );
27209 }
27210
27211 // wrapper function for command vkCmdSetAlphaToOneEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetAlphaToOneEnableEXT.html
27212 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetAlphaToOneEnableEXT ), bool>::type>
27213 VULKAN_HPP_INLINE void CommandBuffer::setAlphaToOneEnableEXT( Bool32 alphaToOneEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27214 {
27215 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27216 d.vkCmdSetAlphaToOneEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( alphaToOneEnable ) );
27217 }
27218
27219 // wrapper function for command vkCmdSetLogicOpEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLogicOpEnableEXT.html
27220 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLogicOpEnableEXT ), bool>::type>
27221 VULKAN_HPP_INLINE void CommandBuffer::setLogicOpEnableEXT( Bool32 logicOpEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27222 {
27223 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27224 d.vkCmdSetLogicOpEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( logicOpEnable ) );
27225 }
27226
27227 // wrapper function for command vkCmdSetColorBlendEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendEnableEXT.html
27228 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorBlendEnableEXT ), bool>::type>
27229 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendEnableEXT(
27230 uint32_t firstAttachment, uint32_t attachmentCount, Bool32 const * pColorBlendEnables, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27231 {
27232 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27233 d.vkCmdSetColorBlendEnableEXT(
27234 static_cast<VkCommandBuffer>( m_commandBuffer ), firstAttachment, attachmentCount, reinterpret_cast<VkBool32 const *>( pColorBlendEnables ) );
27235 }
27236
27237 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27238 // wrapper function for command vkCmdSetColorBlendEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendEnableEXT.html
27239 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorBlendEnableEXT ), bool>::type>
27240 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendEnableEXT(
27241 uint32_t firstAttachment, ArrayProxy<Bool32 const> const & colorBlendEnables, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27242 {
27243 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27244 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27245 VULKAN_HPP_ASSERT( d.vkCmdSetColorBlendEnableEXT &&
27246 "Function <vkCmdSetColorBlendEnableEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27247 # endif
27248
27249 d.vkCmdSetColorBlendEnableEXT( m_commandBuffer, firstAttachment, colorBlendEnables.size(), reinterpret_cast<VkBool32 const *>( colorBlendEnables.data() ) );
27250 }
27251 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27252
27253 // wrapper function for command vkCmdSetColorBlendEquationEXT, see
27254 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendEquationEXT.html
27255 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorBlendEquationEXT ), bool>::type>
27256 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendEquationEXT(
27257 uint32_t firstAttachment, uint32_t attachmentCount, ColorBlendEquationEXT const * pColorBlendEquations, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27258 {
27259 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27260 d.vkCmdSetColorBlendEquationEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27261 firstAttachment,
27262 attachmentCount,
27263 reinterpret_cast<VkColorBlendEquationEXT const *>( pColorBlendEquations ) );
27264 }
27265
27266 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27267 // wrapper function for command vkCmdSetColorBlendEquationEXT, see
27268 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendEquationEXT.html
27269 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorBlendEquationEXT ), bool>::type>
27270 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendEquationEXT(
27271 uint32_t firstAttachment, ArrayProxy<ColorBlendEquationEXT const> const & colorBlendEquations, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27272 {
27273 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27274 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27275 VULKAN_HPP_ASSERT( d.vkCmdSetColorBlendEquationEXT &&
27276 "Function <vkCmdSetColorBlendEquationEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27277 # endif
27278
27279 d.vkCmdSetColorBlendEquationEXT(
27280 m_commandBuffer, firstAttachment, colorBlendEquations.size(), reinterpret_cast<VkColorBlendEquationEXT const *>( colorBlendEquations.data() ) );
27281 }
27282 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27283
27284 // wrapper function for command vkCmdSetColorWriteMaskEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorWriteMaskEXT.html
27285 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorWriteMaskEXT ), bool>::type>
27286 VULKAN_HPP_INLINE void CommandBuffer::setColorWriteMaskEXT(
27287 uint32_t firstAttachment, uint32_t attachmentCount, ColorComponentFlags const * pColorWriteMasks, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27288 {
27289 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27290 d.vkCmdSetColorWriteMaskEXT(
27291 static_cast<VkCommandBuffer>( m_commandBuffer ), firstAttachment, attachmentCount, reinterpret_cast<VkColorComponentFlags const *>( pColorWriteMasks ) );
27292 }
27293
27294 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27295 // wrapper function for command vkCmdSetColorWriteMaskEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorWriteMaskEXT.html
27296 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorWriteMaskEXT ), bool>::type>
27297 VULKAN_HPP_INLINE void CommandBuffer::setColorWriteMaskEXT(
27298 uint32_t firstAttachment, ArrayProxy<ColorComponentFlags const> const & colorWriteMasks, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27299 {
27300 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27301 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27302 VULKAN_HPP_ASSERT( d.vkCmdSetColorWriteMaskEXT &&
27303 "Function <vkCmdSetColorWriteMaskEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27304 # endif
27305
27306 d.vkCmdSetColorWriteMaskEXT(
27307 m_commandBuffer, firstAttachment, colorWriteMasks.size(), reinterpret_cast<VkColorComponentFlags const *>( colorWriteMasks.data() ) );
27308 }
27309 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27310
27311 // wrapper function for command vkCmdSetTessellationDomainOriginEXT, see
27312 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetTessellationDomainOriginEXT.html
27313 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetTessellationDomainOriginEXT ), bool>::type>
27314 VULKAN_HPP_INLINE void CommandBuffer::setTessellationDomainOriginEXT( TessellationDomainOrigin domainOrigin, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27315 {
27316 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27317 d.vkCmdSetTessellationDomainOriginEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkTessellationDomainOrigin>( domainOrigin ) );
27318 }
27319
27320 // wrapper function for command vkCmdSetRasterizationStreamEXT, see
27321 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizationStreamEXT.html
27322 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRasterizationStreamEXT ), bool>::type>
27323 VULKAN_HPP_INLINE void CommandBuffer::setRasterizationStreamEXT( uint32_t rasterizationStream, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27324 {
27325 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27326 d.vkCmdSetRasterizationStreamEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), rasterizationStream );
27327 }
27328
27329 // wrapper function for command vkCmdSetConservativeRasterizationModeEXT, see
27330 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetConservativeRasterizationModeEXT.html
27331 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetConservativeRasterizationModeEXT ), bool>::type>
27332 VULKAN_HPP_INLINE void CommandBuffer::setConservativeRasterizationModeEXT( ConservativeRasterizationModeEXT conservativeRasterizationMode,
27333 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27334 {
27335 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27336 d.vkCmdSetConservativeRasterizationModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27337 static_cast<VkConservativeRasterizationModeEXT>( conservativeRasterizationMode ) );
27338 }
27339
27340 // wrapper function for command vkCmdSetExtraPrimitiveOverestimationSizeEXT, see
27341 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExtraPrimitiveOverestimationSizeEXT.html
27342 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetExtraPrimitiveOverestimationSizeEXT ), bool>::type>
27343 VULKAN_HPP_INLINE void CommandBuffer::setExtraPrimitiveOverestimationSizeEXT( float extraPrimitiveOverestimationSize, Dispatch const & d )
27344 const VULKAN_HPP_NOEXCEPT
27345 {
27346 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27347 d.vkCmdSetExtraPrimitiveOverestimationSizeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), extraPrimitiveOverestimationSize );
27348 }
27349
27350 // wrapper function for command vkCmdSetDepthClipEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClipEnableEXT.html
27351 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthClipEnableEXT ), bool>::type>
27352 VULKAN_HPP_INLINE void CommandBuffer::setDepthClipEnableEXT( Bool32 depthClipEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27353 {
27354 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27355 d.vkCmdSetDepthClipEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthClipEnable ) );
27356 }
27357
27358 // wrapper function for command vkCmdSetSampleLocationsEnableEXT, see
27359 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleLocationsEnableEXT.html
27360 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetSampleLocationsEnableEXT ), bool>::type>
27361 VULKAN_HPP_INLINE void CommandBuffer::setSampleLocationsEnableEXT( Bool32 sampleLocationsEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27362 {
27363 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27364 d.vkCmdSetSampleLocationsEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( sampleLocationsEnable ) );
27365 }
27366
27367 // wrapper function for command vkCmdSetColorBlendAdvancedEXT, see
27368 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendAdvancedEXT.html
27369 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorBlendAdvancedEXT ), bool>::type>
27370 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendAdvancedEXT(
27371 uint32_t firstAttachment, uint32_t attachmentCount, ColorBlendAdvancedEXT const * pColorBlendAdvanced, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27372 {
27373 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27374 d.vkCmdSetColorBlendAdvancedEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27375 firstAttachment,
27376 attachmentCount,
27377 reinterpret_cast<VkColorBlendAdvancedEXT const *>( pColorBlendAdvanced ) );
27378 }
27379
27380 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27381 // wrapper function for command vkCmdSetColorBlendAdvancedEXT, see
27382 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendAdvancedEXT.html
27383 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorBlendAdvancedEXT ), bool>::type>
27384 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendAdvancedEXT(
27385 uint32_t firstAttachment, ArrayProxy<ColorBlendAdvancedEXT const> const & colorBlendAdvanced, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27386 {
27387 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27388 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27389 VULKAN_HPP_ASSERT( d.vkCmdSetColorBlendAdvancedEXT &&
27390 "Function <vkCmdSetColorBlendAdvancedEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27391 # endif
27392
27393 d.vkCmdSetColorBlendAdvancedEXT(
27394 m_commandBuffer, firstAttachment, colorBlendAdvanced.size(), reinterpret_cast<VkColorBlendAdvancedEXT const *>( colorBlendAdvanced.data() ) );
27395 }
27396 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27397
27398 // wrapper function for command vkCmdSetProvokingVertexModeEXT, see
27399 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetProvokingVertexModeEXT.html
27400 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetProvokingVertexModeEXT ), bool>::type>
27401 VULKAN_HPP_INLINE void CommandBuffer::setProvokingVertexModeEXT( ProvokingVertexModeEXT provokingVertexMode, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27402 {
27403 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27404 d.vkCmdSetProvokingVertexModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkProvokingVertexModeEXT>( provokingVertexMode ) );
27405 }
27406
27407 // wrapper function for command vkCmdSetLineRasterizationModeEXT, see
27408 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineRasterizationModeEXT.html
27409 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLineRasterizationModeEXT ), bool>::type>
27410 VULKAN_HPP_INLINE void CommandBuffer::setLineRasterizationModeEXT( LineRasterizationModeEXT lineRasterizationMode, Dispatch const & d )
27411 const VULKAN_HPP_NOEXCEPT
27412 {
27413 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27414 d.vkCmdSetLineRasterizationModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkLineRasterizationModeEXT>( lineRasterizationMode ) );
27415 }
27416
27417 // wrapper function for command vkCmdSetLineStippleEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStippleEnableEXT.html
27418 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLineStippleEnableEXT ), bool>::type>
27419 VULKAN_HPP_INLINE void CommandBuffer::setLineStippleEnableEXT( Bool32 stippledLineEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27420 {
27421 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27422 d.vkCmdSetLineStippleEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( stippledLineEnable ) );
27423 }
27424
27425 // wrapper function for command vkCmdSetDepthClipNegativeOneToOneEXT, see
27426 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClipNegativeOneToOneEXT.html
27427 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthClipNegativeOneToOneEXT ), bool>::type>
27428 VULKAN_HPP_INLINE void CommandBuffer::setDepthClipNegativeOneToOneEXT( Bool32 negativeOneToOne, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27429 {
27430 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27431 d.vkCmdSetDepthClipNegativeOneToOneEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( negativeOneToOne ) );
27432 }
27433
27434 // wrapper function for command vkCmdSetViewportWScalingEnableNV, see
27435 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWScalingEnableNV.html
27436 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWScalingEnableNV ), bool>::type>
27437 VULKAN_HPP_INLINE void CommandBuffer::setViewportWScalingEnableNV( Bool32 viewportWScalingEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27438 {
27439 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27440 d.vkCmdSetViewportWScalingEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( viewportWScalingEnable ) );
27441 }
27442
27443 // wrapper function for command vkCmdSetViewportSwizzleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportSwizzleNV.html
27444 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportSwizzleNV ), bool>::type>
27445 VULKAN_HPP_INLINE void CommandBuffer::setViewportSwizzleNV(
27446 uint32_t firstViewport, uint32_t viewportCount, ViewportSwizzleNV const * pViewportSwizzles, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27447 {
27448 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27449 d.vkCmdSetViewportSwizzleNV(
27450 static_cast<VkCommandBuffer>( m_commandBuffer ), firstViewport, viewportCount, reinterpret_cast<VkViewportSwizzleNV const *>( pViewportSwizzles ) );
27451 }
27452
27453 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27454 // wrapper function for command vkCmdSetViewportSwizzleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportSwizzleNV.html
27455 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportSwizzleNV ), bool>::type>
27456 VULKAN_HPP_INLINE void CommandBuffer::setViewportSwizzleNV(
27457 uint32_t firstViewport, ArrayProxy<ViewportSwizzleNV const> const & viewportSwizzles, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27458 {
27459 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27460 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27461 VULKAN_HPP_ASSERT( d.vkCmdSetViewportSwizzleNV &&
27462 "Function <vkCmdSetViewportSwizzleNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27463 # endif
27464
27465 d.vkCmdSetViewportSwizzleNV(
27466 m_commandBuffer, firstViewport, viewportSwizzles.size(), reinterpret_cast<VkViewportSwizzleNV const *>( viewportSwizzles.data() ) );
27467 }
27468 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27469
27470 // wrapper function for command vkCmdSetCoverageToColorEnableNV, see
27471 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageToColorEnableNV.html
27472 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageToColorEnableNV ), bool>::type>
27473 VULKAN_HPP_INLINE void CommandBuffer::setCoverageToColorEnableNV( Bool32 coverageToColorEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27474 {
27475 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27476 d.vkCmdSetCoverageToColorEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( coverageToColorEnable ) );
27477 }
27478
27479 // wrapper function for command vkCmdSetCoverageToColorLocationNV, see
27480 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageToColorLocationNV.html
27481 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageToColorLocationNV ), bool>::type>
27482 VULKAN_HPP_INLINE void CommandBuffer::setCoverageToColorLocationNV( uint32_t coverageToColorLocation, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27483 {
27484 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27485 d.vkCmdSetCoverageToColorLocationNV( static_cast<VkCommandBuffer>( m_commandBuffer ), coverageToColorLocation );
27486 }
27487
27488 // wrapper function for command vkCmdSetCoverageModulationModeNV, see
27489 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationModeNV.html
27490 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageModulationModeNV ), bool>::type>
27491 VULKAN_HPP_INLINE void CommandBuffer::setCoverageModulationModeNV( CoverageModulationModeNV coverageModulationMode, Dispatch const & d )
27492 const VULKAN_HPP_NOEXCEPT
27493 {
27494 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27495 d.vkCmdSetCoverageModulationModeNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCoverageModulationModeNV>( coverageModulationMode ) );
27496 }
27497
27498 // wrapper function for command vkCmdSetCoverageModulationTableEnableNV, see
27499 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationTableEnableNV.html
27500 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageModulationTableEnableNV ), bool>::type>
27501 VULKAN_HPP_INLINE void CommandBuffer::setCoverageModulationTableEnableNV( Bool32 coverageModulationTableEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27502 {
27503 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27504 d.vkCmdSetCoverageModulationTableEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( coverageModulationTableEnable ) );
27505 }
27506
27507 // wrapper function for command vkCmdSetCoverageModulationTableNV, see
27508 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationTableNV.html
27509 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageModulationTableNV ), bool>::type>
27510 VULKAN_HPP_INLINE void CommandBuffer::setCoverageModulationTableNV(
27511 uint32_t coverageModulationTableCount, float const * pCoverageModulationTable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27512 {
27513 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27514 d.vkCmdSetCoverageModulationTableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), coverageModulationTableCount, pCoverageModulationTable );
27515 }
27516
27517 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27518 // wrapper function for command vkCmdSetCoverageModulationTableNV, see
27519 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationTableNV.html
27520 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageModulationTableNV ), bool>::type>
27521 VULKAN_HPP_INLINE void CommandBuffer::setCoverageModulationTableNV( ArrayProxy<float const> const & coverageModulationTable, Dispatch const & d )
27522 const VULKAN_HPP_NOEXCEPT
27523 {
27524 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27525 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27526 VULKAN_HPP_ASSERT( d.vkCmdSetCoverageModulationTableNV &&
27527 "Function <vkCmdSetCoverageModulationTableNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27528 # endif
27529
27530 d.vkCmdSetCoverageModulationTableNV( m_commandBuffer, coverageModulationTable.size(), coverageModulationTable.data() );
27531 }
27532 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27533
27534 // wrapper function for command vkCmdSetShadingRateImageEnableNV, see
27535 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetShadingRateImageEnableNV.html
27536 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetShadingRateImageEnableNV ), bool>::type>
27537 VULKAN_HPP_INLINE void CommandBuffer::setShadingRateImageEnableNV( Bool32 shadingRateImageEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27538 {
27539 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27540 d.vkCmdSetShadingRateImageEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( shadingRateImageEnable ) );
27541 }
27542
27543 // wrapper function for command vkCmdSetRepresentativeFragmentTestEnableNV, see
27544 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRepresentativeFragmentTestEnableNV.html
27545 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRepresentativeFragmentTestEnableNV ), bool>::type>
27546 VULKAN_HPP_INLINE void CommandBuffer::setRepresentativeFragmentTestEnableNV( Bool32 representativeFragmentTestEnable, Dispatch const & d )
27547 const VULKAN_HPP_NOEXCEPT
27548 {
27549 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27550 d.vkCmdSetRepresentativeFragmentTestEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( representativeFragmentTestEnable ) );
27551 }
27552
27553 // wrapper function for command vkCmdSetCoverageReductionModeNV, see
27554 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageReductionModeNV.html
27555 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageReductionModeNV ), bool>::type>
27556 VULKAN_HPP_INLINE void CommandBuffer::setCoverageReductionModeNV( CoverageReductionModeNV coverageReductionMode, Dispatch const & d )
27557 const VULKAN_HPP_NOEXCEPT
27558 {
27559 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27560 d.vkCmdSetCoverageReductionModeNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCoverageReductionModeNV>( coverageReductionMode ) );
27561 }
27562
27563 //=== VK_ARM_tensors ===
27564
27565 // wrapper function for command vkCreateTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorARM.html
27566 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateTensorARM ), bool>::type>
27567 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createTensorARM(
27568 TensorCreateInfoARM const * pCreateInfo, AllocationCallbacks const * pAllocator, TensorARM * pTensor, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27569 {
27570 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27571 return static_cast<Result>( d.vkCreateTensorARM( static_cast<VkDevice>( m_device ),
27572 reinterpret_cast<VkTensorCreateInfoARM const *>( pCreateInfo ),
27573 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
27574 reinterpret_cast<VkTensorARM *>( pTensor ) ) );
27575 }
27576
27577 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27578 // wrapper function for command vkCreateTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorARM.html
27579 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateTensorARM ), bool>::type>
27580 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<TensorARM>::type Device::createTensorARM(
27581 TensorCreateInfoARM const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
27582 {
27583 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27584 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27585 VULKAN_HPP_ASSERT( d.vkCreateTensorARM && "Function <vkCreateTensorARM> requires <VK_ARM_tensors>" );
27586 # endif
27587
27588 TensorARM tensor;
27589 Result result = static_cast<Result>( d.vkCreateTensorARM( m_device,
27590 reinterpret_cast<VkTensorCreateInfoARM const *>( &createInfo ),
27591 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
27592 reinterpret_cast<VkTensorARM *>( &tensor ) ) );
27593 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createTensorARM" );
27594
27595 return detail::createResultValueType( result, std::move( tensor ) );
27596 }
27597
27598 # ifndef VULKAN_HPP_NO_SMART_HANDLE
27599 // wrapper function for command vkCreateTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorARM.html
27600 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateTensorARM ), bool>::type>
27601 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<TensorARM, Dispatch>>::type Device::createTensorARMUnique(
27602 TensorCreateInfoARM const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
27603 {
27604 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27605 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27606 VULKAN_HPP_ASSERT( d.vkCreateTensorARM && "Function <vkCreateTensorARM> requires <VK_ARM_tensors>" );
27607 # endif
27608
27609 TensorARM tensor;
27610 Result result = static_cast<Result>( d.vkCreateTensorARM( m_device,
27611 reinterpret_cast<VkTensorCreateInfoARM const *>( &createInfo ),
27612 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
27613 reinterpret_cast<VkTensorARM *>( &tensor ) ) );
27614 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createTensorARMUnique" );
27615
27616 return detail::createResultValueType( result, UniqueHandle<TensorARM, Dispatch>( tensor, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
27617 }
27618 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
27619 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27620
27621 // wrapper function for command vkDestroyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorARM.html
27622 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorARM ), bool>::type>
27623 VULKAN_HPP_INLINE void Device::destroyTensorARM( TensorARM tensor, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27624 {
27625 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27626 d.vkDestroyTensorARM(
27627 static_cast<VkDevice>( m_device ), static_cast<VkTensorARM>( tensor ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
27628 }
27629
27630 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27631 // wrapper function for command vkDestroyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorARM.html
27632 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorARM ), bool>::type>
27633 VULKAN_HPP_INLINE void Device::destroyTensorARM( TensorARM tensor, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
27634 const VULKAN_HPP_NOEXCEPT
27635 {
27636 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27637 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27638 VULKAN_HPP_ASSERT( d.vkDestroyTensorARM && "Function <vkDestroyTensorARM> requires <VK_ARM_tensors>" );
27639 # endif
27640
27641 d.vkDestroyTensorARM( m_device, static_cast<VkTensorARM>( tensor ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
27642 }
27643 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27644
27645 // wrapper function for command vkDestroyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorARM.html
27646 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorARM ), bool>::type>
27647 VULKAN_HPP_INLINE void Device::destroy( TensorARM tensor, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27648 {
27649 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27650 d.vkDestroyTensorARM(
27651 static_cast<VkDevice>( m_device ), static_cast<VkTensorARM>( tensor ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
27652 }
27653
27654 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27655 // wrapper function for command vkDestroyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorARM.html
27656 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorARM ), bool>::type>
27657 VULKAN_HPP_INLINE void Device::destroy( TensorARM tensor, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27658 {
27659 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27660 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27661 VULKAN_HPP_ASSERT( d.vkDestroyTensorARM && "Function <vkDestroyTensorARM> requires <VK_ARM_tensors>" );
27662 # endif
27663
27664 d.vkDestroyTensorARM( m_device, static_cast<VkTensorARM>( tensor ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
27665 }
27666 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27667
27668 // wrapper function for command vkCreateTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorViewARM.html
27669 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateTensorViewARM ), bool>::type>
27670 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createTensorViewARM(
27671 TensorViewCreateInfoARM const * pCreateInfo, AllocationCallbacks const * pAllocator, TensorViewARM * pView, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27672 {
27673 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27674 return static_cast<Result>( d.vkCreateTensorViewARM( static_cast<VkDevice>( m_device ),
27675 reinterpret_cast<VkTensorViewCreateInfoARM const *>( pCreateInfo ),
27676 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
27677 reinterpret_cast<VkTensorViewARM *>( pView ) ) );
27678 }
27679
27680 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27681 // wrapper function for command vkCreateTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorViewARM.html
27682 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateTensorViewARM ), bool>::type>
27683 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<TensorViewARM>::type Device::createTensorViewARM(
27684 TensorViewCreateInfoARM const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
27685 {
27686 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27687 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27688 VULKAN_HPP_ASSERT( d.vkCreateTensorViewARM && "Function <vkCreateTensorViewARM> requires <VK_ARM_tensors>" );
27689 # endif
27690
27691 TensorViewARM view;
27692 Result result = static_cast<Result>( d.vkCreateTensorViewARM( m_device,
27693 reinterpret_cast<VkTensorViewCreateInfoARM const *>( &createInfo ),
27694 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
27695 reinterpret_cast<VkTensorViewARM *>( &view ) ) );
27696 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createTensorViewARM" );
27697
27698 return detail::createResultValueType( result, std::move( view ) );
27699 }
27700
27701 # ifndef VULKAN_HPP_NO_SMART_HANDLE
27702 // wrapper function for command vkCreateTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorViewARM.html
27703 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateTensorViewARM ), bool>::type>
27704 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<TensorViewARM, Dispatch>>::type Device::createTensorViewARMUnique(
27705 TensorViewCreateInfoARM const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
27706 {
27707 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27708 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27709 VULKAN_HPP_ASSERT( d.vkCreateTensorViewARM && "Function <vkCreateTensorViewARM> requires <VK_ARM_tensors>" );
27710 # endif
27711
27712 TensorViewARM view;
27713 Result result = static_cast<Result>( d.vkCreateTensorViewARM( m_device,
27714 reinterpret_cast<VkTensorViewCreateInfoARM const *>( &createInfo ),
27715 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
27716 reinterpret_cast<VkTensorViewARM *>( &view ) ) );
27717 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createTensorViewARMUnique" );
27718
27719 return detail::createResultValueType( result,
27720 UniqueHandle<TensorViewARM, Dispatch>( view, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
27721 }
27722 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
27723 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27724
27725 // wrapper function for command vkDestroyTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorViewARM.html
27726 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorViewARM ), bool>::type>
27727 VULKAN_HPP_INLINE void Device::destroyTensorViewARM( TensorViewARM tensorView, AllocationCallbacks const * pAllocator, Dispatch const & d )
27728 const VULKAN_HPP_NOEXCEPT
27729 {
27730 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27731 d.vkDestroyTensorViewARM(
27732 static_cast<VkDevice>( m_device ), static_cast<VkTensorViewARM>( tensorView ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
27733 }
27734
27735 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27736 // wrapper function for command vkDestroyTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorViewARM.html
27737 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorViewARM ), bool>::type>
27738 VULKAN_HPP_INLINE void Device::destroyTensorViewARM( TensorViewARM tensorView, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
27739 const VULKAN_HPP_NOEXCEPT
27740 {
27741 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27742 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27743 VULKAN_HPP_ASSERT( d.vkDestroyTensorViewARM && "Function <vkDestroyTensorViewARM> requires <VK_ARM_tensors>" );
27744 # endif
27745
27746 d.vkDestroyTensorViewARM( m_device, static_cast<VkTensorViewARM>( tensorView ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
27747 }
27748 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27749
27750 // wrapper function for command vkDestroyTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorViewARM.html
27751 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorViewARM ), bool>::type>
27752 VULKAN_HPP_INLINE void Device::destroy( TensorViewARM tensorView, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27753 {
27754 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27755 d.vkDestroyTensorViewARM(
27756 static_cast<VkDevice>( m_device ), static_cast<VkTensorViewARM>( tensorView ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
27757 }
27758
27759 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27760 // wrapper function for command vkDestroyTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorViewARM.html
27761 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorViewARM ), bool>::type>
27762 VULKAN_HPP_INLINE void Device::destroy( TensorViewARM tensorView, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
27763 const VULKAN_HPP_NOEXCEPT
27764 {
27765 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27766 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27767 VULKAN_HPP_ASSERT( d.vkDestroyTensorViewARM && "Function <vkDestroyTensorViewARM> requires <VK_ARM_tensors>" );
27768 # endif
27769
27770 d.vkDestroyTensorViewARM( m_device, static_cast<VkTensorViewARM>( tensorView ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
27771 }
27772 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27773
27774 // wrapper function for command vkGetTensorMemoryRequirementsARM, see
27775 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorMemoryRequirementsARM.html
27776 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorMemoryRequirementsARM ), bool>::type>
27777 VULKAN_HPP_INLINE void Device::getTensorMemoryRequirementsARM(
27778 TensorMemoryRequirementsInfoARM const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27779 {
27780 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27781 d.vkGetTensorMemoryRequirementsARM( static_cast<VkDevice>( m_device ),
27782 reinterpret_cast<VkTensorMemoryRequirementsInfoARM const *>( pInfo ),
27783 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
27784 }
27785
27786 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27787 // wrapper function for command vkGetTensorMemoryRequirementsARM, see
27788 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorMemoryRequirementsARM.html
27789 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorMemoryRequirementsARM ), bool>::type>
27790 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getTensorMemoryRequirementsARM( TensorMemoryRequirementsInfoARM const & info,
27791 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27792 {
27793 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27794 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27795 VULKAN_HPP_ASSERT( d.vkGetTensorMemoryRequirementsARM && "Function <vkGetTensorMemoryRequirementsARM> requires <VK_ARM_tensors>" );
27796 # endif
27797
27798 MemoryRequirements2 memoryRequirements;
27799 d.vkGetTensorMemoryRequirementsARM(
27800 m_device, reinterpret_cast<VkTensorMemoryRequirementsInfoARM const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27801
27802 return memoryRequirements;
27803 }
27804
27805 // wrapper function for command vkGetTensorMemoryRequirementsARM, see
27806 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorMemoryRequirementsARM.html
27807 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorMemoryRequirementsARM ), bool>::type>
27808 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getTensorMemoryRequirementsARM( TensorMemoryRequirementsInfoARM const & info,
27809 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27810 {
27811 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27812 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27813 VULKAN_HPP_ASSERT( d.vkGetTensorMemoryRequirementsARM && "Function <vkGetTensorMemoryRequirementsARM> requires <VK_ARM_tensors>" );
27814 # endif
27815
27816 StructureChain<X, Y, Z...> structureChain;
27817 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
27818 d.vkGetTensorMemoryRequirementsARM(
27819 m_device, reinterpret_cast<VkTensorMemoryRequirementsInfoARM const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27820
27821 return structureChain;
27822 }
27823 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27824
27825 // wrapper function for command vkBindTensorMemoryARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindTensorMemoryARM.html
27826 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindTensorMemoryARM ), bool>::type>
27827 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindTensorMemoryARM(
27828 uint32_t bindInfoCount, BindTensorMemoryInfoARM const * pBindInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27829 {
27830 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27831 return static_cast<Result>(
27832 d.vkBindTensorMemoryARM( static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<VkBindTensorMemoryInfoARM const *>( pBindInfos ) ) );
27833 }
27834
27835 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27836 // wrapper function for command vkBindTensorMemoryARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindTensorMemoryARM.html
27837 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindTensorMemoryARM ), bool>::type>
27838 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindTensorMemoryARM(
27839 ArrayProxy<BindTensorMemoryInfoARM const> const & bindInfos, Dispatch const & d ) const
27840 {
27841 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27842 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27843 VULKAN_HPP_ASSERT( d.vkBindTensorMemoryARM && "Function <vkBindTensorMemoryARM> requires <VK_ARM_tensors>" );
27844 # endif
27845
27846 Result result =
27847 static_cast<Result>( d.vkBindTensorMemoryARM( m_device, bindInfos.size(), reinterpret_cast<VkBindTensorMemoryInfoARM const *>( bindInfos.data() ) ) );
27848 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindTensorMemoryARM" );
27849
27850 return detail::createResultValueType( result );
27851 }
27852 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27853
27854 // wrapper function for command vkGetDeviceTensorMemoryRequirementsARM, see
27855 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceTensorMemoryRequirementsARM.html
27856 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceTensorMemoryRequirementsARM ), bool>::type>
27857 VULKAN_HPP_INLINE void Device::getTensorMemoryRequirementsARM(
27858 DeviceTensorMemoryRequirementsARM const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27859 {
27860 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27861 d.vkGetDeviceTensorMemoryRequirementsARM( static_cast<VkDevice>( m_device ),
27862 reinterpret_cast<VkDeviceTensorMemoryRequirementsARM const *>( pInfo ),
27863 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
27864 }
27865
27866 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27867 // wrapper function for command vkGetDeviceTensorMemoryRequirementsARM, see
27868 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceTensorMemoryRequirementsARM.html
27869 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceTensorMemoryRequirementsARM ), bool>::type>
27870 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getTensorMemoryRequirementsARM( DeviceTensorMemoryRequirementsARM const & info,
27871 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27872 {
27873 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27874 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27875 VULKAN_HPP_ASSERT( d.vkGetDeviceTensorMemoryRequirementsARM && "Function <vkGetDeviceTensorMemoryRequirementsARM> requires <VK_ARM_tensors>" );
27876 # endif
27877
27878 MemoryRequirements2 memoryRequirements;
27879 d.vkGetDeviceTensorMemoryRequirementsARM(
27880 m_device, reinterpret_cast<VkDeviceTensorMemoryRequirementsARM const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27881
27882 return memoryRequirements;
27883 }
27884
27885 // wrapper function for command vkGetDeviceTensorMemoryRequirementsARM, see
27886 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceTensorMemoryRequirementsARM.html
27887 template <typename X,
27888 typename Y,
27889 typename... Z,
27890 typename Dispatch,
27891 typename std::enable_if<IS_DISPATCHED( vkGetDeviceTensorMemoryRequirementsARM ), bool>::type>
27892 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getTensorMemoryRequirementsARM( DeviceTensorMemoryRequirementsARM const & info,
27893 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27894 {
27895 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27896 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27897 VULKAN_HPP_ASSERT( d.vkGetDeviceTensorMemoryRequirementsARM && "Function <vkGetDeviceTensorMemoryRequirementsARM> requires <VK_ARM_tensors>" );
27898 # endif
27899
27900 StructureChain<X, Y, Z...> structureChain;
27901 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
27902 d.vkGetDeviceTensorMemoryRequirementsARM(
27903 m_device, reinterpret_cast<VkDeviceTensorMemoryRequirementsARM const *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27904
27905 return structureChain;
27906 }
27907 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27908
27909 // wrapper function for command vkCmdCopyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyTensorARM.html
27910 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyTensorARM ), bool>::type>
27911 VULKAN_HPP_INLINE void CommandBuffer::copyTensorARM( CopyTensorInfoARM const * pCopyTensorInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27912 {
27913 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27914 d.vkCmdCopyTensorARM( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyTensorInfoARM const *>( pCopyTensorInfo ) );
27915 }
27916
27917 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27918 // wrapper function for command vkCmdCopyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyTensorARM.html
27919 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyTensorARM ), bool>::type>
27920 VULKAN_HPP_INLINE void CommandBuffer::copyTensorARM( CopyTensorInfoARM const & copyTensorInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27921 {
27922 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27923 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27924 VULKAN_HPP_ASSERT( d.vkCmdCopyTensorARM && "Function <vkCmdCopyTensorARM> requires <VK_ARM_tensors>" );
27925 # endif
27926
27927 d.vkCmdCopyTensorARM( m_commandBuffer, reinterpret_cast<VkCopyTensorInfoARM const *>( &copyTensorInfo ) );
27928 }
27929 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27930
27931 // wrapper function for command vkGetPhysicalDeviceExternalTensorPropertiesARM, see
27932 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalTensorPropertiesARM.html
27933 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalTensorPropertiesARM ), bool>::type>
27934 VULKAN_HPP_INLINE void PhysicalDevice::getExternalTensorPropertiesARM(
27935 PhysicalDeviceExternalTensorInfoARM const * pExternalTensorInfo, ExternalTensorPropertiesARM * pExternalTensorProperties, Dispatch const & d )
27936 const VULKAN_HPP_NOEXCEPT
27937 {
27938 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27939 d.vkGetPhysicalDeviceExternalTensorPropertiesARM( static_cast<VkPhysicalDevice>( m_physicalDevice ),
27940 reinterpret_cast<VkPhysicalDeviceExternalTensorInfoARM const *>( pExternalTensorInfo ),
27941 reinterpret_cast<VkExternalTensorPropertiesARM *>( pExternalTensorProperties ) );
27942 }
27943
27944 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27945 // wrapper function for command vkGetPhysicalDeviceExternalTensorPropertiesARM, see
27946 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalTensorPropertiesARM.html
27947 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalTensorPropertiesARM ), bool>::type>
27948 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalTensorPropertiesARM PhysicalDevice::getExternalTensorPropertiesARM(
27949 PhysicalDeviceExternalTensorInfoARM const & externalTensorInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27950 {
27951 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27952 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27953 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalTensorPropertiesARM &&
27954 "Function <vkGetPhysicalDeviceExternalTensorPropertiesARM> requires <VK_ARM_tensors>" );
27955 # endif
27956
27957 ExternalTensorPropertiesARM externalTensorProperties;
27958 d.vkGetPhysicalDeviceExternalTensorPropertiesARM( m_physicalDevice,
27959 reinterpret_cast<VkPhysicalDeviceExternalTensorInfoARM const *>( &externalTensorInfo ),
27960 reinterpret_cast<VkExternalTensorPropertiesARM *>( &externalTensorProperties ) );
27961
27962 return externalTensorProperties;
27963 }
27964 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27965
27966 // wrapper function for command vkGetTensorOpaqueCaptureDescriptorDataARM, see
27967 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDescriptorDataARM.html
27968 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorOpaqueCaptureDescriptorDataARM ), bool>::type>
27969 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getTensorOpaqueCaptureDescriptorDataARM(
27970 TensorCaptureDescriptorDataInfoARM const * pInfo, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27971 {
27972 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27973 return static_cast<Result>( d.vkGetTensorOpaqueCaptureDescriptorDataARM(
27974 static_cast<VkDevice>( m_device ), reinterpret_cast<VkTensorCaptureDescriptorDataInfoARM const *>( pInfo ), pData ) );
27975 }
27976
27977 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27978 // wrapper function for command vkGetTensorOpaqueCaptureDescriptorDataARM, see
27979 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDescriptorDataARM.html
27980 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorOpaqueCaptureDescriptorDataARM ), bool>::type>
27981 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::getTensorOpaqueCaptureDescriptorDataARM(
27982 TensorCaptureDescriptorDataInfoARM const & info, Dispatch const & d ) const
27983 {
27984 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27985 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27986 VULKAN_HPP_ASSERT( d.vkGetTensorOpaqueCaptureDescriptorDataARM && "Function <vkGetTensorOpaqueCaptureDescriptorDataARM> requires <VK_ARM_tensors>" );
27987 # endif
27988
27989 DataType data;
27990 Result result = static_cast<Result>(
27991 d.vkGetTensorOpaqueCaptureDescriptorDataARM( m_device, reinterpret_cast<VkTensorCaptureDescriptorDataInfoARM const *>( &info ), &data ) );
27992 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getTensorOpaqueCaptureDescriptorDataARM" );
27993
27994 return detail::createResultValueType( result, std::move( data ) );
27995 }
27996 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27997
27998 // wrapper function for command vkGetTensorViewOpaqueCaptureDescriptorDataARM, see
27999 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorViewOpaqueCaptureDescriptorDataARM.html
28000 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorViewOpaqueCaptureDescriptorDataARM ), bool>::type>
28001 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getTensorViewOpaqueCaptureDescriptorDataARM(
28002 TensorViewCaptureDescriptorDataInfoARM const * pInfo, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28003 {
28004 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28005 return static_cast<Result>( d.vkGetTensorViewOpaqueCaptureDescriptorDataARM(
28006 static_cast<VkDevice>( m_device ), reinterpret_cast<VkTensorViewCaptureDescriptorDataInfoARM const *>( pInfo ), pData ) );
28007 }
28008
28009 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28010 // wrapper function for command vkGetTensorViewOpaqueCaptureDescriptorDataARM, see
28011 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorViewOpaqueCaptureDescriptorDataARM.html
28012 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorViewOpaqueCaptureDescriptorDataARM ), bool>::type>
28013 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::getTensorViewOpaqueCaptureDescriptorDataARM(
28014 TensorViewCaptureDescriptorDataInfoARM const & info, Dispatch const & d ) const
28015 {
28016 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28017 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28018 VULKAN_HPP_ASSERT( d.vkGetTensorViewOpaqueCaptureDescriptorDataARM &&
28019 "Function <vkGetTensorViewOpaqueCaptureDescriptorDataARM> requires <VK_ARM_tensors>" );
28020 # endif
28021
28022 DataType data;
28023 Result result = static_cast<Result>(
28024 d.vkGetTensorViewOpaqueCaptureDescriptorDataARM( m_device, reinterpret_cast<VkTensorViewCaptureDescriptorDataInfoARM const *>( &info ), &data ) );
28025 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getTensorViewOpaqueCaptureDescriptorDataARM" );
28026
28027 return detail::createResultValueType( result, std::move( data ) );
28028 }
28029 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28030
28031 //=== VK_EXT_shader_module_identifier ===
28032
28033 // wrapper function for command vkGetShaderModuleIdentifierEXT, see
28034 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderModuleIdentifierEXT.html
28035 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderModuleIdentifierEXT ), bool>::type>
28036 VULKAN_HPP_INLINE void Device::getShaderModuleIdentifierEXT( ShaderModule shaderModule, ShaderModuleIdentifierEXT * pIdentifier, Dispatch const & d )
28037 const VULKAN_HPP_NOEXCEPT
28038 {
28039 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28040 d.vkGetShaderModuleIdentifierEXT(
28041 static_cast<VkDevice>( m_device ), static_cast<VkShaderModule>( shaderModule ), reinterpret_cast<VkShaderModuleIdentifierEXT *>( pIdentifier ) );
28042 }
28043
28044 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28045 // wrapper function for command vkGetShaderModuleIdentifierEXT, see
28046 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderModuleIdentifierEXT.html
28047 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderModuleIdentifierEXT ), bool>::type>
28048 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ShaderModuleIdentifierEXT Device::getShaderModuleIdentifierEXT( ShaderModule shaderModule, Dispatch const & d )
28049 const VULKAN_HPP_NOEXCEPT
28050 {
28051 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28052 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28053 VULKAN_HPP_ASSERT( d.vkGetShaderModuleIdentifierEXT && "Function <vkGetShaderModuleIdentifierEXT> requires <VK_EXT_shader_module_identifier>" );
28054 # endif
28055
28056 ShaderModuleIdentifierEXT identifier;
28057 d.vkGetShaderModuleIdentifierEXT( m_device, static_cast<VkShaderModule>( shaderModule ), reinterpret_cast<VkShaderModuleIdentifierEXT *>( &identifier ) );
28058
28059 return identifier;
28060 }
28061 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28062
28063 // wrapper function for command vkGetShaderModuleCreateInfoIdentifierEXT, see
28064 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderModuleCreateInfoIdentifierEXT.html
28065 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderModuleCreateInfoIdentifierEXT ), bool>::type>
28066 VULKAN_HPP_INLINE void Device::getShaderModuleCreateInfoIdentifierEXT(
28067 ShaderModuleCreateInfo const * pCreateInfo, ShaderModuleIdentifierEXT * pIdentifier, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28068 {
28069 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28070 d.vkGetShaderModuleCreateInfoIdentifierEXT( static_cast<VkDevice>( m_device ),
28071 reinterpret_cast<VkShaderModuleCreateInfo const *>( pCreateInfo ),
28072 reinterpret_cast<VkShaderModuleIdentifierEXT *>( pIdentifier ) );
28073 }
28074
28075 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28076 // wrapper function for command vkGetShaderModuleCreateInfoIdentifierEXT, see
28077 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderModuleCreateInfoIdentifierEXT.html
28078 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderModuleCreateInfoIdentifierEXT ), bool>::type>
28079 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ShaderModuleIdentifierEXT Device::getShaderModuleCreateInfoIdentifierEXT(
28080 ShaderModuleCreateInfo const & createInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28081 {
28082 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28083 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28084 VULKAN_HPP_ASSERT( d.vkGetShaderModuleCreateInfoIdentifierEXT &&
28085 "Function <vkGetShaderModuleCreateInfoIdentifierEXT> requires <VK_EXT_shader_module_identifier>" );
28086 # endif
28087
28088 ShaderModuleIdentifierEXT identifier;
28089 d.vkGetShaderModuleCreateInfoIdentifierEXT(
28090 m_device, reinterpret_cast<VkShaderModuleCreateInfo const *>( &createInfo ), reinterpret_cast<VkShaderModuleIdentifierEXT *>( &identifier ) );
28091
28092 return identifier;
28093 }
28094 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28095
28096 //=== VK_NV_optical_flow ===
28097
28098 // wrapper function for command vkGetPhysicalDeviceOpticalFlowImageFormatsNV, see
28099 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceOpticalFlowImageFormatsNV.html
28100 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceOpticalFlowImageFormatsNV ), bool>::type>
28101 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getOpticalFlowImageFormatsNV( OpticalFlowImageFormatInfoNV const * pOpticalFlowImageFormatInfo,
28102 uint32_t * pFormatCount,
28103 OpticalFlowImageFormatPropertiesNV * pImageFormatProperties,
28104 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28105 {
28106 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28107 return static_cast<Result>(
28108 d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( static_cast<VkPhysicalDevice>( m_physicalDevice ),
28109 reinterpret_cast<VkOpticalFlowImageFormatInfoNV const *>( pOpticalFlowImageFormatInfo ),
28110 pFormatCount,
28111 reinterpret_cast<VkOpticalFlowImageFormatPropertiesNV *>( pImageFormatProperties ) ) );
28112 }
28113
28114 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28115 // wrapper function for command vkGetPhysicalDeviceOpticalFlowImageFormatsNV, see
28116 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceOpticalFlowImageFormatsNV.html
28117 template <typename OpticalFlowImageFormatPropertiesNVAllocator,
28118 typename Dispatch,
28119 typename std::enable_if<std::is_same<typename OpticalFlowImageFormatPropertiesNVAllocator::value_type, OpticalFlowImageFormatPropertiesNV>::value,
28120 int>::type,
28121 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceOpticalFlowImageFormatsNV ), bool>::type>
28122 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
28123 typename ResultValueType<std::vector<OpticalFlowImageFormatPropertiesNV, OpticalFlowImageFormatPropertiesNVAllocator>>::type
28124 PhysicalDevice::getOpticalFlowImageFormatsNV( OpticalFlowImageFormatInfoNV const & opticalFlowImageFormatInfo, Dispatch const & d ) const
28125 {
28126 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28127 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28128 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV &&
28129 "Function <vkGetPhysicalDeviceOpticalFlowImageFormatsNV> requires <VK_NV_optical_flow>" );
28130 # endif
28131
28132 std::vector<OpticalFlowImageFormatPropertiesNV, OpticalFlowImageFormatPropertiesNVAllocator> imageFormatProperties;
28133 uint32_t formatCount;
28134 Result result;
28135 do
28136 {
28137 result = static_cast<Result>( d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV(
28138 m_physicalDevice, reinterpret_cast<VkOpticalFlowImageFormatInfoNV const *>( &opticalFlowImageFormatInfo ), &formatCount, nullptr ) );
28139 if ( ( result == Result::eSuccess ) && formatCount )
28140 {
28141 imageFormatProperties.resize( formatCount );
28142 result = static_cast<Result>(
28143 d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( m_physicalDevice,
28144 reinterpret_cast<VkOpticalFlowImageFormatInfoNV const *>( &opticalFlowImageFormatInfo ),
28145 &formatCount,
28146 reinterpret_cast<VkOpticalFlowImageFormatPropertiesNV *>( imageFormatProperties.data() ) ) );
28147 }
28148 } while ( result == Result::eIncomplete );
28149 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getOpticalFlowImageFormatsNV" );
28150 VULKAN_HPP_ASSERT( formatCount <= imageFormatProperties.size() );
28151 if ( formatCount < imageFormatProperties.size() )
28152 {
28153 imageFormatProperties.resize( formatCount );
28154 }
28155 return detail::createResultValueType( result, std::move( imageFormatProperties ) );
28156 }
28157
28158 // wrapper function for command vkGetPhysicalDeviceOpticalFlowImageFormatsNV, see
28159 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceOpticalFlowImageFormatsNV.html
28160 template <typename OpticalFlowImageFormatPropertiesNVAllocator,
28161 typename Dispatch,
28162 typename std::enable_if<std::is_same<typename OpticalFlowImageFormatPropertiesNVAllocator::value_type, OpticalFlowImageFormatPropertiesNV>::value,
28163 int>::type,
28164 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceOpticalFlowImageFormatsNV ), bool>::type>
28165 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
28166 typename ResultValueType<std::vector<OpticalFlowImageFormatPropertiesNV, OpticalFlowImageFormatPropertiesNVAllocator>>::type
28167 PhysicalDevice::getOpticalFlowImageFormatsNV( OpticalFlowImageFormatInfoNV const & opticalFlowImageFormatInfo,
28168 OpticalFlowImageFormatPropertiesNVAllocator const & opticalFlowImageFormatPropertiesNVAllocator,
28169 Dispatch const & d ) const
28170 {
28171 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28172 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28173 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV &&
28174 "Function <vkGetPhysicalDeviceOpticalFlowImageFormatsNV> requires <VK_NV_optical_flow>" );
28175 # endif
28176
28177 std::vector<OpticalFlowImageFormatPropertiesNV, OpticalFlowImageFormatPropertiesNVAllocator> imageFormatProperties(
28178 opticalFlowImageFormatPropertiesNVAllocator );
28179 uint32_t formatCount;
28180 Result result;
28181 do
28182 {
28183 result = static_cast<Result>( d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV(
28184 m_physicalDevice, reinterpret_cast<VkOpticalFlowImageFormatInfoNV const *>( &opticalFlowImageFormatInfo ), &formatCount, nullptr ) );
28185 if ( ( result == Result::eSuccess ) && formatCount )
28186 {
28187 imageFormatProperties.resize( formatCount );
28188 result = static_cast<Result>(
28189 d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( m_physicalDevice,
28190 reinterpret_cast<VkOpticalFlowImageFormatInfoNV const *>( &opticalFlowImageFormatInfo ),
28191 &formatCount,
28192 reinterpret_cast<VkOpticalFlowImageFormatPropertiesNV *>( imageFormatProperties.data() ) ) );
28193 }
28194 } while ( result == Result::eIncomplete );
28195 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getOpticalFlowImageFormatsNV" );
28196 VULKAN_HPP_ASSERT( formatCount <= imageFormatProperties.size() );
28197 if ( formatCount < imageFormatProperties.size() )
28198 {
28199 imageFormatProperties.resize( formatCount );
28200 }
28201 return detail::createResultValueType( result, std::move( imageFormatProperties ) );
28202 }
28203 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28204
28205 // wrapper function for command vkCreateOpticalFlowSessionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateOpticalFlowSessionNV.html
28206 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateOpticalFlowSessionNV ), bool>::type>
28207 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createOpticalFlowSessionNV(
28208 OpticalFlowSessionCreateInfoNV const * pCreateInfo, AllocationCallbacks const * pAllocator, OpticalFlowSessionNV * pSession, Dispatch const & d )
28209 const VULKAN_HPP_NOEXCEPT
28210 {
28211 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28212 return static_cast<Result>( d.vkCreateOpticalFlowSessionNV( static_cast<VkDevice>( m_device ),
28213 reinterpret_cast<VkOpticalFlowSessionCreateInfoNV const *>( pCreateInfo ),
28214 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
28215 reinterpret_cast<VkOpticalFlowSessionNV *>( pSession ) ) );
28216 }
28217
28218 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28219 // wrapper function for command vkCreateOpticalFlowSessionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateOpticalFlowSessionNV.html
28220 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateOpticalFlowSessionNV ), bool>::type>
28221 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<OpticalFlowSessionNV>::type Device::createOpticalFlowSessionNV(
28222 OpticalFlowSessionCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
28223 {
28224 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28225 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28226 VULKAN_HPP_ASSERT( d.vkCreateOpticalFlowSessionNV && "Function <vkCreateOpticalFlowSessionNV> requires <VK_NV_optical_flow>" );
28227 # endif
28228
28229 OpticalFlowSessionNV session;
28230 Result result = static_cast<Result>( d.vkCreateOpticalFlowSessionNV( m_device,
28231 reinterpret_cast<VkOpticalFlowSessionCreateInfoNV const *>( &createInfo ),
28232 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28233 reinterpret_cast<VkOpticalFlowSessionNV *>( &session ) ) );
28234 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createOpticalFlowSessionNV" );
28235
28236 return detail::createResultValueType( result, std::move( session ) );
28237 }
28238
28239 # ifndef VULKAN_HPP_NO_SMART_HANDLE
28240 // wrapper function for command vkCreateOpticalFlowSessionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateOpticalFlowSessionNV.html
28241 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateOpticalFlowSessionNV ), bool>::type>
28242 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<OpticalFlowSessionNV, Dispatch>>::type Device::createOpticalFlowSessionNVUnique(
28243 OpticalFlowSessionCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
28244 {
28245 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28246 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28247 VULKAN_HPP_ASSERT( d.vkCreateOpticalFlowSessionNV && "Function <vkCreateOpticalFlowSessionNV> requires <VK_NV_optical_flow>" );
28248 # endif
28249
28250 OpticalFlowSessionNV session;
28251 Result result = static_cast<Result>( d.vkCreateOpticalFlowSessionNV( m_device,
28252 reinterpret_cast<VkOpticalFlowSessionCreateInfoNV const *>( &createInfo ),
28253 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28254 reinterpret_cast<VkOpticalFlowSessionNV *>( &session ) ) );
28255 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createOpticalFlowSessionNVUnique" );
28256
28257 return detail::createResultValueType(
28258 result, UniqueHandle<OpticalFlowSessionNV, Dispatch>( session, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
28259 }
28260 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
28261 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28262
28263 // wrapper function for command vkDestroyOpticalFlowSessionNV, see
28264 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyOpticalFlowSessionNV.html
28265 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyOpticalFlowSessionNV ), bool>::type>
28266 VULKAN_HPP_INLINE void Device::destroyOpticalFlowSessionNV( OpticalFlowSessionNV session, AllocationCallbacks const * pAllocator, Dispatch const & d )
28267 const VULKAN_HPP_NOEXCEPT
28268 {
28269 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28270 d.vkDestroyOpticalFlowSessionNV(
28271 static_cast<VkDevice>( m_device ), static_cast<VkOpticalFlowSessionNV>( session ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
28272 }
28273
28274 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28275 // wrapper function for command vkDestroyOpticalFlowSessionNV, see
28276 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyOpticalFlowSessionNV.html
28277 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyOpticalFlowSessionNV ), bool>::type>
28278 VULKAN_HPP_INLINE void Device::destroyOpticalFlowSessionNV( OpticalFlowSessionNV session, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
28279 const VULKAN_HPP_NOEXCEPT
28280 {
28281 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28282 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28283 VULKAN_HPP_ASSERT( d.vkDestroyOpticalFlowSessionNV && "Function <vkDestroyOpticalFlowSessionNV> requires <VK_NV_optical_flow>" );
28284 # endif
28285
28286 d.vkDestroyOpticalFlowSessionNV(
28287 m_device, static_cast<VkOpticalFlowSessionNV>( session ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
28288 }
28289 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28290
28291 // wrapper function for command vkDestroyOpticalFlowSessionNV, see
28292 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyOpticalFlowSessionNV.html
28293 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyOpticalFlowSessionNV ), bool>::type>
28294 VULKAN_HPP_INLINE void Device::destroy( OpticalFlowSessionNV session, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28295 {
28296 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28297 d.vkDestroyOpticalFlowSessionNV(
28298 static_cast<VkDevice>( m_device ), static_cast<VkOpticalFlowSessionNV>( session ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
28299 }
28300
28301 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28302 // wrapper function for command vkDestroyOpticalFlowSessionNV, see
28303 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyOpticalFlowSessionNV.html
28304 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyOpticalFlowSessionNV ), bool>::type>
28305 VULKAN_HPP_INLINE void Device::destroy( OpticalFlowSessionNV session, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
28306 const VULKAN_HPP_NOEXCEPT
28307 {
28308 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28309 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28310 VULKAN_HPP_ASSERT( d.vkDestroyOpticalFlowSessionNV && "Function <vkDestroyOpticalFlowSessionNV> requires <VK_NV_optical_flow>" );
28311 # endif
28312
28313 d.vkDestroyOpticalFlowSessionNV(
28314 m_device, static_cast<VkOpticalFlowSessionNV>( session ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
28315 }
28316 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28317
28318 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
28319 // wrapper function for command vkBindOpticalFlowSessionImageNV, see
28320 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindOpticalFlowSessionImageNV.html
28321 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindOpticalFlowSessionImageNV ), bool>::type>
28322 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindOpticalFlowSessionImageNV(
28323 OpticalFlowSessionNV session, OpticalFlowSessionBindingPointNV bindingPoint, ImageView view, ImageLayout layout, Dispatch const & d )
28324 const VULKAN_HPP_NOEXCEPT
28325 {
28326 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28327 return static_cast<Result>( d.vkBindOpticalFlowSessionImageNV( static_cast<VkDevice>( m_device ),
28328 static_cast<VkOpticalFlowSessionNV>( session ),
28329 static_cast<VkOpticalFlowSessionBindingPointNV>( bindingPoint ),
28330 static_cast<VkImageView>( view ),
28331 static_cast<VkImageLayout>( layout ) ) );
28332 }
28333 #else
28334 // wrapper function for command vkBindOpticalFlowSessionImageNV, see
28335 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindOpticalFlowSessionImageNV.html
28336 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindOpticalFlowSessionImageNV ), bool>::type>
28337 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindOpticalFlowSessionImageNV(
28338 OpticalFlowSessionNV session, OpticalFlowSessionBindingPointNV bindingPoint, ImageView view, ImageLayout layout, Dispatch const & d ) const
28339 {
28340 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28341 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28342 VULKAN_HPP_ASSERT( d.vkBindOpticalFlowSessionImageNV && "Function <vkBindOpticalFlowSessionImageNV> requires <VK_NV_optical_flow>" );
28343 # endif
28344
28345 Result result = static_cast<Result>( d.vkBindOpticalFlowSessionImageNV( m_device,
28346 static_cast<VkOpticalFlowSessionNV>( session ),
28347 static_cast<VkOpticalFlowSessionBindingPointNV>( bindingPoint ),
28348 static_cast<VkImageView>( view ),
28349 static_cast<VkImageLayout>( layout ) ) );
28350 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindOpticalFlowSessionImageNV" );
28351
28352 return detail::createResultValueType( result );
28353 }
28354 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
28355
28356 // wrapper function for command vkCmdOpticalFlowExecuteNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdOpticalFlowExecuteNV.html
28357 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdOpticalFlowExecuteNV ), bool>::type>
28358 VULKAN_HPP_INLINE void CommandBuffer::opticalFlowExecuteNV( OpticalFlowSessionNV session, OpticalFlowExecuteInfoNV const * pExecuteInfo, Dispatch const & d )
28359 const VULKAN_HPP_NOEXCEPT
28360 {
28361 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28362 d.vkCmdOpticalFlowExecuteNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
28363 static_cast<VkOpticalFlowSessionNV>( session ),
28364 reinterpret_cast<VkOpticalFlowExecuteInfoNV const *>( pExecuteInfo ) );
28365 }
28366
28367 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28368 // wrapper function for command vkCmdOpticalFlowExecuteNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdOpticalFlowExecuteNV.html
28369 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdOpticalFlowExecuteNV ), bool>::type>
28370 VULKAN_HPP_INLINE void CommandBuffer::opticalFlowExecuteNV( OpticalFlowSessionNV session, OpticalFlowExecuteInfoNV const & executeInfo, Dispatch const & d )
28371 const VULKAN_HPP_NOEXCEPT
28372 {
28373 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28374 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28375 VULKAN_HPP_ASSERT( d.vkCmdOpticalFlowExecuteNV && "Function <vkCmdOpticalFlowExecuteNV> requires <VK_NV_optical_flow>" );
28376 # endif
28377
28378 d.vkCmdOpticalFlowExecuteNV(
28379 m_commandBuffer, static_cast<VkOpticalFlowSessionNV>( session ), reinterpret_cast<VkOpticalFlowExecuteInfoNV const *>( &executeInfo ) );
28380 }
28381 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28382
28383 //=== VK_KHR_maintenance5 ===
28384
28385 // wrapper function for command vkCmdBindIndexBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer2KHR.html
28386 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindIndexBuffer2KHR ), bool>::type>
28387 VULKAN_HPP_INLINE void CommandBuffer::bindIndexBuffer2KHR( Buffer buffer, DeviceSize offset, DeviceSize size, IndexType indexType, Dispatch const & d )
28388 const VULKAN_HPP_NOEXCEPT
28389 {
28390 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28391 d.vkCmdBindIndexBuffer2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
28392 static_cast<VkBuffer>( buffer ),
28393 static_cast<VkDeviceSize>( offset ),
28394 static_cast<VkDeviceSize>( size ),
28395 static_cast<VkIndexType>( indexType ) );
28396 }
28397
28398 // wrapper function for command vkGetRenderingAreaGranularityKHR, see
28399 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderingAreaGranularityKHR.html
28400 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRenderingAreaGranularityKHR ), bool>::type>
28401 VULKAN_HPP_INLINE void Device::getRenderingAreaGranularityKHR( RenderingAreaInfo const * pRenderingAreaInfo, Extent2D * pGranularity, Dispatch const & d )
28402 const VULKAN_HPP_NOEXCEPT
28403 {
28404 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28405 d.vkGetRenderingAreaGranularityKHR(
28406 static_cast<VkDevice>( m_device ), reinterpret_cast<VkRenderingAreaInfo const *>( pRenderingAreaInfo ), reinterpret_cast<VkExtent2D *>( pGranularity ) );
28407 }
28408
28409 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28410 // wrapper function for command vkGetRenderingAreaGranularityKHR, see
28411 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderingAreaGranularityKHR.html
28412 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRenderingAreaGranularityKHR ), bool>::type>
28413 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Extent2D Device::getRenderingAreaGranularityKHR( RenderingAreaInfo const & renderingAreaInfo, Dispatch const & d )
28414 const VULKAN_HPP_NOEXCEPT
28415 {
28416 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28417 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28418 VULKAN_HPP_ASSERT( d.vkGetRenderingAreaGranularityKHR && "Function <vkGetRenderingAreaGranularityKHR> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
28419 # endif
28420
28421 Extent2D granularity;
28422 d.vkGetRenderingAreaGranularityKHR(
28423 m_device, reinterpret_cast<VkRenderingAreaInfo const *>( &renderingAreaInfo ), reinterpret_cast<VkExtent2D *>( &granularity ) );
28424
28425 return granularity;
28426 }
28427 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28428
28429 // wrapper function for command vkGetDeviceImageSubresourceLayoutKHR, see
28430 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayoutKHR.html
28431 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSubresourceLayoutKHR ), bool>::type>
28432 VULKAN_HPP_INLINE void Device::getImageSubresourceLayoutKHR( DeviceImageSubresourceInfo const * pInfo, SubresourceLayout2 * pLayout, Dispatch const & d )
28433 const VULKAN_HPP_NOEXCEPT
28434 {
28435 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28436 d.vkGetDeviceImageSubresourceLayoutKHR(
28437 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceImageSubresourceInfo const *>( pInfo ), reinterpret_cast<VkSubresourceLayout2 *>( pLayout ) );
28438 }
28439
28440 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28441 // wrapper function for command vkGetDeviceImageSubresourceLayoutKHR, see
28442 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayoutKHR.html
28443 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSubresourceLayoutKHR ), bool>::type>
28444 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Device::getImageSubresourceLayoutKHR( DeviceImageSubresourceInfo const & info, Dispatch const & d )
28445 const VULKAN_HPP_NOEXCEPT
28446 {
28447 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28448 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28449 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSubresourceLayoutKHR &&
28450 "Function <vkGetDeviceImageSubresourceLayoutKHR> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
28451 # endif
28452
28453 SubresourceLayout2 layout;
28454 d.vkGetDeviceImageSubresourceLayoutKHR(
28455 m_device, reinterpret_cast<VkDeviceImageSubresourceInfo const *>( &info ), reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
28456
28457 return layout;
28458 }
28459
28460 // wrapper function for command vkGetDeviceImageSubresourceLayoutKHR, see
28461 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayoutKHR.html
28462 template <typename X,
28463 typename Y,
28464 typename... Z,
28465 typename Dispatch,
28466 typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSubresourceLayoutKHR ), bool>::type>
28467 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageSubresourceLayoutKHR( DeviceImageSubresourceInfo const & info,
28468 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28469 {
28470 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28471 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28472 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSubresourceLayoutKHR &&
28473 "Function <vkGetDeviceImageSubresourceLayoutKHR> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
28474 # endif
28475
28476 StructureChain<X, Y, Z...> structureChain;
28477 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
28478 d.vkGetDeviceImageSubresourceLayoutKHR(
28479 m_device, reinterpret_cast<VkDeviceImageSubresourceInfo const *>( &info ), reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
28480
28481 return structureChain;
28482 }
28483 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28484
28485 // wrapper function for command vkGetImageSubresourceLayout2KHR, see
28486 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2KHR.html
28487 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2KHR ), bool>::type>
28488 VULKAN_HPP_INLINE void Device::getImageSubresourceLayout2KHR(
28489 Image image, ImageSubresource2 const * pSubresource, SubresourceLayout2 * pLayout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28490 {
28491 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28492 d.vkGetImageSubresourceLayout2KHR( static_cast<VkDevice>( m_device ),
28493 static_cast<VkImage>( image ),
28494 reinterpret_cast<VkImageSubresource2 const *>( pSubresource ),
28495 reinterpret_cast<VkSubresourceLayout2 *>( pLayout ) );
28496 }
28497
28498 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28499 // wrapper function for command vkGetImageSubresourceLayout2KHR, see
28500 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2KHR.html
28501 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2KHR ), bool>::type>
28502 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Device::getImageSubresourceLayout2KHR(
28503 Image image, ImageSubresource2 const & subresource, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28504 {
28505 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28506 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28507 VULKAN_HPP_ASSERT(
28508 d.vkGetImageSubresourceLayout2KHR &&
28509 "Function <vkGetImageSubresourceLayout2KHR> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
28510 # endif
28511
28512 SubresourceLayout2 layout;
28513 d.vkGetImageSubresourceLayout2KHR( m_device,
28514 static_cast<VkImage>( image ),
28515 reinterpret_cast<VkImageSubresource2 const *>( &subresource ),
28516 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
28517
28518 return layout;
28519 }
28520
28521 // wrapper function for command vkGetImageSubresourceLayout2KHR, see
28522 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2KHR.html
28523 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2KHR ), bool>::type>
28524 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageSubresourceLayout2KHR(
28525 Image image, ImageSubresource2 const & subresource, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28526 {
28527 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28528 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28529 VULKAN_HPP_ASSERT(
28530 d.vkGetImageSubresourceLayout2KHR &&
28531 "Function <vkGetImageSubresourceLayout2KHR> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
28532 # endif
28533
28534 StructureChain<X, Y, Z...> structureChain;
28535 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
28536 d.vkGetImageSubresourceLayout2KHR( m_device,
28537 static_cast<VkImage>( image ),
28538 reinterpret_cast<VkImageSubresource2 const *>( &subresource ),
28539 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
28540
28541 return structureChain;
28542 }
28543 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28544
28545 //=== VK_AMD_anti_lag ===
28546
28547 // wrapper function for command vkAntiLagUpdateAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAntiLagUpdateAMD.html
28548 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAntiLagUpdateAMD ), bool>::type>
28549 VULKAN_HPP_INLINE void Device::antiLagUpdateAMD( AntiLagDataAMD const * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28550 {
28551 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28552 d.vkAntiLagUpdateAMD( static_cast<VkDevice>( m_device ), reinterpret_cast<VkAntiLagDataAMD const *>( pData ) );
28553 }
28554
28555 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28556 // wrapper function for command vkAntiLagUpdateAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAntiLagUpdateAMD.html
28557 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAntiLagUpdateAMD ), bool>::type>
28558 VULKAN_HPP_INLINE void Device::antiLagUpdateAMD( AntiLagDataAMD const & data, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28559 {
28560 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28561 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28562 VULKAN_HPP_ASSERT( d.vkAntiLagUpdateAMD && "Function <vkAntiLagUpdateAMD> requires <VK_AMD_anti_lag>" );
28563 # endif
28564
28565 d.vkAntiLagUpdateAMD( m_device, reinterpret_cast<VkAntiLagDataAMD const *>( &data ) );
28566 }
28567 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28568
28569 //=== VK_KHR_present_wait2 ===
28570
28571 // wrapper function for command vkWaitForPresent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForPresent2KHR.html
28572 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitForPresent2KHR ), bool>::type>
28573 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForPresent2KHR(
28574 SwapchainKHR swapchain, PresentWait2InfoKHR const * pPresentWait2Info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28575 {
28576 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28577 return static_cast<Result>( d.vkWaitForPresent2KHR(
28578 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkPresentWait2InfoKHR const *>( pPresentWait2Info ) ) );
28579 }
28580
28581 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28582 // wrapper function for command vkWaitForPresent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForPresent2KHR.html
28583 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitForPresent2KHR ), bool>::type>
28584 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForPresent2KHR(
28585 SwapchainKHR swapchain, PresentWait2InfoKHR const & presentWait2Info, Dispatch const & d ) const
28586 {
28587 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28588 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28589 VULKAN_HPP_ASSERT( d.vkWaitForPresent2KHR && "Function <vkWaitForPresent2KHR> requires <VK_KHR_present_wait2>" );
28590 # endif
28591
28592 Result result = static_cast<Result>(
28593 d.vkWaitForPresent2KHR( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkPresentWait2InfoKHR const *>( &presentWait2Info ) ) );
28594
28595 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
28596 detail::resultCheck( result,
28597 VULKAN_HPP_NAMESPACE_STRING "::Device::waitForPresent2KHR",
28598 { Result::eSuccess, Result::eTimeout, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
28599 # else
28600 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitForPresent2KHR", { Result::eSuccess, Result::eTimeout, Result::eSuboptimalKHR } );
28601 # endif
28602
28603 return static_cast<Result>( result );
28604 }
28605 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28606
28607 //=== VK_EXT_shader_object ===
28608
28609 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28610 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28611 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createShadersEXT(
28612 uint32_t createInfoCount, ShaderCreateInfoEXT const * pCreateInfos, AllocationCallbacks const * pAllocator, ShaderEXT * pShaders, Dispatch const & d )
28613 const VULKAN_HPP_NOEXCEPT
28614 {
28615 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28616 return static_cast<Result>( d.vkCreateShadersEXT( static_cast<VkDevice>( m_device ),
28617 createInfoCount,
28618 reinterpret_cast<VkShaderCreateInfoEXT const *>( pCreateInfos ),
28619 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
28620 reinterpret_cast<VkShaderEXT *>( pShaders ) ) );
28621 }
28622
28623 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28624 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28625 template <typename ShaderEXTAllocator,
28626 typename Dispatch,
28627 typename std::enable_if<std::is_same<typename ShaderEXTAllocator::value_type, ShaderEXT>::value, int>::type,
28628 typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28629 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<ShaderEXT, ShaderEXTAllocator>> Device::createShadersEXT(
28630 ArrayProxy<ShaderCreateInfoEXT const> const & createInfos, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
28631 {
28632 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28633 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28634 VULKAN_HPP_ASSERT( d.vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
28635 # endif
28636
28637 std::vector<ShaderEXT, ShaderEXTAllocator> shaders( createInfos.size() );
28638 Result result = static_cast<Result>( d.vkCreateShadersEXT( m_device,
28639 createInfos.size(),
28640 reinterpret_cast<VkShaderCreateInfoEXT const *>( createInfos.data() ),
28641 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28642 reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) );
28643 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXT", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
28644
28645 return { result, shaders };
28646 }
28647
28648 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28649 template <typename ShaderEXTAllocator,
28650 typename Dispatch,
28651 typename std::enable_if<std::is_same<typename ShaderEXTAllocator::value_type, ShaderEXT>::value, int>::type,
28652 typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28653 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<ShaderEXT, ShaderEXTAllocator>> Device::createShadersEXT(
28654 ArrayProxy<ShaderCreateInfoEXT const> const & createInfos,
28655 Optional<AllocationCallbacks const> allocator,
28656 ShaderEXTAllocator const & shaderEXTAllocator,
28657 Dispatch const & d ) const
28658 {
28659 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28660 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28661 VULKAN_HPP_ASSERT( d.vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
28662 # endif
28663
28664 std::vector<ShaderEXT, ShaderEXTAllocator> shaders( createInfos.size(), {}, shaderEXTAllocator );
28665 Result result = static_cast<Result>( d.vkCreateShadersEXT( m_device,
28666 createInfos.size(),
28667 reinterpret_cast<VkShaderCreateInfoEXT const *>( createInfos.data() ),
28668 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28669 reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) );
28670 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXT", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
28671
28672 return { result, shaders };
28673 }
28674
28675 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28676 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28677 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<ShaderEXT> Device::createShaderEXT(
28678 ShaderCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
28679 {
28680 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28681 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28682 VULKAN_HPP_ASSERT( d.vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
28683 # endif
28684
28685 ShaderEXT shader;
28686 Result result = static_cast<Result>( d.vkCreateShadersEXT( m_device,
28687 1,
28688 reinterpret_cast<VkShaderCreateInfoEXT const *>( &createInfo ),
28689 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28690 reinterpret_cast<VkShaderEXT *>( &shader ) ) );
28691 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderEXT", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
28692
28693 return { result, shader };
28694 }
28695
28696 # ifndef VULKAN_HPP_NO_SMART_HANDLE
28697 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28698 template <typename Dispatch,
28699 typename ShaderEXTAllocator,
28700 typename std::enable_if<std::is_same<typename ShaderEXTAllocator::value_type, UniqueHandle<ShaderEXT, Dispatch>>::value, int>::type,
28701 typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28702 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<ShaderEXT, Dispatch>, ShaderEXTAllocator>> Device::createShadersEXTUnique(
28703 ArrayProxy<ShaderCreateInfoEXT const> const & createInfos, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
28704 {
28705 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28706 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28707 VULKAN_HPP_ASSERT( d.vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
28708 # endif
28709
28710 std::vector<ShaderEXT> shaders( createInfos.size() );
28711 Result result = static_cast<Result>( d.vkCreateShadersEXT( m_device,
28712 createInfos.size(),
28713 reinterpret_cast<VkShaderCreateInfoEXT const *>( createInfos.data() ),
28714 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28715 reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) );
28716 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXTUnique", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
28717 std::vector<UniqueHandle<ShaderEXT, Dispatch>, ShaderEXTAllocator> uniqueShaders;
28718 uniqueShaders.reserve( createInfos.size() );
28719 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
28720 for ( auto const & shader : shaders )
28721 {
28722 uniqueShaders.push_back( UniqueHandle<ShaderEXT, Dispatch>( shader, deleter ) );
28723 }
28724 return ResultValue<std::vector<UniqueHandle<ShaderEXT, Dispatch>, ShaderEXTAllocator>>( result, std::move( uniqueShaders ) );
28725 }
28726
28727 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28728 template <typename Dispatch,
28729 typename ShaderEXTAllocator,
28730 typename std::enable_if<std::is_same<typename ShaderEXTAllocator::value_type, UniqueHandle<ShaderEXT, Dispatch>>::value, int>::type,
28731 typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28732 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<ShaderEXT, Dispatch>, ShaderEXTAllocator>> Device::createShadersEXTUnique(
28733 ArrayProxy<ShaderCreateInfoEXT const> const & createInfos,
28734 Optional<AllocationCallbacks const> allocator,
28735 ShaderEXTAllocator const & shaderEXTAllocator,
28736 Dispatch const & d ) const
28737 {
28738 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28739 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28740 VULKAN_HPP_ASSERT( d.vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
28741 # endif
28742
28743 std::vector<ShaderEXT> shaders( createInfos.size() );
28744 Result result = static_cast<Result>( d.vkCreateShadersEXT( m_device,
28745 createInfos.size(),
28746 reinterpret_cast<VkShaderCreateInfoEXT const *>( createInfos.data() ),
28747 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28748 reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) );
28749 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXTUnique", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
28750 std::vector<UniqueHandle<ShaderEXT, Dispatch>, ShaderEXTAllocator> uniqueShaders( shaderEXTAllocator );
28751 uniqueShaders.reserve( createInfos.size() );
28752 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
28753 for ( auto const & shader : shaders )
28754 {
28755 uniqueShaders.push_back( UniqueHandle<ShaderEXT, Dispatch>( shader, deleter ) );
28756 }
28757 return ResultValue<std::vector<UniqueHandle<ShaderEXT, Dispatch>, ShaderEXTAllocator>>( result, std::move( uniqueShaders ) );
28758 }
28759
28760 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28761 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28762 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<ShaderEXT, Dispatch>> Device::createShaderEXTUnique(
28763 ShaderCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
28764 {
28765 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28766 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28767 VULKAN_HPP_ASSERT( d.vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
28768 # endif
28769
28770 ShaderEXT shader;
28771 Result result = static_cast<Result>( d.vkCreateShadersEXT( m_device,
28772 1,
28773 reinterpret_cast<VkShaderCreateInfoEXT const *>( &createInfo ),
28774 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28775 reinterpret_cast<VkShaderEXT *>( &shader ) ) );
28776 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderEXTUnique", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
28777
28778 return ResultValue<UniqueHandle<ShaderEXT, Dispatch>>(
28779 result, UniqueHandle<ShaderEXT, Dispatch>( shader, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
28780 }
28781 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
28782 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28783
28784 // wrapper function for command vkDestroyShaderEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderEXT.html
28785 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderEXT ), bool>::type>
28786 VULKAN_HPP_INLINE void Device::destroyShaderEXT( ShaderEXT shader, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28787 {
28788 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28789 d.vkDestroyShaderEXT(
28790 static_cast<VkDevice>( m_device ), static_cast<VkShaderEXT>( shader ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
28791 }
28792
28793 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28794 // wrapper function for command vkDestroyShaderEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderEXT.html
28795 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderEXT ), bool>::type>
28796 VULKAN_HPP_INLINE void Device::destroyShaderEXT( ShaderEXT shader, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
28797 const VULKAN_HPP_NOEXCEPT
28798 {
28799 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28800 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28801 VULKAN_HPP_ASSERT( d.vkDestroyShaderEXT && "Function <vkDestroyShaderEXT> requires <VK_EXT_shader_object>" );
28802 # endif
28803
28804 d.vkDestroyShaderEXT( m_device, static_cast<VkShaderEXT>( shader ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
28805 }
28806 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28807
28808 // wrapper function for command vkDestroyShaderEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderEXT.html
28809 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderEXT ), bool>::type>
28810 VULKAN_HPP_INLINE void Device::destroy( ShaderEXT shader, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28811 {
28812 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28813 d.vkDestroyShaderEXT(
28814 static_cast<VkDevice>( m_device ), static_cast<VkShaderEXT>( shader ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
28815 }
28816
28817 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28818 // wrapper function for command vkDestroyShaderEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderEXT.html
28819 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderEXT ), bool>::type>
28820 VULKAN_HPP_INLINE void Device::destroy( ShaderEXT shader, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28821 {
28822 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28823 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28824 VULKAN_HPP_ASSERT( d.vkDestroyShaderEXT && "Function <vkDestroyShaderEXT> requires <VK_EXT_shader_object>" );
28825 # endif
28826
28827 d.vkDestroyShaderEXT( m_device, static_cast<VkShaderEXT>( shader ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
28828 }
28829 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28830
28831 // wrapper function for command vkGetShaderBinaryDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderBinaryDataEXT.html
28832 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderBinaryDataEXT ), bool>::type>
28833 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getShaderBinaryDataEXT( ShaderEXT shader, size_t * pDataSize, void * pData, Dispatch const & d )
28834 const VULKAN_HPP_NOEXCEPT
28835 {
28836 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28837 return static_cast<Result>( d.vkGetShaderBinaryDataEXT( static_cast<VkDevice>( m_device ), static_cast<VkShaderEXT>( shader ), pDataSize, pData ) );
28838 }
28839
28840 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28841 // wrapper function for command vkGetShaderBinaryDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderBinaryDataEXT.html
28842 template <typename Uint8_tAllocator,
28843 typename Dispatch,
28844 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
28845 typename std::enable_if<IS_DISPATCHED( vkGetShaderBinaryDataEXT ), bool>::type>
28846 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type Device::getShaderBinaryDataEXT(
28847 ShaderEXT shader, Dispatch const & d ) const
28848 {
28849 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28850 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28851 VULKAN_HPP_ASSERT( d.vkGetShaderBinaryDataEXT && "Function <vkGetShaderBinaryDataEXT> requires <VK_EXT_shader_object>" );
28852 # endif
28853
28854 std::vector<uint8_t, Uint8_tAllocator> data;
28855 size_t dataSize;
28856 Result result;
28857 do
28858 {
28859 result = static_cast<Result>( d.vkGetShaderBinaryDataEXT( m_device, static_cast<VkShaderEXT>( shader ), &dataSize, nullptr ) );
28860 if ( ( result == Result::eSuccess ) && dataSize )
28861 {
28862 data.resize( dataSize );
28863 result =
28864 static_cast<Result>( d.vkGetShaderBinaryDataEXT( m_device, static_cast<VkShaderEXT>( shader ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
28865 }
28866 } while ( result == Result::eIncomplete );
28867 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getShaderBinaryDataEXT" );
28868 VULKAN_HPP_ASSERT( dataSize <= data.size() );
28869 if ( dataSize < data.size() )
28870 {
28871 data.resize( dataSize );
28872 }
28873 return detail::createResultValueType( result, std::move( data ) );
28874 }
28875
28876 // wrapper function for command vkGetShaderBinaryDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderBinaryDataEXT.html
28877 template <typename Uint8_tAllocator,
28878 typename Dispatch,
28879 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
28880 typename std::enable_if<IS_DISPATCHED( vkGetShaderBinaryDataEXT ), bool>::type>
28881 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type Device::getShaderBinaryDataEXT(
28882 ShaderEXT shader, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
28883 {
28884 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28885 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28886 VULKAN_HPP_ASSERT( d.vkGetShaderBinaryDataEXT && "Function <vkGetShaderBinaryDataEXT> requires <VK_EXT_shader_object>" );
28887 # endif
28888
28889 std::vector<uint8_t, Uint8_tAllocator> data( uint8_tAllocator );
28890 size_t dataSize;
28891 Result result;
28892 do
28893 {
28894 result = static_cast<Result>( d.vkGetShaderBinaryDataEXT( m_device, static_cast<VkShaderEXT>( shader ), &dataSize, nullptr ) );
28895 if ( ( result == Result::eSuccess ) && dataSize )
28896 {
28897 data.resize( dataSize );
28898 result =
28899 static_cast<Result>( d.vkGetShaderBinaryDataEXT( m_device, static_cast<VkShaderEXT>( shader ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
28900 }
28901 } while ( result == Result::eIncomplete );
28902 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getShaderBinaryDataEXT" );
28903 VULKAN_HPP_ASSERT( dataSize <= data.size() );
28904 if ( dataSize < data.size() )
28905 {
28906 data.resize( dataSize );
28907 }
28908 return detail::createResultValueType( result, std::move( data ) );
28909 }
28910 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28911
28912 // wrapper function for command vkCmdBindShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindShadersEXT.html
28913 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindShadersEXT ), bool>::type>
28914 VULKAN_HPP_INLINE void CommandBuffer::bindShadersEXT(
28915 uint32_t stageCount, ShaderStageFlagBits const * pStages, ShaderEXT const * pShaders, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28916 {
28917 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28918 d.vkCmdBindShadersEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
28919 stageCount,
28920 reinterpret_cast<VkShaderStageFlagBits const *>( pStages ),
28921 reinterpret_cast<VkShaderEXT const *>( pShaders ) );
28922 }
28923
28924 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28925 // wrapper function for command vkCmdBindShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindShadersEXT.html
28926 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindShadersEXT ), bool>::type>
28927 VULKAN_HPP_INLINE void CommandBuffer::bindShadersEXT(
28928 ArrayProxy<ShaderStageFlagBits const> const & stages, ArrayProxy<ShaderEXT const> const & shaders, Dispatch const & d )
28929 const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
28930 {
28931 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28932 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28933 VULKAN_HPP_ASSERT( d.vkCmdBindShadersEXT && "Function <vkCmdBindShadersEXT> requires <VK_EXT_shader_object>" );
28934 # endif
28935 # ifdef VULKAN_HPP_NO_EXCEPTIONS
28936 VULKAN_HPP_ASSERT( stages.size() == shaders.size() );
28937 # else
28938 if ( stages.size() != shaders.size() )
28939 {
28940 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindShadersEXT: stages.size() != shaders.size()" );
28941 }
28942 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
28943
28944 d.vkCmdBindShadersEXT( m_commandBuffer,
28945 stages.size(),
28946 reinterpret_cast<VkShaderStageFlagBits const *>( stages.data() ),
28947 reinterpret_cast<VkShaderEXT const *>( shaders.data() ) );
28948 }
28949 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28950
28951 // wrapper function for command vkCmdSetDepthClampRangeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClampRangeEXT.html
28952 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthClampRangeEXT ), bool>::type>
28953 VULKAN_HPP_INLINE void CommandBuffer::setDepthClampRangeEXT(
28954 DepthClampModeEXT depthClampMode, DepthClampRangeEXT const * pDepthClampRange, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28955 {
28956 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28957 d.vkCmdSetDepthClampRangeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
28958 static_cast<VkDepthClampModeEXT>( depthClampMode ),
28959 reinterpret_cast<VkDepthClampRangeEXT const *>( pDepthClampRange ) );
28960 }
28961
28962 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28963 // wrapper function for command vkCmdSetDepthClampRangeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClampRangeEXT.html
28964 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthClampRangeEXT ), bool>::type>
28965 VULKAN_HPP_INLINE void CommandBuffer::setDepthClampRangeEXT(
28966 DepthClampModeEXT depthClampMode, Optional<DepthClampRangeEXT const> depthClampRange, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28967 {
28968 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28969 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28970 VULKAN_HPP_ASSERT( d.vkCmdSetDepthClampRangeEXT &&
28971 "Function <vkCmdSetDepthClampRangeEXT> requires <VK_EXT_depth_clamp_control> or <VK_EXT_shader_object>" );
28972 # endif
28973
28974 d.vkCmdSetDepthClampRangeEXT(
28975 m_commandBuffer, static_cast<VkDepthClampModeEXT>( depthClampMode ), reinterpret_cast<VkDepthClampRangeEXT const *>( depthClampRange.get() ) );
28976 }
28977 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28978
28979 //=== VK_KHR_pipeline_binary ===
28980
28981 // wrapper function for command vkCreatePipelineBinariesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html
28982 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineBinariesKHR ), bool>::type>
28983 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createPipelineBinariesKHR(
28984 PipelineBinaryCreateInfoKHR const * pCreateInfo, AllocationCallbacks const * pAllocator, PipelineBinaryHandlesInfoKHR * pBinaries, Dispatch const & d )
28985 const VULKAN_HPP_NOEXCEPT
28986 {
28987 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28988 return static_cast<Result>( d.vkCreatePipelineBinariesKHR( static_cast<VkDevice>( m_device ),
28989 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( pCreateInfo ),
28990 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
28991 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( pBinaries ) ) );
28992 }
28993
28994 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28995 // wrapper function for command vkCreatePipelineBinariesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html
28996 template <typename PipelineBinaryKHRAllocator,
28997 typename Dispatch,
28998 typename std::enable_if<std::is_same<typename PipelineBinaryKHRAllocator::value_type, PipelineBinaryKHR>::value, int>::type,
28999 typename std::enable_if<IS_DISPATCHED( vkCreatePipelineBinariesKHR ), bool>::type>
29000 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<PipelineBinaryKHR, PipelineBinaryKHRAllocator>> Device::createPipelineBinariesKHR(
29001 PipelineBinaryCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
29002 {
29003 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29004 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29005 VULKAN_HPP_ASSERT( d.vkCreatePipelineBinariesKHR && "Function <vkCreatePipelineBinariesKHR> requires <VK_KHR_pipeline_binary>" );
29006 # endif
29007
29008 std::vector<PipelineBinaryKHR, PipelineBinaryKHRAllocator> pipelineBinaries;
29009 PipelineBinaryHandlesInfoKHR binaries;
29010 Result result;
29011 if ( createInfo.pKeysAndDataInfo )
29012 {
29013 VULKAN_HPP_ASSERT( !createInfo.pipeline && !createInfo.pPipelineCreateInfo );
29014 pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount );
29015 binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount;
29016 binaries.pPipelineBinaries = pipelineBinaries.data();
29017 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29018 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
29019 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29020 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29021 }
29022 else
29023 {
29024 VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo );
29025 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29026 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
29027 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29028 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29029 if ( result == Result::eSuccess )
29030 {
29031 pipelineBinaries.resize( binaries.pipelineBinaryCount );
29032 binaries.pPipelineBinaries = pipelineBinaries.data();
29033 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29034 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
29035 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29036 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29037 }
29038 }
29039
29040 detail::resultCheck(
29041 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineBinariesKHR", { Result::eSuccess, Result::eIncomplete, Result::ePipelineBinaryMissingKHR } );
29042
29043 return { result, pipelineBinaries };
29044 }
29045
29046 // wrapper function for command vkCreatePipelineBinariesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html
29047 template <typename PipelineBinaryKHRAllocator,
29048 typename Dispatch,
29049 typename std::enable_if<std::is_same<typename PipelineBinaryKHRAllocator::value_type, PipelineBinaryKHR>::value, int>::type,
29050 typename std::enable_if<IS_DISPATCHED( vkCreatePipelineBinariesKHR ), bool>::type>
29051 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<PipelineBinaryKHR, PipelineBinaryKHRAllocator>> Device::createPipelineBinariesKHR(
29052 PipelineBinaryCreateInfoKHR const & createInfo,
29053 Optional<AllocationCallbacks const> allocator,
29054 PipelineBinaryKHRAllocator const & pipelineBinaryKHRAllocator,
29055 Dispatch const & d ) const
29056 {
29057 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29058 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29059 VULKAN_HPP_ASSERT( d.vkCreatePipelineBinariesKHR && "Function <vkCreatePipelineBinariesKHR> requires <VK_KHR_pipeline_binary>" );
29060 # endif
29061
29062 std::vector<PipelineBinaryKHR, PipelineBinaryKHRAllocator> pipelineBinaries( pipelineBinaryKHRAllocator );
29063 PipelineBinaryHandlesInfoKHR binaries;
29064 Result result;
29065 if ( createInfo.pKeysAndDataInfo )
29066 {
29067 VULKAN_HPP_ASSERT( !createInfo.pipeline && !createInfo.pPipelineCreateInfo );
29068 pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount );
29069 binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount;
29070 binaries.pPipelineBinaries = pipelineBinaries.data();
29071 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29072 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
29073 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29074 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29075 }
29076 else
29077 {
29078 VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo );
29079 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29080 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
29081 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29082 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29083 if ( result == Result::eSuccess )
29084 {
29085 pipelineBinaries.resize( binaries.pipelineBinaryCount );
29086 binaries.pPipelineBinaries = pipelineBinaries.data();
29087 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29088 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
29089 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29090 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29091 }
29092 }
29093
29094 detail::resultCheck(
29095 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineBinariesKHR", { Result::eSuccess, Result::eIncomplete, Result::ePipelineBinaryMissingKHR } );
29096
29097 return { result, pipelineBinaries };
29098 }
29099
29100 # ifndef VULKAN_HPP_NO_SMART_HANDLE
29101 // wrapper function for command vkCreatePipelineBinariesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html
29102 template <typename Dispatch,
29103 typename PipelineBinaryKHRAllocator,
29104 typename std::enable_if<std::is_same<typename PipelineBinaryKHRAllocator::value_type, UniqueHandle<PipelineBinaryKHR, Dispatch>>::value, int>::type,
29105 typename std::enable_if<IS_DISPATCHED( vkCreatePipelineBinariesKHR ), bool>::type>
29106 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<PipelineBinaryKHR, Dispatch>, PipelineBinaryKHRAllocator>>
29107 Device::createPipelineBinariesKHRUnique( PipelineBinaryCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
29108 const
29109 {
29110 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29111 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29112 VULKAN_HPP_ASSERT( d.vkCreatePipelineBinariesKHR && "Function <vkCreatePipelineBinariesKHR> requires <VK_KHR_pipeline_binary>" );
29113 # endif
29114
29115 std::vector<PipelineBinaryKHR> pipelineBinaries;
29116 PipelineBinaryHandlesInfoKHR binaries;
29117 Result result;
29118 if ( createInfo.pKeysAndDataInfo )
29119 {
29120 VULKAN_HPP_ASSERT( !createInfo.pipeline && !createInfo.pPipelineCreateInfo );
29121 pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount );
29122 binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount;
29123 binaries.pPipelineBinaries = pipelineBinaries.data();
29124 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29125 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
29126 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29127 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29128 }
29129 else
29130 {
29131 VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo );
29132 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29133 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
29134 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29135 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29136 if ( result == Result::eSuccess )
29137 {
29138 pipelineBinaries.resize( binaries.pipelineBinaryCount );
29139 binaries.pPipelineBinaries = pipelineBinaries.data();
29140 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29141 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
29142 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29143 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29144 }
29145 }
29146
29147 detail::resultCheck( result,
29148 VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineBinariesKHRUnique",
29149 { Result::eSuccess, Result::eIncomplete, Result::ePipelineBinaryMissingKHR } );
29150 std::vector<UniqueHandle<PipelineBinaryKHR, Dispatch>, PipelineBinaryKHRAllocator> uniquePipelineBinaries;
29151 uniquePipelineBinaries.reserve( pipelineBinaries.size() );
29152 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
29153 for ( auto const & pipelineBinary : pipelineBinaries )
29154 {
29155 uniquePipelineBinaries.push_back( UniqueHandle<PipelineBinaryKHR, Dispatch>( pipelineBinary, deleter ) );
29156 }
29157 return ResultValue<std::vector<UniqueHandle<PipelineBinaryKHR, Dispatch>, PipelineBinaryKHRAllocator>>( result, std::move( uniquePipelineBinaries ) );
29158 }
29159
29160 // wrapper function for command vkCreatePipelineBinariesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html
29161 template <typename Dispatch,
29162 typename PipelineBinaryKHRAllocator,
29163 typename std::enable_if<std::is_same<typename PipelineBinaryKHRAllocator::value_type, UniqueHandle<PipelineBinaryKHR, Dispatch>>::value, int>::type,
29164 typename std::enable_if<IS_DISPATCHED( vkCreatePipelineBinariesKHR ), bool>::type>
29165 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<PipelineBinaryKHR, Dispatch>, PipelineBinaryKHRAllocator>>
29166 Device::createPipelineBinariesKHRUnique( PipelineBinaryCreateInfoKHR const & createInfo,
29167 Optional<AllocationCallbacks const> allocator,
29168 PipelineBinaryKHRAllocator const & pipelineBinaryKHRAllocator,
29169 Dispatch const & d ) const
29170 {
29171 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29172 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29173 VULKAN_HPP_ASSERT( d.vkCreatePipelineBinariesKHR && "Function <vkCreatePipelineBinariesKHR> requires <VK_KHR_pipeline_binary>" );
29174 # endif
29175
29176 std::vector<PipelineBinaryKHR> pipelineBinaries;
29177 PipelineBinaryHandlesInfoKHR binaries;
29178 Result result;
29179 if ( createInfo.pKeysAndDataInfo )
29180 {
29181 VULKAN_HPP_ASSERT( !createInfo.pipeline && !createInfo.pPipelineCreateInfo );
29182 pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount );
29183 binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount;
29184 binaries.pPipelineBinaries = pipelineBinaries.data();
29185 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29186 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
29187 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29188 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29189 }
29190 else
29191 {
29192 VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo );
29193 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29194 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
29195 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29196 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29197 if ( result == Result::eSuccess )
29198 {
29199 pipelineBinaries.resize( binaries.pipelineBinaryCount );
29200 binaries.pPipelineBinaries = pipelineBinaries.data();
29201 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29202 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
29203 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29204 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29205 }
29206 }
29207
29208 detail::resultCheck( result,
29209 VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineBinariesKHRUnique",
29210 { Result::eSuccess, Result::eIncomplete, Result::ePipelineBinaryMissingKHR } );
29211 std::vector<UniqueHandle<PipelineBinaryKHR, Dispatch>, PipelineBinaryKHRAllocator> uniquePipelineBinaries( pipelineBinaryKHRAllocator );
29212 uniquePipelineBinaries.reserve( pipelineBinaries.size() );
29213 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
29214 for ( auto const & pipelineBinary : pipelineBinaries )
29215 {
29216 uniquePipelineBinaries.push_back( UniqueHandle<PipelineBinaryKHR, Dispatch>( pipelineBinary, deleter ) );
29217 }
29218 return ResultValue<std::vector<UniqueHandle<PipelineBinaryKHR, Dispatch>, PipelineBinaryKHRAllocator>>( result, std::move( uniquePipelineBinaries ) );
29219 }
29220 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
29221 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29222
29223 // wrapper function for command vkDestroyPipelineBinaryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineBinaryKHR.html
29224 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineBinaryKHR ), bool>::type>
29225 VULKAN_HPP_INLINE void Device::destroyPipelineBinaryKHR( PipelineBinaryKHR pipelineBinary, AllocationCallbacks const * pAllocator, Dispatch const & d )
29226 const VULKAN_HPP_NOEXCEPT
29227 {
29228 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29229 d.vkDestroyPipelineBinaryKHR(
29230 static_cast<VkDevice>( m_device ), static_cast<VkPipelineBinaryKHR>( pipelineBinary ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
29231 }
29232
29233 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29234 // wrapper function for command vkDestroyPipelineBinaryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineBinaryKHR.html
29235 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineBinaryKHR ), bool>::type>
29236 VULKAN_HPP_INLINE void Device::destroyPipelineBinaryKHR( PipelineBinaryKHR pipelineBinary, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
29237 const VULKAN_HPP_NOEXCEPT
29238 {
29239 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29240 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29241 VULKAN_HPP_ASSERT( d.vkDestroyPipelineBinaryKHR && "Function <vkDestroyPipelineBinaryKHR> requires <VK_KHR_pipeline_binary>" );
29242 # endif
29243
29244 d.vkDestroyPipelineBinaryKHR(
29245 m_device, static_cast<VkPipelineBinaryKHR>( pipelineBinary ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
29246 }
29247 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29248
29249 // wrapper function for command vkDestroyPipelineBinaryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineBinaryKHR.html
29250 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineBinaryKHR ), bool>::type>
29251 VULKAN_HPP_INLINE void Device::destroy( PipelineBinaryKHR pipelineBinary, AllocationCallbacks const * pAllocator, Dispatch const & d )
29252 const VULKAN_HPP_NOEXCEPT
29253 {
29254 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29255 d.vkDestroyPipelineBinaryKHR(
29256 static_cast<VkDevice>( m_device ), static_cast<VkPipelineBinaryKHR>( pipelineBinary ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
29257 }
29258
29259 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29260 // wrapper function for command vkDestroyPipelineBinaryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineBinaryKHR.html
29261 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineBinaryKHR ), bool>::type>
29262 VULKAN_HPP_INLINE void Device::destroy( PipelineBinaryKHR pipelineBinary, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
29263 const VULKAN_HPP_NOEXCEPT
29264 {
29265 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29266 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29267 VULKAN_HPP_ASSERT( d.vkDestroyPipelineBinaryKHR && "Function <vkDestroyPipelineBinaryKHR> requires <VK_KHR_pipeline_binary>" );
29268 # endif
29269
29270 d.vkDestroyPipelineBinaryKHR(
29271 m_device, static_cast<VkPipelineBinaryKHR>( pipelineBinary ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
29272 }
29273 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29274
29275 // wrapper function for command vkGetPipelineKeyKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineKeyKHR.html
29276 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineKeyKHR ), bool>::type>
29277 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelineKeyKHR(
29278 PipelineCreateInfoKHR const * pPipelineCreateInfo, PipelineBinaryKeyKHR * pPipelineKey, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29279 {
29280 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29281 return static_cast<Result>( d.vkGetPipelineKeyKHR( static_cast<VkDevice>( m_device ),
29282 reinterpret_cast<VkPipelineCreateInfoKHR const *>( pPipelineCreateInfo ),
29283 reinterpret_cast<VkPipelineBinaryKeyKHR *>( pPipelineKey ) ) );
29284 }
29285
29286 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29287 // wrapper function for command vkGetPipelineKeyKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineKeyKHR.html
29288 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineKeyKHR ), bool>::type>
29289 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PipelineBinaryKeyKHR>::type Device::getPipelineKeyKHR(
29290 Optional<PipelineCreateInfoKHR const> pipelineCreateInfo, Dispatch const & d ) const
29291 {
29292 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29293 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29294 VULKAN_HPP_ASSERT( d.vkGetPipelineKeyKHR && "Function <vkGetPipelineKeyKHR> requires <VK_KHR_pipeline_binary>" );
29295 # endif
29296
29297 PipelineBinaryKeyKHR pipelineKey;
29298 Result result = static_cast<Result>( d.vkGetPipelineKeyKHR(
29299 m_device, reinterpret_cast<VkPipelineCreateInfoKHR const *>( pipelineCreateInfo.get() ), reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineKey ) ) );
29300 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineKeyKHR" );
29301
29302 return detail::createResultValueType( result, std::move( pipelineKey ) );
29303 }
29304 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29305
29306 // wrapper function for command vkGetPipelineBinaryDataKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineBinaryDataKHR.html
29307 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineBinaryDataKHR ), bool>::type>
29308 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelineBinaryDataKHR( PipelineBinaryDataInfoKHR const * pInfo,
29309 PipelineBinaryKeyKHR * pPipelineBinaryKey,
29310 size_t * pPipelineBinaryDataSize,
29311 void * pPipelineBinaryData,
29312 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29313 {
29314 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29315 return static_cast<Result>( d.vkGetPipelineBinaryDataKHR( static_cast<VkDevice>( m_device ),
29316 reinterpret_cast<VkPipelineBinaryDataInfoKHR const *>( pInfo ),
29317 reinterpret_cast<VkPipelineBinaryKeyKHR *>( pPipelineBinaryKey ),
29318 pPipelineBinaryDataSize,
29319 pPipelineBinaryData ) );
29320 }
29321
29322 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29323 // wrapper function for command vkGetPipelineBinaryDataKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineBinaryDataKHR.html
29324 template <typename Uint8_tAllocator,
29325 typename Dispatch,
29326 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
29327 typename std::enable_if<IS_DISPATCHED( vkGetPipelineBinaryDataKHR ), bool>::type>
29328 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<PipelineBinaryKeyKHR, std::vector<uint8_t, Uint8_tAllocator>>>::type
29329 Device::getPipelineBinaryDataKHR( PipelineBinaryDataInfoKHR const & info, Dispatch const & d ) const
29330 {
29331 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29332 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29333 VULKAN_HPP_ASSERT( d.vkGetPipelineBinaryDataKHR && "Function <vkGetPipelineBinaryDataKHR> requires <VK_KHR_pipeline_binary>" );
29334 # endif
29335
29336 std::pair<PipelineBinaryKeyKHR, std::vector<uint8_t, Uint8_tAllocator>> data_;
29337 PipelineBinaryKeyKHR & pipelineBinaryKey = data_.first;
29338 std::vector<uint8_t, Uint8_tAllocator> & pipelineBinaryData = data_.second;
29339 size_t pipelineBinaryDataSize;
29340 Result result = static_cast<Result>( d.vkGetPipelineBinaryDataKHR( m_device,
29341 reinterpret_cast<VkPipelineBinaryDataInfoKHR const *>( &info ),
29342 reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineBinaryKey ),
29343 &pipelineBinaryDataSize,
29344 nullptr ) );
29345 if ( result == Result::eSuccess )
29346 {
29347 pipelineBinaryData.resize( pipelineBinaryDataSize );
29348 result = static_cast<Result>( d.vkGetPipelineBinaryDataKHR( m_device,
29349 reinterpret_cast<VkPipelineBinaryDataInfoKHR const *>( &info ),
29350 reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineBinaryKey ),
29351 &pipelineBinaryDataSize,
29352 reinterpret_cast<void *>( pipelineBinaryData.data() ) ) );
29353 }
29354
29355 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineBinaryDataKHR" );
29356
29357 return detail::createResultValueType( result, std::move( data_ ) );
29358 }
29359
29360 // wrapper function for command vkGetPipelineBinaryDataKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineBinaryDataKHR.html
29361 template <typename Uint8_tAllocator,
29362 typename Dispatch,
29363 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
29364 typename std::enable_if<IS_DISPATCHED( vkGetPipelineBinaryDataKHR ), bool>::type>
29365 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<PipelineBinaryKeyKHR, std::vector<uint8_t, Uint8_tAllocator>>>::type
29366 Device::getPipelineBinaryDataKHR( PipelineBinaryDataInfoKHR const & info, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
29367 {
29368 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29369 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29370 VULKAN_HPP_ASSERT( d.vkGetPipelineBinaryDataKHR && "Function <vkGetPipelineBinaryDataKHR> requires <VK_KHR_pipeline_binary>" );
29371 # endif
29372
29373 std::pair<PipelineBinaryKeyKHR, std::vector<uint8_t, Uint8_tAllocator>> data_(
29374 std::piecewise_construct, std::forward_as_tuple(), std::forward_as_tuple( uint8_tAllocator ) );
29375 PipelineBinaryKeyKHR & pipelineBinaryKey = data_.first;
29376 std::vector<uint8_t, Uint8_tAllocator> & pipelineBinaryData = data_.second;
29377 size_t pipelineBinaryDataSize;
29378 Result result = static_cast<Result>( d.vkGetPipelineBinaryDataKHR( m_device,
29379 reinterpret_cast<VkPipelineBinaryDataInfoKHR const *>( &info ),
29380 reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineBinaryKey ),
29381 &pipelineBinaryDataSize,
29382 nullptr ) );
29383 if ( result == Result::eSuccess )
29384 {
29385 pipelineBinaryData.resize( pipelineBinaryDataSize );
29386 result = static_cast<Result>( d.vkGetPipelineBinaryDataKHR( m_device,
29387 reinterpret_cast<VkPipelineBinaryDataInfoKHR const *>( &info ),
29388 reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineBinaryKey ),
29389 &pipelineBinaryDataSize,
29390 reinterpret_cast<void *>( pipelineBinaryData.data() ) ) );
29391 }
29392
29393 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineBinaryDataKHR" );
29394
29395 return detail::createResultValueType( result, std::move( data_ ) );
29396 }
29397 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29398
29399 // wrapper function for command vkReleaseCapturedPipelineDataKHR, see
29400 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseCapturedPipelineDataKHR.html
29401 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseCapturedPipelineDataKHR ), bool>::type>
29402 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::releaseCapturedPipelineDataKHR(
29403 ReleaseCapturedPipelineDataInfoKHR const * pInfo, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29404 {
29405 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29406 return static_cast<Result>( d.vkReleaseCapturedPipelineDataKHR( static_cast<VkDevice>( m_device ),
29407 reinterpret_cast<VkReleaseCapturedPipelineDataInfoKHR const *>( pInfo ),
29408 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) ) );
29409 }
29410
29411 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29412 // wrapper function for command vkReleaseCapturedPipelineDataKHR, see
29413 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseCapturedPipelineDataKHR.html
29414 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseCapturedPipelineDataKHR ), bool>::type>
29415 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::releaseCapturedPipelineDataKHR(
29416 ReleaseCapturedPipelineDataInfoKHR const & info, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
29417 {
29418 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29419 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29420 VULKAN_HPP_ASSERT( d.vkReleaseCapturedPipelineDataKHR && "Function <vkReleaseCapturedPipelineDataKHR> requires <VK_KHR_pipeline_binary>" );
29421 # endif
29422
29423 Result result = static_cast<Result>( d.vkReleaseCapturedPipelineDataKHR(
29424 m_device, reinterpret_cast<VkReleaseCapturedPipelineDataInfoKHR const *>( &info ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) ) );
29425 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releaseCapturedPipelineDataKHR" );
29426
29427 return detail::createResultValueType( result );
29428 }
29429 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29430
29431 //=== VK_QCOM_tile_properties ===
29432
29433 // wrapper function for command vkGetFramebufferTilePropertiesQCOM, see
29434 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFramebufferTilePropertiesQCOM.html
29435 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFramebufferTilePropertiesQCOM ), bool>::type>
29436 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFramebufferTilePropertiesQCOM(
29437 Framebuffer framebuffer, uint32_t * pPropertiesCount, TilePropertiesQCOM * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29438 {
29439 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29440 return static_cast<Result>( d.vkGetFramebufferTilePropertiesQCOM( static_cast<VkDevice>( m_device ),
29441 static_cast<VkFramebuffer>( framebuffer ),
29442 pPropertiesCount,
29443 reinterpret_cast<VkTilePropertiesQCOM *>( pProperties ) ) );
29444 }
29445
29446 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29447 // wrapper function for command vkGetFramebufferTilePropertiesQCOM, see
29448 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFramebufferTilePropertiesQCOM.html
29449 template <typename TilePropertiesQCOMAllocator,
29450 typename Dispatch,
29451 typename std::enable_if<std::is_same<typename TilePropertiesQCOMAllocator::value_type, TilePropertiesQCOM>::value, int>::type,
29452 typename std::enable_if<IS_DISPATCHED( vkGetFramebufferTilePropertiesQCOM ), bool>::type>
29453 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TilePropertiesQCOM, TilePropertiesQCOMAllocator>>::type
29454 Device::getFramebufferTilePropertiesQCOM( Framebuffer framebuffer, Dispatch const & d ) const
29455 {
29456 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29457 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29458 VULKAN_HPP_ASSERT( d.vkGetFramebufferTilePropertiesQCOM && "Function <vkGetFramebufferTilePropertiesQCOM> requires <VK_QCOM_tile_properties>" );
29459 # endif
29460
29461 std::vector<TilePropertiesQCOM, TilePropertiesQCOMAllocator> properties;
29462 uint32_t propertiesCount;
29463 Result result;
29464 do
29465 {
29466 result = static_cast<Result>( d.vkGetFramebufferTilePropertiesQCOM( m_device, static_cast<VkFramebuffer>( framebuffer ), &propertiesCount, nullptr ) );
29467 if ( ( result == Result::eSuccess ) && propertiesCount )
29468 {
29469 properties.resize( propertiesCount );
29470 result = static_cast<Result>( d.vkGetFramebufferTilePropertiesQCOM(
29471 m_device, static_cast<VkFramebuffer>( framebuffer ), &propertiesCount, reinterpret_cast<VkTilePropertiesQCOM *>( properties.data() ) ) );
29472 }
29473 } while ( result == Result::eIncomplete );
29474 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFramebufferTilePropertiesQCOM" );
29475 VULKAN_HPP_ASSERT( propertiesCount <= properties.size() );
29476 if ( propertiesCount < properties.size() )
29477 {
29478 properties.resize( propertiesCount );
29479 }
29480 return detail::createResultValueType( result, std::move( properties ) );
29481 }
29482
29483 // wrapper function for command vkGetFramebufferTilePropertiesQCOM, see
29484 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFramebufferTilePropertiesQCOM.html
29485 template <typename TilePropertiesQCOMAllocator,
29486 typename Dispatch,
29487 typename std::enable_if<std::is_same<typename TilePropertiesQCOMAllocator::value_type, TilePropertiesQCOM>::value, int>::type,
29488 typename std::enable_if<IS_DISPATCHED( vkGetFramebufferTilePropertiesQCOM ), bool>::type>
29489 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TilePropertiesQCOM, TilePropertiesQCOMAllocator>>::type
29490 Device::getFramebufferTilePropertiesQCOM( Framebuffer framebuffer, TilePropertiesQCOMAllocator const & tilePropertiesQCOMAllocator, Dispatch const & d )
29491 const
29492 {
29493 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29494 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29495 VULKAN_HPP_ASSERT( d.vkGetFramebufferTilePropertiesQCOM && "Function <vkGetFramebufferTilePropertiesQCOM> requires <VK_QCOM_tile_properties>" );
29496 # endif
29497
29498 std::vector<TilePropertiesQCOM, TilePropertiesQCOMAllocator> properties( tilePropertiesQCOMAllocator );
29499 uint32_t propertiesCount;
29500 Result result;
29501 do
29502 {
29503 result = static_cast<Result>( d.vkGetFramebufferTilePropertiesQCOM( m_device, static_cast<VkFramebuffer>( framebuffer ), &propertiesCount, nullptr ) );
29504 if ( ( result == Result::eSuccess ) && propertiesCount )
29505 {
29506 properties.resize( propertiesCount );
29507 result = static_cast<Result>( d.vkGetFramebufferTilePropertiesQCOM(
29508 m_device, static_cast<VkFramebuffer>( framebuffer ), &propertiesCount, reinterpret_cast<VkTilePropertiesQCOM *>( properties.data() ) ) );
29509 }
29510 } while ( result == Result::eIncomplete );
29511 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFramebufferTilePropertiesQCOM" );
29512 VULKAN_HPP_ASSERT( propertiesCount <= properties.size() );
29513 if ( propertiesCount < properties.size() )
29514 {
29515 properties.resize( propertiesCount );
29516 }
29517 return detail::createResultValueType( result, std::move( properties ) );
29518 }
29519 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29520
29521 // wrapper function for command vkGetDynamicRenderingTilePropertiesQCOM, see
29522 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDynamicRenderingTilePropertiesQCOM.html
29523 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDynamicRenderingTilePropertiesQCOM ), bool>::type>
29524 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getDynamicRenderingTilePropertiesQCOM(
29525 RenderingInfo const * pRenderingInfo, TilePropertiesQCOM * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29526 {
29527 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29528 return static_cast<Result>( d.vkGetDynamicRenderingTilePropertiesQCOM( static_cast<VkDevice>( m_device ),
29529 reinterpret_cast<VkRenderingInfo const *>( pRenderingInfo ),
29530 reinterpret_cast<VkTilePropertiesQCOM *>( pProperties ) ) );
29531 }
29532
29533 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29534 // wrapper function for command vkGetDynamicRenderingTilePropertiesQCOM, see
29535 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDynamicRenderingTilePropertiesQCOM.html
29536 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDynamicRenderingTilePropertiesQCOM ), bool>::type>
29537 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<TilePropertiesQCOM>::type Device::getDynamicRenderingTilePropertiesQCOM(
29538 RenderingInfo const & renderingInfo, Dispatch const & d ) const
29539 {
29540 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29541 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29542 VULKAN_HPP_ASSERT( d.vkGetDynamicRenderingTilePropertiesQCOM && "Function <vkGetDynamicRenderingTilePropertiesQCOM> requires <VK_QCOM_tile_properties>" );
29543 # endif
29544
29545 TilePropertiesQCOM properties;
29546 Result result = static_cast<Result>( d.vkGetDynamicRenderingTilePropertiesQCOM(
29547 m_device, reinterpret_cast<VkRenderingInfo const *>( &renderingInfo ), reinterpret_cast<VkTilePropertiesQCOM *>( &properties ) ) );
29548 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDynamicRenderingTilePropertiesQCOM" );
29549
29550 return detail::createResultValueType( result, std::move( properties ) );
29551 }
29552 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29553
29554 //=== VK_KHR_swapchain_maintenance1 ===
29555
29556 // wrapper function for command vkReleaseSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseSwapchainImagesKHR.html
29557 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseSwapchainImagesKHR ), bool>::type>
29558 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::releaseSwapchainImagesKHR( ReleaseSwapchainImagesInfoKHR const * pReleaseInfo, Dispatch const & d )
29559 const VULKAN_HPP_NOEXCEPT
29560 {
29561 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29562 return static_cast<Result>(
29563 d.vkReleaseSwapchainImagesKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkReleaseSwapchainImagesInfoKHR const *>( pReleaseInfo ) ) );
29564 }
29565
29566 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29567 // wrapper function for command vkReleaseSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseSwapchainImagesKHR.html
29568 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseSwapchainImagesKHR ), bool>::type>
29569 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::releaseSwapchainImagesKHR(
29570 ReleaseSwapchainImagesInfoKHR const & releaseInfo, Dispatch const & d ) const
29571 {
29572 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29573 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29574 VULKAN_HPP_ASSERT( d.vkReleaseSwapchainImagesKHR &&
29575 "Function <vkReleaseSwapchainImagesKHR> requires <VK_EXT_swapchain_maintenance1> or <VK_KHR_swapchain_maintenance1>" );
29576 # endif
29577
29578 Result result = static_cast<Result>( d.vkReleaseSwapchainImagesKHR( m_device, reinterpret_cast<VkReleaseSwapchainImagesInfoKHR const *>( &releaseInfo ) ) );
29579 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releaseSwapchainImagesKHR" );
29580
29581 return detail::createResultValueType( result );
29582 }
29583 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29584
29585 //=== VK_NV_cooperative_vector ===
29586
29587 // wrapper function for command vkGetPhysicalDeviceCooperativeVectorPropertiesNV, see
29588 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeVectorPropertiesNV.html
29589 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeVectorPropertiesNV ), bool>::type>
29590 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCooperativeVectorPropertiesNV(
29591 uint32_t * pPropertyCount, CooperativeVectorPropertiesNV * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29592 {
29593 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29594 return static_cast<Result>( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV(
29595 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkCooperativeVectorPropertiesNV *>( pProperties ) ) );
29596 }
29597
29598 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29599 // wrapper function for command vkGetPhysicalDeviceCooperativeVectorPropertiesNV, see
29600 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeVectorPropertiesNV.html
29601 template <typename CooperativeVectorPropertiesNVAllocator,
29602 typename Dispatch,
29603 typename std::enable_if<std::is_same<typename CooperativeVectorPropertiesNVAllocator::value_type, CooperativeVectorPropertiesNV>::value, int>::type,
29604 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeVectorPropertiesNV ), bool>::type>
29605 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeVectorPropertiesNV, CooperativeVectorPropertiesNVAllocator>>::type
29606 PhysicalDevice::getCooperativeVectorPropertiesNV( Dispatch const & d ) const
29607 {
29608 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29609 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29610 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV &&
29611 "Function <vkGetPhysicalDeviceCooperativeVectorPropertiesNV> requires <VK_NV_cooperative_vector>" );
29612 # endif
29613
29614 std::vector<CooperativeVectorPropertiesNV, CooperativeVectorPropertiesNVAllocator> properties;
29615 uint32_t propertyCount;
29616 Result result;
29617 do
29618 {
29619 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) );
29620 if ( ( result == Result::eSuccess ) && propertyCount )
29621 {
29622 properties.resize( propertyCount );
29623 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV(
29624 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeVectorPropertiesNV *>( properties.data() ) ) );
29625 }
29626 } while ( result == Result::eIncomplete );
29627 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeVectorPropertiesNV" );
29628 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
29629 if ( propertyCount < properties.size() )
29630 {
29631 properties.resize( propertyCount );
29632 }
29633 return detail::createResultValueType( result, std::move( properties ) );
29634 }
29635
29636 // wrapper function for command vkGetPhysicalDeviceCooperativeVectorPropertiesNV, see
29637 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeVectorPropertiesNV.html
29638 template <typename CooperativeVectorPropertiesNVAllocator,
29639 typename Dispatch,
29640 typename std::enable_if<std::is_same<typename CooperativeVectorPropertiesNVAllocator::value_type, CooperativeVectorPropertiesNV>::value, int>::type,
29641 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeVectorPropertiesNV ), bool>::type>
29642 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeVectorPropertiesNV, CooperativeVectorPropertiesNVAllocator>>::type
29643 PhysicalDevice::getCooperativeVectorPropertiesNV( CooperativeVectorPropertiesNVAllocator const & cooperativeVectorPropertiesNVAllocator,
29644 Dispatch const & d ) const
29645 {
29646 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29647 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29648 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV &&
29649 "Function <vkGetPhysicalDeviceCooperativeVectorPropertiesNV> requires <VK_NV_cooperative_vector>" );
29650 # endif
29651
29652 std::vector<CooperativeVectorPropertiesNV, CooperativeVectorPropertiesNVAllocator> properties( cooperativeVectorPropertiesNVAllocator );
29653 uint32_t propertyCount;
29654 Result result;
29655 do
29656 {
29657 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) );
29658 if ( ( result == Result::eSuccess ) && propertyCount )
29659 {
29660 properties.resize( propertyCount );
29661 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV(
29662 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeVectorPropertiesNV *>( properties.data() ) ) );
29663 }
29664 } while ( result == Result::eIncomplete );
29665 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeVectorPropertiesNV" );
29666 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
29667 if ( propertyCount < properties.size() )
29668 {
29669 properties.resize( propertyCount );
29670 }
29671 return detail::createResultValueType( result, std::move( properties ) );
29672 }
29673 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29674
29675 // wrapper function for command vkConvertCooperativeVectorMatrixNV, see
29676 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkConvertCooperativeVectorMatrixNV.html
29677 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkConvertCooperativeVectorMatrixNV ), bool>::type>
29678 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::convertCooperativeVectorMatrixNV( ConvertCooperativeVectorMatrixInfoNV const * pInfo,
29679 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29680 {
29681 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29682 return static_cast<Result>(
29683 d.vkConvertCooperativeVectorMatrixNV( static_cast<VkDevice>( m_device ), reinterpret_cast<VkConvertCooperativeVectorMatrixInfoNV const *>( pInfo ) ) );
29684 }
29685
29686 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29687 // wrapper function for command vkConvertCooperativeVectorMatrixNV, see
29688 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkConvertCooperativeVectorMatrixNV.html
29689 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkConvertCooperativeVectorMatrixNV ), bool>::type>
29690 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::convertCooperativeVectorMatrixNV( ConvertCooperativeVectorMatrixInfoNV const & info,
29691 Dispatch const & d ) const
29692 {
29693 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29694 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29695 VULKAN_HPP_ASSERT( d.vkConvertCooperativeVectorMatrixNV && "Function <vkConvertCooperativeVectorMatrixNV> requires <VK_NV_cooperative_vector>" );
29696 # endif
29697
29698 Result result =
29699 static_cast<Result>( d.vkConvertCooperativeVectorMatrixNV( m_device, reinterpret_cast<VkConvertCooperativeVectorMatrixInfoNV const *>( &info ) ) );
29700 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::convertCooperativeVectorMatrixNV", { Result::eSuccess, Result::eIncomplete } );
29701
29702 return static_cast<Result>( result );
29703 }
29704 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29705
29706 // wrapper function for command vkCmdConvertCooperativeVectorMatrixNV, see
29707 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdConvertCooperativeVectorMatrixNV.html
29708 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdConvertCooperativeVectorMatrixNV ), bool>::type>
29709 VULKAN_HPP_INLINE void CommandBuffer::convertCooperativeVectorMatrixNV(
29710 uint32_t infoCount, ConvertCooperativeVectorMatrixInfoNV const * pInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29711 {
29712 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29713 d.vkCmdConvertCooperativeVectorMatrixNV(
29714 static_cast<VkCommandBuffer>( m_commandBuffer ), infoCount, reinterpret_cast<VkConvertCooperativeVectorMatrixInfoNV const *>( pInfos ) );
29715 }
29716
29717 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29718 // wrapper function for command vkCmdConvertCooperativeVectorMatrixNV, see
29719 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdConvertCooperativeVectorMatrixNV.html
29720 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdConvertCooperativeVectorMatrixNV ), bool>::type>
29721 VULKAN_HPP_INLINE void CommandBuffer::convertCooperativeVectorMatrixNV( ArrayProxy<ConvertCooperativeVectorMatrixInfoNV const> const & infos,
29722 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29723 {
29724 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29725 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29726 VULKAN_HPP_ASSERT( d.vkCmdConvertCooperativeVectorMatrixNV && "Function <vkCmdConvertCooperativeVectorMatrixNV> requires <VK_NV_cooperative_vector>" );
29727 # endif
29728
29729 d.vkCmdConvertCooperativeVectorMatrixNV( m_commandBuffer, infos.size(), reinterpret_cast<VkConvertCooperativeVectorMatrixInfoNV const *>( infos.data() ) );
29730 }
29731 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29732
29733 //=== VK_NV_low_latency2 ===
29734
29735 // wrapper function for command vkSetLatencySleepModeNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencySleepModeNV.html
29736 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetLatencySleepModeNV ), bool>::type>
29737 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setLatencySleepModeNV(
29738 SwapchainKHR swapchain, LatencySleepModeInfoNV const * pSleepModeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29739 {
29740 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29741 return static_cast<Result>( d.vkSetLatencySleepModeNV(
29742 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkLatencySleepModeInfoNV const *>( pSleepModeInfo ) ) );
29743 }
29744
29745 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29746 // wrapper function for command vkSetLatencySleepModeNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencySleepModeNV.html
29747 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetLatencySleepModeNV ), bool>::type>
29748 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setLatencySleepModeNV(
29749 SwapchainKHR swapchain, LatencySleepModeInfoNV const & sleepModeInfo, Dispatch const & d ) const
29750 {
29751 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29752 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29753 VULKAN_HPP_ASSERT( d.vkSetLatencySleepModeNV && "Function <vkSetLatencySleepModeNV> requires <VK_NV_low_latency2>" );
29754 # endif
29755
29756 Result result = static_cast<Result>(
29757 d.vkSetLatencySleepModeNV( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkLatencySleepModeInfoNV const *>( &sleepModeInfo ) ) );
29758 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setLatencySleepModeNV" );
29759
29760 return detail::createResultValueType( result );
29761 }
29762 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29763
29764 // wrapper function for command vkLatencySleepNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkLatencySleepNV.html
29765 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkLatencySleepNV ), bool>::type>
29766 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::latencySleepNV( SwapchainKHR swapchain, LatencySleepInfoNV const * pSleepInfo, Dispatch const & d )
29767 const VULKAN_HPP_NOEXCEPT
29768 {
29769 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29770 return static_cast<Result>( d.vkLatencySleepNV(
29771 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkLatencySleepInfoNV const *>( pSleepInfo ) ) );
29772 }
29773
29774 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29775 // wrapper function for command vkLatencySleepNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkLatencySleepNV.html
29776 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkLatencySleepNV ), bool>::type>
29777 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::latencySleepNV(
29778 SwapchainKHR swapchain, LatencySleepInfoNV const & sleepInfo, Dispatch const & d ) const
29779 {
29780 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29781 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29782 VULKAN_HPP_ASSERT( d.vkLatencySleepNV && "Function <vkLatencySleepNV> requires <VK_NV_low_latency2>" );
29783 # endif
29784
29785 Result result = static_cast<Result>(
29786 d.vkLatencySleepNV( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkLatencySleepInfoNV const *>( &sleepInfo ) ) );
29787 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::latencySleepNV" );
29788
29789 return detail::createResultValueType( result );
29790 }
29791 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29792
29793 // wrapper function for command vkSetLatencyMarkerNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencyMarkerNV.html
29794 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetLatencyMarkerNV ), bool>::type>
29795 VULKAN_HPP_INLINE void Device::setLatencyMarkerNV( SwapchainKHR swapchain, SetLatencyMarkerInfoNV const * pLatencyMarkerInfo, Dispatch const & d )
29796 const VULKAN_HPP_NOEXCEPT
29797 {
29798 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29799 d.vkSetLatencyMarkerNV(
29800 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkSetLatencyMarkerInfoNV const *>( pLatencyMarkerInfo ) );
29801 }
29802
29803 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29804 // wrapper function for command vkSetLatencyMarkerNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencyMarkerNV.html
29805 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetLatencyMarkerNV ), bool>::type>
29806 VULKAN_HPP_INLINE void Device::setLatencyMarkerNV( SwapchainKHR swapchain, SetLatencyMarkerInfoNV const & latencyMarkerInfo, Dispatch const & d )
29807 const VULKAN_HPP_NOEXCEPT
29808 {
29809 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29810 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29811 VULKAN_HPP_ASSERT( d.vkSetLatencyMarkerNV && "Function <vkSetLatencyMarkerNV> requires <VK_NV_low_latency2>" );
29812 # endif
29813
29814 d.vkSetLatencyMarkerNV( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkSetLatencyMarkerInfoNV const *>( &latencyMarkerInfo ) );
29815 }
29816 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29817
29818 // wrapper function for command vkGetLatencyTimingsNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsNV.html
29819 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetLatencyTimingsNV ), bool>::type>
29820 VULKAN_HPP_INLINE void Device::getLatencyTimingsNV( SwapchainKHR swapchain, GetLatencyMarkerInfoNV * pLatencyMarkerInfo, Dispatch const & d )
29821 const VULKAN_HPP_NOEXCEPT
29822 {
29823 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29824 d.vkGetLatencyTimingsNV(
29825 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkGetLatencyMarkerInfoNV *>( pLatencyMarkerInfo ) );
29826 }
29827
29828 // wrapper function for command vkQueueNotifyOutOfBandNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueNotifyOutOfBandNV.html
29829 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueNotifyOutOfBandNV ), bool>::type>
29830 VULKAN_HPP_INLINE void Queue::notifyOutOfBandNV( OutOfBandQueueTypeInfoNV const * pQueueTypeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29831 {
29832 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29833 d.vkQueueNotifyOutOfBandNV( static_cast<VkQueue>( m_queue ), reinterpret_cast<VkOutOfBandQueueTypeInfoNV const *>( pQueueTypeInfo ) );
29834 }
29835
29836 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29837 // wrapper function for command vkQueueNotifyOutOfBandNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueNotifyOutOfBandNV.html
29838 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueNotifyOutOfBandNV ), bool>::type>
29839 VULKAN_HPP_INLINE void Queue::notifyOutOfBandNV( OutOfBandQueueTypeInfoNV const & queueTypeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29840 {
29841 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29842 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29843 VULKAN_HPP_ASSERT( d.vkQueueNotifyOutOfBandNV && "Function <vkQueueNotifyOutOfBandNV> requires <VK_NV_low_latency2>" );
29844 # endif
29845
29846 d.vkQueueNotifyOutOfBandNV( m_queue, reinterpret_cast<VkOutOfBandQueueTypeInfoNV const *>( &queueTypeInfo ) );
29847 }
29848 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29849
29850 //=== VK_KHR_cooperative_matrix ===
29851
29852 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR, see
29853 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR.html
29854 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR ), bool>::type>
29855 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCooperativeMatrixPropertiesKHR(
29856 uint32_t * pPropertyCount, CooperativeMatrixPropertiesKHR * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29857 {
29858 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29859 return static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR(
29860 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesKHR *>( pProperties ) ) );
29861 }
29862
29863 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29864 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR, see
29865 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR.html
29866 template <
29867 typename CooperativeMatrixPropertiesKHRAllocator,
29868 typename Dispatch,
29869 typename std::enable_if<std::is_same<typename CooperativeMatrixPropertiesKHRAllocator::value_type, CooperativeMatrixPropertiesKHR>::value, int>::type,
29870 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR ), bool>::type>
29871 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeMatrixPropertiesKHR, CooperativeMatrixPropertiesKHRAllocator>>::type
29872 PhysicalDevice::getCooperativeMatrixPropertiesKHR( Dispatch const & d ) const
29873 {
29874 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29875 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29876 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR &&
29877 "Function <vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR> requires <VK_KHR_cooperative_matrix>" );
29878 # endif
29879
29880 std::vector<CooperativeMatrixPropertiesKHR, CooperativeMatrixPropertiesKHRAllocator> properties;
29881 uint32_t propertyCount;
29882 Result result;
29883 do
29884 {
29885 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
29886 if ( ( result == Result::eSuccess ) && propertyCount )
29887 {
29888 properties.resize( propertyCount );
29889 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR(
29890 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesKHR *>( properties.data() ) ) );
29891 }
29892 } while ( result == Result::eIncomplete );
29893 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesKHR" );
29894 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
29895 if ( propertyCount < properties.size() )
29896 {
29897 properties.resize( propertyCount );
29898 }
29899 return detail::createResultValueType( result, std::move( properties ) );
29900 }
29901
29902 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR, see
29903 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR.html
29904 template <
29905 typename CooperativeMatrixPropertiesKHRAllocator,
29906 typename Dispatch,
29907 typename std::enable_if<std::is_same<typename CooperativeMatrixPropertiesKHRAllocator::value_type, CooperativeMatrixPropertiesKHR>::value, int>::type,
29908 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR ), bool>::type>
29909 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeMatrixPropertiesKHR, CooperativeMatrixPropertiesKHRAllocator>>::type
29910 PhysicalDevice::getCooperativeMatrixPropertiesKHR( CooperativeMatrixPropertiesKHRAllocator const & cooperativeMatrixPropertiesKHRAllocator,
29911 Dispatch const & d ) const
29912 {
29913 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29914 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29915 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR &&
29916 "Function <vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR> requires <VK_KHR_cooperative_matrix>" );
29917 # endif
29918
29919 std::vector<CooperativeMatrixPropertiesKHR, CooperativeMatrixPropertiesKHRAllocator> properties( cooperativeMatrixPropertiesKHRAllocator );
29920 uint32_t propertyCount;
29921 Result result;
29922 do
29923 {
29924 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
29925 if ( ( result == Result::eSuccess ) && propertyCount )
29926 {
29927 properties.resize( propertyCount );
29928 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR(
29929 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesKHR *>( properties.data() ) ) );
29930 }
29931 } while ( result == Result::eIncomplete );
29932 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesKHR" );
29933 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
29934 if ( propertyCount < properties.size() )
29935 {
29936 properties.resize( propertyCount );
29937 }
29938 return detail::createResultValueType( result, std::move( properties ) );
29939 }
29940 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29941
29942 //=== VK_ARM_data_graph ===
29943
29944 // wrapper function for command vkCreateDataGraphPipelinesARM, see
29945 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
29946 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
29947 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDataGraphPipelinesARM( DeferredOperationKHR deferredOperation,
29948 PipelineCache pipelineCache,
29949 uint32_t createInfoCount,
29950 DataGraphPipelineCreateInfoARM const * pCreateInfos,
29951 AllocationCallbacks const * pAllocator,
29952 Pipeline * pPipelines,
29953 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29954 {
29955 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29956 return static_cast<Result>( d.vkCreateDataGraphPipelinesARM( static_cast<VkDevice>( m_device ),
29957 static_cast<VkDeferredOperationKHR>( deferredOperation ),
29958 static_cast<VkPipelineCache>( pipelineCache ),
29959 createInfoCount,
29960 reinterpret_cast<VkDataGraphPipelineCreateInfoARM const *>( pCreateInfos ),
29961 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
29962 reinterpret_cast<VkPipeline *>( pPipelines ) ) );
29963 }
29964
29965 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29966 // wrapper function for command vkCreateDataGraphPipelinesARM, see
29967 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
29968 template <typename PipelineAllocator,
29969 typename Dispatch,
29970 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
29971 typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
29972 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>> Device::createDataGraphPipelinesARM(
29973 DeferredOperationKHR deferredOperation,
29974 PipelineCache pipelineCache,
29975 ArrayProxy<DataGraphPipelineCreateInfoARM const> const & createInfos,
29976 Optional<AllocationCallbacks const> allocator,
29977 Dispatch const & d ) const
29978 {
29979 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29980 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29981 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
29982 # endif
29983
29984 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size() );
29985 Result result = static_cast<Result>( d.vkCreateDataGraphPipelinesARM( m_device,
29986 static_cast<VkDeferredOperationKHR>( deferredOperation ),
29987 static_cast<VkPipelineCache>( pipelineCache ),
29988 createInfos.size(),
29989 reinterpret_cast<VkDataGraphPipelineCreateInfoARM const *>( createInfos.data() ),
29990 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29991 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
29992 detail::resultCheck( result,
29993 VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelinesARM",
29994 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
29995 m_device,
29996 pipelines,
29997 allocator.get(),
29998 d );
29999
30000 return { result, pipelines };
30001 }
30002
30003 // wrapper function for command vkCreateDataGraphPipelinesARM, see
30004 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
30005 template <typename PipelineAllocator,
30006 typename Dispatch,
30007 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
30008 typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
30009 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>> Device::createDataGraphPipelinesARM(
30010 DeferredOperationKHR deferredOperation,
30011 PipelineCache pipelineCache,
30012 ArrayProxy<DataGraphPipelineCreateInfoARM const> const & createInfos,
30013 Optional<AllocationCallbacks const> allocator,
30014 PipelineAllocator const & pipelineAllocator,
30015 Dispatch const & d ) const
30016 {
30017 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30018 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30019 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
30020 # endif
30021
30022 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size(), {}, pipelineAllocator );
30023 Result result = static_cast<Result>( d.vkCreateDataGraphPipelinesARM( m_device,
30024 static_cast<VkDeferredOperationKHR>( deferredOperation ),
30025 static_cast<VkPipelineCache>( pipelineCache ),
30026 createInfos.size(),
30027 reinterpret_cast<VkDataGraphPipelineCreateInfoARM const *>( createInfos.data() ),
30028 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
30029 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
30030 detail::resultCheck( result,
30031 VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelinesARM",
30032 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
30033 m_device,
30034 pipelines,
30035 allocator.get(),
30036 d );
30037
30038 return { result, pipelines };
30039 }
30040
30041 // wrapper function for command vkCreateDataGraphPipelinesARM, see
30042 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
30043 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
30044 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<Pipeline> Device::createDataGraphPipelineARM( DeferredOperationKHR deferredOperation,
30045 PipelineCache pipelineCache,
30046 DataGraphPipelineCreateInfoARM const & createInfo,
30047 Optional<AllocationCallbacks const> allocator,
30048 Dispatch const & d ) const
30049 {
30050 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30051 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30052 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
30053 # endif
30054
30055 Pipeline pipeline;
30056 Result result = static_cast<Result>( d.vkCreateDataGraphPipelinesARM( m_device,
30057 static_cast<VkDeferredOperationKHR>( deferredOperation ),
30058 static_cast<VkPipelineCache>( pipelineCache ),
30059 1,
30060 reinterpret_cast<VkDataGraphPipelineCreateInfoARM const *>( &createInfo ),
30061 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
30062 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
30063 detail::resultCheck(
30064 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelineARM", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
30065
30066 return { result, pipeline };
30067 }
30068
30069 # ifndef VULKAN_HPP_NO_SMART_HANDLE
30070 // wrapper function for command vkCreateDataGraphPipelinesARM, see
30071 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
30072 template <typename Dispatch,
30073 typename PipelineAllocator,
30074 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
30075 typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
30076 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
30077 Device::createDataGraphPipelinesARMUnique( DeferredOperationKHR deferredOperation,
30078 PipelineCache pipelineCache,
30079 ArrayProxy<DataGraphPipelineCreateInfoARM const> const & createInfos,
30080 Optional<AllocationCallbacks const> allocator,
30081 Dispatch const & d ) const
30082 {
30083 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30084 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30085 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
30086 # endif
30087
30088 std::vector<Pipeline> pipelines( createInfos.size() );
30089 Result result = static_cast<Result>( d.vkCreateDataGraphPipelinesARM( m_device,
30090 static_cast<VkDeferredOperationKHR>( deferredOperation ),
30091 static_cast<VkPipelineCache>( pipelineCache ),
30092 createInfos.size(),
30093 reinterpret_cast<VkDataGraphPipelineCreateInfoARM const *>( createInfos.data() ),
30094 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
30095 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
30096 detail::resultCheck( result,
30097 VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelinesARMUnique",
30098 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
30099 m_device,
30100 pipelines,
30101 allocator.get(),
30102 d );
30103 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines;
30104 uniquePipelines.reserve( createInfos.size() );
30105 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
30106 for ( auto const & pipeline : pipelines )
30107 {
30108 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
30109 }
30110 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
30111 }
30112
30113 // wrapper function for command vkCreateDataGraphPipelinesARM, see
30114 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
30115 template <typename Dispatch,
30116 typename PipelineAllocator,
30117 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
30118 typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
30119 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
30120 Device::createDataGraphPipelinesARMUnique( DeferredOperationKHR deferredOperation,
30121 PipelineCache pipelineCache,
30122 ArrayProxy<DataGraphPipelineCreateInfoARM const> const & createInfos,
30123 Optional<AllocationCallbacks const> allocator,
30124 PipelineAllocator const & pipelineAllocator,
30125 Dispatch const & d ) const
30126 {
30127 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30128 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30129 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
30130 # endif
30131
30132 std::vector<Pipeline> pipelines( createInfos.size() );
30133 Result result = static_cast<Result>( d.vkCreateDataGraphPipelinesARM( m_device,
30134 static_cast<VkDeferredOperationKHR>( deferredOperation ),
30135 static_cast<VkPipelineCache>( pipelineCache ),
30136 createInfos.size(),
30137 reinterpret_cast<VkDataGraphPipelineCreateInfoARM const *>( createInfos.data() ),
30138 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
30139 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
30140 detail::resultCheck( result,
30141 VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelinesARMUnique",
30142 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
30143 m_device,
30144 pipelines,
30145 allocator.get(),
30146 d );
30147 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines( pipelineAllocator );
30148 uniquePipelines.reserve( createInfos.size() );
30149 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
30150 for ( auto const & pipeline : pipelines )
30151 {
30152 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
30153 }
30154 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
30155 }
30156
30157 // wrapper function for command vkCreateDataGraphPipelinesARM, see
30158 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
30159 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
30160 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<Pipeline, Dispatch>> Device::createDataGraphPipelineARMUnique(
30161 DeferredOperationKHR deferredOperation,
30162 PipelineCache pipelineCache,
30163 DataGraphPipelineCreateInfoARM const & createInfo,
30164 Optional<AllocationCallbacks const> allocator,
30165 Dispatch const & d ) const
30166 {
30167 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30168 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30169 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
30170 # endif
30171
30172 Pipeline pipeline;
30173 Result result = static_cast<Result>( d.vkCreateDataGraphPipelinesARM( m_device,
30174 static_cast<VkDeferredOperationKHR>( deferredOperation ),
30175 static_cast<VkPipelineCache>( pipelineCache ),
30176 1,
30177 reinterpret_cast<VkDataGraphPipelineCreateInfoARM const *>( &createInfo ),
30178 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
30179 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
30180 detail::resultCheck(
30181 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelineARMUnique", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
30182
30183 return ResultValue<UniqueHandle<Pipeline, Dispatch>>(
30184 result, UniqueHandle<Pipeline, Dispatch>( pipeline, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
30185 }
30186 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
30187 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30188
30189 // wrapper function for command vkCreateDataGraphPipelineSessionARM, see
30190 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelineSessionARM.html
30191 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelineSessionARM ), bool>::type>
30192 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDataGraphPipelineSessionARM( DataGraphPipelineSessionCreateInfoARM const * pCreateInfo,
30193 AllocationCallbacks const * pAllocator,
30194 DataGraphPipelineSessionARM * pSession,
30195 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30196 {
30197 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30198 return static_cast<Result>( d.vkCreateDataGraphPipelineSessionARM( static_cast<VkDevice>( m_device ),
30199 reinterpret_cast<VkDataGraphPipelineSessionCreateInfoARM const *>( pCreateInfo ),
30200 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
30201 reinterpret_cast<VkDataGraphPipelineSessionARM *>( pSession ) ) );
30202 }
30203
30204 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30205 // wrapper function for command vkCreateDataGraphPipelineSessionARM, see
30206 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelineSessionARM.html
30207 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelineSessionARM ), bool>::type>
30208 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataGraphPipelineSessionARM>::type Device::createDataGraphPipelineSessionARM(
30209 DataGraphPipelineSessionCreateInfoARM const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
30210 {
30211 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30212 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30213 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelineSessionARM && "Function <vkCreateDataGraphPipelineSessionARM> requires <VK_ARM_data_graph>" );
30214 # endif
30215
30216 DataGraphPipelineSessionARM session;
30217 Result result =
30218 static_cast<Result>( d.vkCreateDataGraphPipelineSessionARM( m_device,
30219 reinterpret_cast<VkDataGraphPipelineSessionCreateInfoARM const *>( &createInfo ),
30220 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
30221 reinterpret_cast<VkDataGraphPipelineSessionARM *>( &session ) ) );
30222 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelineSessionARM" );
30223
30224 return detail::createResultValueType( result, std::move( session ) );
30225 }
30226
30227 # ifndef VULKAN_HPP_NO_SMART_HANDLE
30228 // wrapper function for command vkCreateDataGraphPipelineSessionARM, see
30229 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelineSessionARM.html
30230 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelineSessionARM ), bool>::type>
30231 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DataGraphPipelineSessionARM, Dispatch>>::type
30232 Device::createDataGraphPipelineSessionARMUnique(
30233 DataGraphPipelineSessionCreateInfoARM const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
30234 {
30235 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30236 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30237 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelineSessionARM && "Function <vkCreateDataGraphPipelineSessionARM> requires <VK_ARM_data_graph>" );
30238 # endif
30239
30240 DataGraphPipelineSessionARM session;
30241 Result result =
30242 static_cast<Result>( d.vkCreateDataGraphPipelineSessionARM( m_device,
30243 reinterpret_cast<VkDataGraphPipelineSessionCreateInfoARM const *>( &createInfo ),
30244 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
30245 reinterpret_cast<VkDataGraphPipelineSessionARM *>( &session ) ) );
30246 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelineSessionARMUnique" );
30247
30248 return detail::createResultValueType(
30249 result, UniqueHandle<DataGraphPipelineSessionARM, Dispatch>( session, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
30250 }
30251 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
30252 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30253
30254 // wrapper function for command vkGetDataGraphPipelineSessionBindPointRequirementsARM, see
30255 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionBindPointRequirementsARM.html
30256 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineSessionBindPointRequirementsARM ), bool>::type>
30257 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getDataGraphPipelineSessionBindPointRequirementsARM(
30258 DataGraphPipelineSessionBindPointRequirementsInfoARM const * pInfo,
30259 uint32_t * pBindPointRequirementCount,
30260 DataGraphPipelineSessionBindPointRequirementARM * pBindPointRequirements,
30261 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30262 {
30263 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30264 return static_cast<Result>( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM(
30265 static_cast<VkDevice>( m_device ),
30266 reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementsInfoARM const *>( pInfo ),
30267 pBindPointRequirementCount,
30268 reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementARM *>( pBindPointRequirements ) ) );
30269 }
30270
30271 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30272 // wrapper function for command vkGetDataGraphPipelineSessionBindPointRequirementsARM, see
30273 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionBindPointRequirementsARM.html
30274 template <typename DataGraphPipelineSessionBindPointRequirementARMAllocator,
30275 typename Dispatch,
30276 typename std::enable_if<std::is_same<typename DataGraphPipelineSessionBindPointRequirementARMAllocator::value_type,
30277 DataGraphPipelineSessionBindPointRequirementARM>::value,
30278 int>::type,
30279 typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineSessionBindPointRequirementsARM ), bool>::type>
30280 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
30281 typename ResultValueType<std::vector<DataGraphPipelineSessionBindPointRequirementARM, DataGraphPipelineSessionBindPointRequirementARMAllocator>>::type
30282 Device::getDataGraphPipelineSessionBindPointRequirementsARM( DataGraphPipelineSessionBindPointRequirementsInfoARM const & info, Dispatch const & d ) const
30283 {
30284 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30285 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30286 VULKAN_HPP_ASSERT( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM &&
30287 "Function <vkGetDataGraphPipelineSessionBindPointRequirementsARM> requires <VK_ARM_data_graph>" );
30288 # endif
30289
30290 std::vector<DataGraphPipelineSessionBindPointRequirementARM, DataGraphPipelineSessionBindPointRequirementARMAllocator> bindPointRequirements;
30291 uint32_t bindPointRequirementCount;
30292 Result result;
30293 do
30294 {
30295 result = static_cast<Result>( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM(
30296 m_device, reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementsInfoARM const *>( &info ), &bindPointRequirementCount, nullptr ) );
30297 if ( ( result == Result::eSuccess ) && bindPointRequirementCount )
30298 {
30299 bindPointRequirements.resize( bindPointRequirementCount );
30300 result = static_cast<Result>( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM(
30301 m_device,
30302 reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementsInfoARM const *>( &info ),
30303 &bindPointRequirementCount,
30304 reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementARM *>( bindPointRequirements.data() ) ) );
30305 }
30306 } while ( result == Result::eIncomplete );
30307 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDataGraphPipelineSessionBindPointRequirementsARM" );
30308 VULKAN_HPP_ASSERT( bindPointRequirementCount <= bindPointRequirements.size() );
30309 if ( bindPointRequirementCount < bindPointRequirements.size() )
30310 {
30311 bindPointRequirements.resize( bindPointRequirementCount );
30312 }
30313 return detail::createResultValueType( result, std::move( bindPointRequirements ) );
30314 }
30315
30316 // wrapper function for command vkGetDataGraphPipelineSessionBindPointRequirementsARM, see
30317 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionBindPointRequirementsARM.html
30318 template <typename DataGraphPipelineSessionBindPointRequirementARMAllocator,
30319 typename Dispatch,
30320 typename std::enable_if<std::is_same<typename DataGraphPipelineSessionBindPointRequirementARMAllocator::value_type,
30321 DataGraphPipelineSessionBindPointRequirementARM>::value,
30322 int>::type,
30323 typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineSessionBindPointRequirementsARM ), bool>::type>
30324 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
30325 typename ResultValueType<std::vector<DataGraphPipelineSessionBindPointRequirementARM, DataGraphPipelineSessionBindPointRequirementARMAllocator>>::type
30326 Device::getDataGraphPipelineSessionBindPointRequirementsARM(
30327 DataGraphPipelineSessionBindPointRequirementsInfoARM const & info,
30328 DataGraphPipelineSessionBindPointRequirementARMAllocator const & dataGraphPipelineSessionBindPointRequirementARMAllocator,
30329 Dispatch const & d ) const
30330 {
30331 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30332 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30333 VULKAN_HPP_ASSERT( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM &&
30334 "Function <vkGetDataGraphPipelineSessionBindPointRequirementsARM> requires <VK_ARM_data_graph>" );
30335 # endif
30336
30337 std::vector<DataGraphPipelineSessionBindPointRequirementARM, DataGraphPipelineSessionBindPointRequirementARMAllocator> bindPointRequirements(
30338 dataGraphPipelineSessionBindPointRequirementARMAllocator );
30339 uint32_t bindPointRequirementCount;
30340 Result result;
30341 do
30342 {
30343 result = static_cast<Result>( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM(
30344 m_device, reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementsInfoARM const *>( &info ), &bindPointRequirementCount, nullptr ) );
30345 if ( ( result == Result::eSuccess ) && bindPointRequirementCount )
30346 {
30347 bindPointRequirements.resize( bindPointRequirementCount );
30348 result = static_cast<Result>( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM(
30349 m_device,
30350 reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementsInfoARM const *>( &info ),
30351 &bindPointRequirementCount,
30352 reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementARM *>( bindPointRequirements.data() ) ) );
30353 }
30354 } while ( result == Result::eIncomplete );
30355 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDataGraphPipelineSessionBindPointRequirementsARM" );
30356 VULKAN_HPP_ASSERT( bindPointRequirementCount <= bindPointRequirements.size() );
30357 if ( bindPointRequirementCount < bindPointRequirements.size() )
30358 {
30359 bindPointRequirements.resize( bindPointRequirementCount );
30360 }
30361 return detail::createResultValueType( result, std::move( bindPointRequirements ) );
30362 }
30363 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30364
30365 // wrapper function for command vkGetDataGraphPipelineSessionMemoryRequirementsARM, see
30366 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionMemoryRequirementsARM.html
30367 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineSessionMemoryRequirementsARM ), bool>::type>
30368 VULKAN_HPP_INLINE void Device::getDataGraphPipelineSessionMemoryRequirementsARM(
30369 DataGraphPipelineSessionMemoryRequirementsInfoARM const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30370 {
30371 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30372 d.vkGetDataGraphPipelineSessionMemoryRequirementsARM( static_cast<VkDevice>( m_device ),
30373 reinterpret_cast<VkDataGraphPipelineSessionMemoryRequirementsInfoARM const *>( pInfo ),
30374 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
30375 }
30376
30377 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30378 // wrapper function for command vkGetDataGraphPipelineSessionMemoryRequirementsARM, see
30379 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionMemoryRequirementsARM.html
30380 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineSessionMemoryRequirementsARM ), bool>::type>
30381 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getDataGraphPipelineSessionMemoryRequirementsARM(
30382 DataGraphPipelineSessionMemoryRequirementsInfoARM const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30383 {
30384 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30385 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30386 VULKAN_HPP_ASSERT( d.vkGetDataGraphPipelineSessionMemoryRequirementsARM &&
30387 "Function <vkGetDataGraphPipelineSessionMemoryRequirementsARM> requires <VK_ARM_data_graph>" );
30388 # endif
30389
30390 MemoryRequirements2 memoryRequirements;
30391 d.vkGetDataGraphPipelineSessionMemoryRequirementsARM( m_device,
30392 reinterpret_cast<VkDataGraphPipelineSessionMemoryRequirementsInfoARM const *>( &info ),
30393 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
30394
30395 return memoryRequirements;
30396 }
30397
30398 // wrapper function for command vkGetDataGraphPipelineSessionMemoryRequirementsARM, see
30399 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionMemoryRequirementsARM.html
30400 template <typename X,
30401 typename Y,
30402 typename... Z,
30403 typename Dispatch,
30404 typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineSessionMemoryRequirementsARM ), bool>::type>
30405 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getDataGraphPipelineSessionMemoryRequirementsARM(
30406 DataGraphPipelineSessionMemoryRequirementsInfoARM const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30407 {
30408 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30409 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30410 VULKAN_HPP_ASSERT( d.vkGetDataGraphPipelineSessionMemoryRequirementsARM &&
30411 "Function <vkGetDataGraphPipelineSessionMemoryRequirementsARM> requires <VK_ARM_data_graph>" );
30412 # endif
30413
30414 StructureChain<X, Y, Z...> structureChain;
30415 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
30416 d.vkGetDataGraphPipelineSessionMemoryRequirementsARM( m_device,
30417 reinterpret_cast<VkDataGraphPipelineSessionMemoryRequirementsInfoARM const *>( &info ),
30418 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
30419
30420 return structureChain;
30421 }
30422 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30423
30424 // wrapper function for command vkBindDataGraphPipelineSessionMemoryARM, see
30425 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindDataGraphPipelineSessionMemoryARM.html
30426 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindDataGraphPipelineSessionMemoryARM ), bool>::type>
30427 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindDataGraphPipelineSessionMemoryARM(
30428 uint32_t bindInfoCount, BindDataGraphPipelineSessionMemoryInfoARM const * pBindInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30429 {
30430 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30431 return static_cast<Result>( d.vkBindDataGraphPipelineSessionMemoryARM(
30432 static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<VkBindDataGraphPipelineSessionMemoryInfoARM const *>( pBindInfos ) ) );
30433 }
30434
30435 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30436 // wrapper function for command vkBindDataGraphPipelineSessionMemoryARM, see
30437 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindDataGraphPipelineSessionMemoryARM.html
30438 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindDataGraphPipelineSessionMemoryARM ), bool>::type>
30439 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindDataGraphPipelineSessionMemoryARM(
30440 ArrayProxy<BindDataGraphPipelineSessionMemoryInfoARM const> const & bindInfos, Dispatch const & d ) const
30441 {
30442 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30443 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30444 VULKAN_HPP_ASSERT( d.vkBindDataGraphPipelineSessionMemoryARM && "Function <vkBindDataGraphPipelineSessionMemoryARM> requires <VK_ARM_data_graph>" );
30445 # endif
30446
30447 Result result = static_cast<Result>( d.vkBindDataGraphPipelineSessionMemoryARM(
30448 m_device, bindInfos.size(), reinterpret_cast<VkBindDataGraphPipelineSessionMemoryInfoARM const *>( bindInfos.data() ) ) );
30449 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindDataGraphPipelineSessionMemoryARM" );
30450
30451 return detail::createResultValueType( result );
30452 }
30453 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30454
30455 // wrapper function for command vkDestroyDataGraphPipelineSessionARM, see
30456 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDataGraphPipelineSessionARM.html
30457 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDataGraphPipelineSessionARM ), bool>::type>
30458 VULKAN_HPP_INLINE void Device::destroyDataGraphPipelineSessionARM(
30459 DataGraphPipelineSessionARM session, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30460 {
30461 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30462 d.vkDestroyDataGraphPipelineSessionARM(
30463 static_cast<VkDevice>( m_device ), static_cast<VkDataGraphPipelineSessionARM>( session ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
30464 }
30465
30466 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30467 // wrapper function for command vkDestroyDataGraphPipelineSessionARM, see
30468 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDataGraphPipelineSessionARM.html
30469 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDataGraphPipelineSessionARM ), bool>::type>
30470 VULKAN_HPP_INLINE void Device::destroyDataGraphPipelineSessionARM(
30471 DataGraphPipelineSessionARM session, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30472 {
30473 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30474 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30475 VULKAN_HPP_ASSERT( d.vkDestroyDataGraphPipelineSessionARM && "Function <vkDestroyDataGraphPipelineSessionARM> requires <VK_ARM_data_graph>" );
30476 # endif
30477
30478 d.vkDestroyDataGraphPipelineSessionARM(
30479 m_device, static_cast<VkDataGraphPipelineSessionARM>( session ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
30480 }
30481 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30482
30483 // wrapper function for command vkDestroyDataGraphPipelineSessionARM, see
30484 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDataGraphPipelineSessionARM.html
30485 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDataGraphPipelineSessionARM ), bool>::type>
30486 VULKAN_HPP_INLINE void Device::destroy( DataGraphPipelineSessionARM session, AllocationCallbacks const * pAllocator, Dispatch const & d )
30487 const VULKAN_HPP_NOEXCEPT
30488 {
30489 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30490 d.vkDestroyDataGraphPipelineSessionARM(
30491 static_cast<VkDevice>( m_device ), static_cast<VkDataGraphPipelineSessionARM>( session ), reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
30492 }
30493
30494 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30495 // wrapper function for command vkDestroyDataGraphPipelineSessionARM, see
30496 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDataGraphPipelineSessionARM.html
30497 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDataGraphPipelineSessionARM ), bool>::type>
30498 VULKAN_HPP_INLINE void Device::destroy( DataGraphPipelineSessionARM session, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
30499 const VULKAN_HPP_NOEXCEPT
30500 {
30501 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30502 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30503 VULKAN_HPP_ASSERT( d.vkDestroyDataGraphPipelineSessionARM && "Function <vkDestroyDataGraphPipelineSessionARM> requires <VK_ARM_data_graph>" );
30504 # endif
30505
30506 d.vkDestroyDataGraphPipelineSessionARM(
30507 m_device, static_cast<VkDataGraphPipelineSessionARM>( session ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
30508 }
30509 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30510
30511 // wrapper function for command vkCmdDispatchDataGraphARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchDataGraphARM.html
30512 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchDataGraphARM ), bool>::type>
30513 VULKAN_HPP_INLINE void CommandBuffer::dispatchDataGraphARM(
30514 DataGraphPipelineSessionARM session, DataGraphPipelineDispatchInfoARM const * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30515 {
30516 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30517 d.vkCmdDispatchDataGraphARM( static_cast<VkCommandBuffer>( m_commandBuffer ),
30518 static_cast<VkDataGraphPipelineSessionARM>( session ),
30519 reinterpret_cast<VkDataGraphPipelineDispatchInfoARM const *>( pInfo ) );
30520 }
30521
30522 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30523 // wrapper function for command vkCmdDispatchDataGraphARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchDataGraphARM.html
30524 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchDataGraphARM ), bool>::type>
30525 VULKAN_HPP_INLINE void CommandBuffer::dispatchDataGraphARM(
30526 DataGraphPipelineSessionARM session, Optional<DataGraphPipelineDispatchInfoARM const> info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30527 {
30528 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30529 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30530 VULKAN_HPP_ASSERT( d.vkCmdDispatchDataGraphARM && "Function <vkCmdDispatchDataGraphARM> requires <VK_ARM_data_graph>" );
30531 # endif
30532
30533 d.vkCmdDispatchDataGraphARM(
30534 m_commandBuffer, static_cast<VkDataGraphPipelineSessionARM>( session ), reinterpret_cast<VkDataGraphPipelineDispatchInfoARM const *>( info.get() ) );
30535 }
30536 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30537
30538 // wrapper function for command vkGetDataGraphPipelineAvailablePropertiesARM, see
30539 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineAvailablePropertiesARM.html
30540 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineAvailablePropertiesARM ), bool>::type>
30541 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getDataGraphPipelineAvailablePropertiesARM(
30542 DataGraphPipelineInfoARM const * pPipelineInfo, uint32_t * pPropertiesCount, DataGraphPipelinePropertyARM * pProperties, Dispatch const & d )
30543 const VULKAN_HPP_NOEXCEPT
30544 {
30545 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30546 return static_cast<Result>( d.vkGetDataGraphPipelineAvailablePropertiesARM( static_cast<VkDevice>( m_device ),
30547 reinterpret_cast<VkDataGraphPipelineInfoARM const *>( pPipelineInfo ),
30548 pPropertiesCount,
30549 reinterpret_cast<VkDataGraphPipelinePropertyARM *>( pProperties ) ) );
30550 }
30551
30552 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30553 // wrapper function for command vkGetDataGraphPipelineAvailablePropertiesARM, see
30554 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineAvailablePropertiesARM.html
30555 template <typename DataGraphPipelinePropertyARMAllocator,
30556 typename Dispatch,
30557 typename std::enable_if<std::is_same<typename DataGraphPipelinePropertyARMAllocator::value_type, DataGraphPipelinePropertyARM>::value, int>::type,
30558 typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineAvailablePropertiesARM ), bool>::type>
30559 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataGraphPipelinePropertyARM, DataGraphPipelinePropertyARMAllocator>>::type
30560 Device::getDataGraphPipelineAvailablePropertiesARM( DataGraphPipelineInfoARM const & pipelineInfo, Dispatch const & d ) const
30561 {
30562 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30563 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30564 VULKAN_HPP_ASSERT( d.vkGetDataGraphPipelineAvailablePropertiesARM &&
30565 "Function <vkGetDataGraphPipelineAvailablePropertiesARM> requires <VK_ARM_data_graph>" );
30566 # endif
30567
30568 std::vector<DataGraphPipelinePropertyARM, DataGraphPipelinePropertyARMAllocator> properties;
30569 uint32_t propertiesCount;
30570 Result result;
30571 do
30572 {
30573 result = static_cast<Result>( d.vkGetDataGraphPipelineAvailablePropertiesARM(
30574 m_device, reinterpret_cast<VkDataGraphPipelineInfoARM const *>( &pipelineInfo ), &propertiesCount, nullptr ) );
30575 if ( ( result == Result::eSuccess ) && propertiesCount )
30576 {
30577 properties.resize( propertiesCount );
30578 result =
30579 static_cast<Result>( d.vkGetDataGraphPipelineAvailablePropertiesARM( m_device,
30580 reinterpret_cast<VkDataGraphPipelineInfoARM const *>( &pipelineInfo ),
30581 &propertiesCount,
30582 reinterpret_cast<VkDataGraphPipelinePropertyARM *>( properties.data() ) ) );
30583 }
30584 } while ( result == Result::eIncomplete );
30585 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDataGraphPipelineAvailablePropertiesARM" );
30586 VULKAN_HPP_ASSERT( propertiesCount <= properties.size() );
30587 if ( propertiesCount < properties.size() )
30588 {
30589 properties.resize( propertiesCount );
30590 }
30591 return detail::createResultValueType( result, std::move( properties ) );
30592 }
30593
30594 // wrapper function for command vkGetDataGraphPipelineAvailablePropertiesARM, see
30595 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineAvailablePropertiesARM.html
30596 template <typename DataGraphPipelinePropertyARMAllocator,
30597 typename Dispatch,
30598 typename std::enable_if<std::is_same<typename DataGraphPipelinePropertyARMAllocator::value_type, DataGraphPipelinePropertyARM>::value, int>::type,
30599 typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineAvailablePropertiesARM ), bool>::type>
30600 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataGraphPipelinePropertyARM, DataGraphPipelinePropertyARMAllocator>>::type
30601 Device::getDataGraphPipelineAvailablePropertiesARM(
30602 DataGraphPipelineInfoARM const & pipelineInfo, DataGraphPipelinePropertyARMAllocator const & dataGraphPipelinePropertyARMAllocator, Dispatch const & d )
30603 const
30604 {
30605 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30606 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30607 VULKAN_HPP_ASSERT( d.vkGetDataGraphPipelineAvailablePropertiesARM &&
30608 "Function <vkGetDataGraphPipelineAvailablePropertiesARM> requires <VK_ARM_data_graph>" );
30609 # endif
30610
30611 std::vector<DataGraphPipelinePropertyARM, DataGraphPipelinePropertyARMAllocator> properties( dataGraphPipelinePropertyARMAllocator );
30612 uint32_t propertiesCount;
30613 Result result;
30614 do
30615 {
30616 result = static_cast<Result>( d.vkGetDataGraphPipelineAvailablePropertiesARM(
30617 m_device, reinterpret_cast<VkDataGraphPipelineInfoARM const *>( &pipelineInfo ), &propertiesCount, nullptr ) );
30618 if ( ( result == Result::eSuccess ) && propertiesCount )
30619 {
30620 properties.resize( propertiesCount );
30621 result =
30622 static_cast<Result>( d.vkGetDataGraphPipelineAvailablePropertiesARM( m_device,
30623 reinterpret_cast<VkDataGraphPipelineInfoARM const *>( &pipelineInfo ),
30624 &propertiesCount,
30625 reinterpret_cast<VkDataGraphPipelinePropertyARM *>( properties.data() ) ) );
30626 }
30627 } while ( result == Result::eIncomplete );
30628 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDataGraphPipelineAvailablePropertiesARM" );
30629 VULKAN_HPP_ASSERT( propertiesCount <= properties.size() );
30630 if ( propertiesCount < properties.size() )
30631 {
30632 properties.resize( propertiesCount );
30633 }
30634 return detail::createResultValueType( result, std::move( properties ) );
30635 }
30636 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30637
30638 // wrapper function for command vkGetDataGraphPipelinePropertiesARM, see
30639 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelinePropertiesARM.html
30640 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelinePropertiesARM ), bool>::type>
30641 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getDataGraphPipelinePropertiesARM(
30642 DataGraphPipelineInfoARM const * pPipelineInfo, uint32_t propertiesCount, DataGraphPipelinePropertyQueryResultARM * pProperties, Dispatch const & d )
30643 const VULKAN_HPP_NOEXCEPT
30644 {
30645 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30646 return static_cast<Result>( d.vkGetDataGraphPipelinePropertiesARM( static_cast<VkDevice>( m_device ),
30647 reinterpret_cast<VkDataGraphPipelineInfoARM const *>( pPipelineInfo ),
30648 propertiesCount,
30649 reinterpret_cast<VkDataGraphPipelinePropertyQueryResultARM *>( pProperties ) ) );
30650 }
30651
30652 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM, see
30653 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM.html
30654 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM ), bool>::type>
30655 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getQueueFamilyDataGraphPropertiesARM(
30656 uint32_t queueFamilyIndex,
30657 uint32_t * pQueueFamilyDataGraphPropertyCount,
30658 QueueFamilyDataGraphPropertiesARM * pQueueFamilyDataGraphProperties,
30659 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30660 {
30661 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30662 return static_cast<Result>(
30663 d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM( static_cast<VkPhysicalDevice>( m_physicalDevice ),
30664 queueFamilyIndex,
30665 pQueueFamilyDataGraphPropertyCount,
30666 reinterpret_cast<VkQueueFamilyDataGraphPropertiesARM *>( pQueueFamilyDataGraphProperties ) ) );
30667 }
30668
30669 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30670 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM, see
30671 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM.html
30672 template <
30673 typename QueueFamilyDataGraphPropertiesARMAllocator,
30674 typename Dispatch,
30675 typename std::enable_if<std::is_same<typename QueueFamilyDataGraphPropertiesARMAllocator::value_type, QueueFamilyDataGraphPropertiesARM>::value, int>::type,
30676 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM ), bool>::type>
30677 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
30678 typename ResultValueType<std::vector<QueueFamilyDataGraphPropertiesARM, QueueFamilyDataGraphPropertiesARMAllocator>>::type
30679 PhysicalDevice::getQueueFamilyDataGraphPropertiesARM( uint32_t queueFamilyIndex, Dispatch const & d ) const
30680 {
30681 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30682 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30683 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM &&
30684 "Function <vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM> requires <VK_ARM_data_graph>" );
30685 # endif
30686
30687 std::vector<QueueFamilyDataGraphPropertiesARM, QueueFamilyDataGraphPropertiesARMAllocator> queueFamilyDataGraphProperties;
30688 uint32_t queueFamilyDataGraphPropertyCount;
30689 Result result;
30690 do
30691 {
30692 result = static_cast<Result>(
30693 d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM( m_physicalDevice, queueFamilyIndex, &queueFamilyDataGraphPropertyCount, nullptr ) );
30694 if ( ( result == Result::eSuccess ) && queueFamilyDataGraphPropertyCount )
30695 {
30696 queueFamilyDataGraphProperties.resize( queueFamilyDataGraphPropertyCount );
30697 result = static_cast<Result>( d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM(
30698 m_physicalDevice,
30699 queueFamilyIndex,
30700 &queueFamilyDataGraphPropertyCount,
30701 reinterpret_cast<VkQueueFamilyDataGraphPropertiesARM *>( queueFamilyDataGraphProperties.data() ) ) );
30702 }
30703 } while ( result == Result::eIncomplete );
30704 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getQueueFamilyDataGraphPropertiesARM" );
30705 VULKAN_HPP_ASSERT( queueFamilyDataGraphPropertyCount <= queueFamilyDataGraphProperties.size() );
30706 if ( queueFamilyDataGraphPropertyCount < queueFamilyDataGraphProperties.size() )
30707 {
30708 queueFamilyDataGraphProperties.resize( queueFamilyDataGraphPropertyCount );
30709 }
30710 return detail::createResultValueType( result, std::move( queueFamilyDataGraphProperties ) );
30711 }
30712
30713 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM, see
30714 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM.html
30715 template <
30716 typename QueueFamilyDataGraphPropertiesARMAllocator,
30717 typename Dispatch,
30718 typename std::enable_if<std::is_same<typename QueueFamilyDataGraphPropertiesARMAllocator::value_type, QueueFamilyDataGraphPropertiesARM>::value, int>::type,
30719 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM ), bool>::type>
30720 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
30721 typename ResultValueType<std::vector<QueueFamilyDataGraphPropertiesARM, QueueFamilyDataGraphPropertiesARMAllocator>>::type
30722 PhysicalDevice::getQueueFamilyDataGraphPropertiesARM(
30723 uint32_t queueFamilyIndex, QueueFamilyDataGraphPropertiesARMAllocator const & queueFamilyDataGraphPropertiesARMAllocator, Dispatch const & d ) const
30724 {
30725 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30726 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30727 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM &&
30728 "Function <vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM> requires <VK_ARM_data_graph>" );
30729 # endif
30730
30731 std::vector<QueueFamilyDataGraphPropertiesARM, QueueFamilyDataGraphPropertiesARMAllocator> queueFamilyDataGraphProperties(
30732 queueFamilyDataGraphPropertiesARMAllocator );
30733 uint32_t queueFamilyDataGraphPropertyCount;
30734 Result result;
30735 do
30736 {
30737 result = static_cast<Result>(
30738 d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM( m_physicalDevice, queueFamilyIndex, &queueFamilyDataGraphPropertyCount, nullptr ) );
30739 if ( ( result == Result::eSuccess ) && queueFamilyDataGraphPropertyCount )
30740 {
30741 queueFamilyDataGraphProperties.resize( queueFamilyDataGraphPropertyCount );
30742 result = static_cast<Result>( d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM(
30743 m_physicalDevice,
30744 queueFamilyIndex,
30745 &queueFamilyDataGraphPropertyCount,
30746 reinterpret_cast<VkQueueFamilyDataGraphPropertiesARM *>( queueFamilyDataGraphProperties.data() ) ) );
30747 }
30748 } while ( result == Result::eIncomplete );
30749 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getQueueFamilyDataGraphPropertiesARM" );
30750 VULKAN_HPP_ASSERT( queueFamilyDataGraphPropertyCount <= queueFamilyDataGraphProperties.size() );
30751 if ( queueFamilyDataGraphPropertyCount < queueFamilyDataGraphProperties.size() )
30752 {
30753 queueFamilyDataGraphProperties.resize( queueFamilyDataGraphPropertyCount );
30754 }
30755 return detail::createResultValueType( result, std::move( queueFamilyDataGraphProperties ) );
30756 }
30757 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30758
30759 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM, see
30760 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM.html
30761 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM ), bool>::type>
30762 VULKAN_HPP_INLINE void PhysicalDevice::getQueueFamilyDataGraphProcessingEnginePropertiesARM(
30763 PhysicalDeviceQueueFamilyDataGraphProcessingEngineInfoARM const * pQueueFamilyDataGraphProcessingEngineInfo,
30764 QueueFamilyDataGraphProcessingEnginePropertiesARM * pQueueFamilyDataGraphProcessingEngineProperties,
30765 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30766 {
30767 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30768 d.vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM(
30769 static_cast<VkPhysicalDevice>( m_physicalDevice ),
30770 reinterpret_cast<VkPhysicalDeviceQueueFamilyDataGraphProcessingEngineInfoARM const *>( pQueueFamilyDataGraphProcessingEngineInfo ),
30771 reinterpret_cast<VkQueueFamilyDataGraphProcessingEnginePropertiesARM *>( pQueueFamilyDataGraphProcessingEngineProperties ) );
30772 }
30773
30774 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30775 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM, see
30776 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM.html
30777 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM ), bool>::type>
30778 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE QueueFamilyDataGraphProcessingEnginePropertiesARM PhysicalDevice::getQueueFamilyDataGraphProcessingEnginePropertiesARM(
30779 PhysicalDeviceQueueFamilyDataGraphProcessingEngineInfoARM const & queueFamilyDataGraphProcessingEngineInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30780 {
30781 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30782 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30783 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM &&
30784 "Function <vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM> requires <VK_ARM_data_graph>" );
30785 # endif
30786
30787 QueueFamilyDataGraphProcessingEnginePropertiesARM queueFamilyDataGraphProcessingEngineProperties;
30788 d.vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM(
30789 m_physicalDevice,
30790 reinterpret_cast<VkPhysicalDeviceQueueFamilyDataGraphProcessingEngineInfoARM const *>( &queueFamilyDataGraphProcessingEngineInfo ),
30791 reinterpret_cast<VkQueueFamilyDataGraphProcessingEnginePropertiesARM *>( &queueFamilyDataGraphProcessingEngineProperties ) );
30792
30793 return queueFamilyDataGraphProcessingEngineProperties;
30794 }
30795 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30796
30797 //=== VK_EXT_attachment_feedback_loop_dynamic_state ===
30798
30799 // wrapper function for command vkCmdSetAttachmentFeedbackLoopEnableEXT, see
30800 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetAttachmentFeedbackLoopEnableEXT.html
30801 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetAttachmentFeedbackLoopEnableEXT ), bool>::type>
30802 VULKAN_HPP_INLINE void CommandBuffer::setAttachmentFeedbackLoopEnableEXT( ImageAspectFlags aspectMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30803 {
30804 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30805 d.vkCmdSetAttachmentFeedbackLoopEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkImageAspectFlags>( aspectMask ) );
30806 }
30807
30808 #if defined( VK_USE_PLATFORM_SCREEN_QNX )
30809 //=== VK_QNX_external_memory_screen_buffer ===
30810
30811 // wrapper function for command vkGetScreenBufferPropertiesQNX, see
30812 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html
30813 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetScreenBufferPropertiesQNX ), bool>::type>
30814 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getScreenBufferPropertiesQNX(
30815 struct _screen_buffer const * buffer, ScreenBufferPropertiesQNX * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30816 {
30817 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30818 return static_cast<Result>(
30819 d.vkGetScreenBufferPropertiesQNX( static_cast<VkDevice>( m_device ), buffer, reinterpret_cast<VkScreenBufferPropertiesQNX *>( pProperties ) ) );
30820 }
30821
30822 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30823 // wrapper function for command vkGetScreenBufferPropertiesQNX, see
30824 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html
30825 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetScreenBufferPropertiesQNX ), bool>::type>
30826 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ScreenBufferPropertiesQNX>::type Device::getScreenBufferPropertiesQNX(
30827 struct _screen_buffer const & buffer, Dispatch const & d ) const
30828 {
30829 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30830 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30831 VULKAN_HPP_ASSERT( d.vkGetScreenBufferPropertiesQNX && "Function <vkGetScreenBufferPropertiesQNX> requires <VK_QNX_external_memory_screen_buffer>" );
30832 # endif
30833
30834 ScreenBufferPropertiesQNX properties;
30835 Result result =
30836 static_cast<Result>( d.vkGetScreenBufferPropertiesQNX( m_device, &buffer, reinterpret_cast<VkScreenBufferPropertiesQNX *>( &properties ) ) );
30837 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" );
30838
30839 return detail::createResultValueType( result, std::move( properties ) );
30840 }
30841
30842 // wrapper function for command vkGetScreenBufferPropertiesQNX, see
30843 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html
30844 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetScreenBufferPropertiesQNX ), bool>::type>
30845 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type Device::getScreenBufferPropertiesQNX(
30846 struct _screen_buffer const & buffer, Dispatch const & d ) const
30847 {
30848 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30849 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30850 VULKAN_HPP_ASSERT( d.vkGetScreenBufferPropertiesQNX && "Function <vkGetScreenBufferPropertiesQNX> requires <VK_QNX_external_memory_screen_buffer>" );
30851 # endif
30852
30853 StructureChain<X, Y, Z...> structureChain;
30854 ScreenBufferPropertiesQNX & properties = structureChain.template get<ScreenBufferPropertiesQNX>();
30855 Result result =
30856 static_cast<Result>( d.vkGetScreenBufferPropertiesQNX( m_device, &buffer, reinterpret_cast<VkScreenBufferPropertiesQNX *>( &properties ) ) );
30857 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" );
30858
30859 return detail::createResultValueType( result, std::move( structureChain ) );
30860 }
30861 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30862 #endif /*VK_USE_PLATFORM_SCREEN_QNX*/
30863
30864 //=== VK_KHR_line_rasterization ===
30865
30866 // wrapper function for command vkCmdSetLineStippleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStippleKHR.html
30867 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLineStippleKHR ), bool>::type>
30868 VULKAN_HPP_INLINE void CommandBuffer::setLineStippleKHR( uint32_t lineStippleFactor, uint16_t lineStipplePattern, Dispatch const & d )
30869 const VULKAN_HPP_NOEXCEPT
30870 {
30871 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30872 d.vkCmdSetLineStippleKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), lineStippleFactor, lineStipplePattern );
30873 }
30874
30875 //=== VK_KHR_calibrated_timestamps ===
30876
30877 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsKHR, see
30878 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsKHR.html
30879 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsKHR ), bool>::type>
30880 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCalibrateableTimeDomainsKHR(
30881 uint32_t * pTimeDomainCount, TimeDomainKHR * pTimeDomains, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30882 {
30883 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30884 return static_cast<Result>( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR(
30885 static_cast<VkPhysicalDevice>( m_physicalDevice ), pTimeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( pTimeDomains ) ) );
30886 }
30887
30888 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30889 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsKHR, see
30890 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsKHR.html
30891 template <typename TimeDomainKHRAllocator,
30892 typename Dispatch,
30893 typename std::enable_if<std::is_same<typename TimeDomainKHRAllocator::value_type, TimeDomainKHR>::value, int>::type,
30894 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsKHR ), bool>::type>
30895 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TimeDomainKHR, TimeDomainKHRAllocator>>::type
30896 PhysicalDevice::getCalibrateableTimeDomainsKHR( Dispatch const & d ) const
30897 {
30898 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30899 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30900 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR &&
30901 "Function <vkGetPhysicalDeviceCalibrateableTimeDomainsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
30902 # endif
30903
30904 std::vector<TimeDomainKHR, TimeDomainKHRAllocator> timeDomains;
30905 uint32_t timeDomainCount;
30906 Result result;
30907 do
30908 {
30909 result = static_cast<Result>( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( m_physicalDevice, &timeDomainCount, nullptr ) );
30910 if ( ( result == Result::eSuccess ) && timeDomainCount )
30911 {
30912 timeDomains.resize( timeDomainCount );
30913 result = static_cast<Result>(
30914 d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( m_physicalDevice, &timeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( timeDomains.data() ) ) );
30915 }
30916 } while ( result == Result::eIncomplete );
30917 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsKHR" );
30918 VULKAN_HPP_ASSERT( timeDomainCount <= timeDomains.size() );
30919 if ( timeDomainCount < timeDomains.size() )
30920 {
30921 timeDomains.resize( timeDomainCount );
30922 }
30923 return detail::createResultValueType( result, std::move( timeDomains ) );
30924 }
30925
30926 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsKHR, see
30927 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsKHR.html
30928 template <typename TimeDomainKHRAllocator,
30929 typename Dispatch,
30930 typename std::enable_if<std::is_same<typename TimeDomainKHRAllocator::value_type, TimeDomainKHR>::value, int>::type,
30931 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsKHR ), bool>::type>
30932 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TimeDomainKHR, TimeDomainKHRAllocator>>::type
30933 PhysicalDevice::getCalibrateableTimeDomainsKHR( TimeDomainKHRAllocator const & timeDomainKHRAllocator, Dispatch const & d ) const
30934 {
30935 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30936 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30937 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR &&
30938 "Function <vkGetPhysicalDeviceCalibrateableTimeDomainsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
30939 # endif
30940
30941 std::vector<TimeDomainKHR, TimeDomainKHRAllocator> timeDomains( timeDomainKHRAllocator );
30942 uint32_t timeDomainCount;
30943 Result result;
30944 do
30945 {
30946 result = static_cast<Result>( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( m_physicalDevice, &timeDomainCount, nullptr ) );
30947 if ( ( result == Result::eSuccess ) && timeDomainCount )
30948 {
30949 timeDomains.resize( timeDomainCount );
30950 result = static_cast<Result>(
30951 d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( m_physicalDevice, &timeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( timeDomains.data() ) ) );
30952 }
30953 } while ( result == Result::eIncomplete );
30954 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsKHR" );
30955 VULKAN_HPP_ASSERT( timeDomainCount <= timeDomains.size() );
30956 if ( timeDomainCount < timeDomains.size() )
30957 {
30958 timeDomains.resize( timeDomainCount );
30959 }
30960 return detail::createResultValueType( result, std::move( timeDomains ) );
30961 }
30962 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30963
30964 // wrapper function for command vkGetCalibratedTimestampsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsKHR.html
30965 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsKHR ), bool>::type>
30966 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getCalibratedTimestampsKHR(
30967 uint32_t timestampCount, CalibratedTimestampInfoKHR const * pTimestampInfos, uint64_t * pTimestamps, uint64_t * pMaxDeviation, Dispatch const & d )
30968 const VULKAN_HPP_NOEXCEPT
30969 {
30970 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30971 return static_cast<Result>( d.vkGetCalibratedTimestampsKHR( static_cast<VkDevice>( m_device ),
30972 timestampCount,
30973 reinterpret_cast<VkCalibratedTimestampInfoKHR const *>( pTimestampInfos ),
30974 pTimestamps,
30975 pMaxDeviation ) );
30976 }
30977
30978 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30979 // wrapper function for command vkGetCalibratedTimestampsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsKHR.html
30980 template <typename Uint64_tAllocator,
30981 typename Dispatch,
30982 typename std::enable_if<std::is_same<typename Uint64_tAllocator::value_type, uint64_t>::value, int>::type,
30983 typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsKHR ), bool>::type>
30984 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t>>::type
30985 Device::getCalibratedTimestampsKHR( ArrayProxy<CalibratedTimestampInfoKHR const> const & timestampInfos, Dispatch const & d ) const
30986 {
30987 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30988 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30989 VULKAN_HPP_ASSERT( d.vkGetCalibratedTimestampsKHR &&
30990 "Function <vkGetCalibratedTimestampsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
30991 # endif
30992
30993 std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t> data_(
30994 std::piecewise_construct, std::forward_as_tuple( timestampInfos.size() ), std::forward_as_tuple( 0 ) );
30995 std::vector<uint64_t, Uint64_tAllocator> & timestamps = data_.first;
30996 uint64_t & maxDeviation = data_.second;
30997 Result result = static_cast<Result>( d.vkGetCalibratedTimestampsKHR(
30998 m_device, timestampInfos.size(), reinterpret_cast<VkCalibratedTimestampInfoKHR const *>( timestampInfos.data() ), timestamps.data(), &maxDeviation ) );
30999 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsKHR" );
31000
31001 return detail::createResultValueType( result, std::move( data_ ) );
31002 }
31003
31004 // wrapper function for command vkGetCalibratedTimestampsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsKHR.html
31005 template <typename Uint64_tAllocator,
31006 typename Dispatch,
31007 typename std::enable_if<std::is_same<typename Uint64_tAllocator::value_type, uint64_t>::value, int>::type,
31008 typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsKHR ), bool>::type>
31009 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t>>::type
31010 Device::getCalibratedTimestampsKHR(
31011 ArrayProxy<CalibratedTimestampInfoKHR const> const & timestampInfos, Uint64_tAllocator const & uint64_tAllocator, Dispatch const & d ) const
31012 {
31013 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31014 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31015 VULKAN_HPP_ASSERT( d.vkGetCalibratedTimestampsKHR &&
31016 "Function <vkGetCalibratedTimestampsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
31017 # endif
31018
31019 std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t> data_(
31020 std::piecewise_construct, std::forward_as_tuple( timestampInfos.size(), uint64_tAllocator ), std::forward_as_tuple( 0 ) );
31021 std::vector<uint64_t, Uint64_tAllocator> & timestamps = data_.first;
31022 uint64_t & maxDeviation = data_.second;
31023 Result result = static_cast<Result>( d.vkGetCalibratedTimestampsKHR(
31024 m_device, timestampInfos.size(), reinterpret_cast<VkCalibratedTimestampInfoKHR const *>( timestampInfos.data() ), timestamps.data(), &maxDeviation ) );
31025 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsKHR" );
31026
31027 return detail::createResultValueType( result, std::move( data_ ) );
31028 }
31029
31030 // wrapper function for command vkGetCalibratedTimestampsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsKHR.html
31031 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsKHR ), bool>::type>
31032 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<uint64_t, uint64_t>>::type Device::getCalibratedTimestampKHR(
31033 CalibratedTimestampInfoKHR const & timestampInfo, Dispatch const & d ) const
31034 {
31035 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31036 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31037 VULKAN_HPP_ASSERT( d.vkGetCalibratedTimestampsKHR &&
31038 "Function <vkGetCalibratedTimestampsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
31039 # endif
31040
31041 std::pair<uint64_t, uint64_t> data_;
31042 uint64_t & timestamp = data_.first;
31043 uint64_t & maxDeviation = data_.second;
31044 Result result = static_cast<Result>(
31045 d.vkGetCalibratedTimestampsKHR( m_device, 1, reinterpret_cast<VkCalibratedTimestampInfoKHR const *>( &timestampInfo ), &timestamp, &maxDeviation ) );
31046 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampKHR" );
31047
31048 return detail::createResultValueType( result, std::move( data_ ) );
31049 }
31050 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31051
31052 //=== VK_KHR_maintenance6 ===
31053
31054 // wrapper function for command vkCmdBindDescriptorSets2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets2KHR.html
31055 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorSets2KHR ), bool>::type>
31056 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets2KHR( BindDescriptorSetsInfo const * pBindDescriptorSetsInfo, Dispatch const & d )
31057 const VULKAN_HPP_NOEXCEPT
31058 {
31059 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31060 d.vkCmdBindDescriptorSets2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
31061 reinterpret_cast<VkBindDescriptorSetsInfo const *>( pBindDescriptorSetsInfo ) );
31062 }
31063
31064 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31065 // wrapper function for command vkCmdBindDescriptorSets2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets2KHR.html
31066 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorSets2KHR ), bool>::type>
31067 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets2KHR( BindDescriptorSetsInfo const & bindDescriptorSetsInfo, Dispatch const & d )
31068 const VULKAN_HPP_NOEXCEPT
31069 {
31070 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31071 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31072 VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorSets2KHR && "Function <vkCmdBindDescriptorSets2KHR> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
31073 # endif
31074
31075 d.vkCmdBindDescriptorSets2KHR( m_commandBuffer, reinterpret_cast<VkBindDescriptorSetsInfo const *>( &bindDescriptorSetsInfo ) );
31076 }
31077 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31078
31079 // wrapper function for command vkCmdPushConstants2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants2KHR.html
31080 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushConstants2KHR ), bool>::type>
31081 VULKAN_HPP_INLINE void CommandBuffer::pushConstants2KHR( PushConstantsInfo const * pPushConstantsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31082 {
31083 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31084 d.vkCmdPushConstants2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkPushConstantsInfo const *>( pPushConstantsInfo ) );
31085 }
31086
31087 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31088 // wrapper function for command vkCmdPushConstants2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants2KHR.html
31089 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushConstants2KHR ), bool>::type>
31090 VULKAN_HPP_INLINE void CommandBuffer::pushConstants2KHR( PushConstantsInfo const & pushConstantsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31091 {
31092 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31093 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31094 VULKAN_HPP_ASSERT( d.vkCmdPushConstants2KHR && "Function <vkCmdPushConstants2KHR> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
31095 # endif
31096
31097 d.vkCmdPushConstants2KHR( m_commandBuffer, reinterpret_cast<VkPushConstantsInfo const *>( &pushConstantsInfo ) );
31098 }
31099 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31100
31101 // wrapper function for command vkCmdPushDescriptorSet2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet2KHR.html
31102 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSet2KHR ), bool>::type>
31103 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet2KHR( PushDescriptorSetInfo const * pPushDescriptorSetInfo, Dispatch const & d )
31104 const VULKAN_HPP_NOEXCEPT
31105 {
31106 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31107 d.vkCmdPushDescriptorSet2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
31108 reinterpret_cast<VkPushDescriptorSetInfo const *>( pPushDescriptorSetInfo ) );
31109 }
31110
31111 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31112 // wrapper function for command vkCmdPushDescriptorSet2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet2KHR.html
31113 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSet2KHR ), bool>::type>
31114 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet2KHR( PushDescriptorSetInfo const & pushDescriptorSetInfo, Dispatch const & d )
31115 const VULKAN_HPP_NOEXCEPT
31116 {
31117 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31118 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31119 VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSet2KHR && "Function <vkCmdPushDescriptorSet2KHR> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
31120 # endif
31121
31122 d.vkCmdPushDescriptorSet2KHR( m_commandBuffer, reinterpret_cast<VkPushDescriptorSetInfo const *>( &pushDescriptorSetInfo ) );
31123 }
31124 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31125
31126 // wrapper function for command vkCmdPushDescriptorSetWithTemplate2KHR, see
31127 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate2KHR.html
31128 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplate2KHR ), bool>::type>
31129 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate2KHR( PushDescriptorSetWithTemplateInfo const * pPushDescriptorSetWithTemplateInfo,
31130 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31131 {
31132 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31133 d.vkCmdPushDescriptorSetWithTemplate2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
31134 reinterpret_cast<VkPushDescriptorSetWithTemplateInfo const *>( pPushDescriptorSetWithTemplateInfo ) );
31135 }
31136
31137 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31138 // wrapper function for command vkCmdPushDescriptorSetWithTemplate2KHR, see
31139 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate2KHR.html
31140 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplate2KHR ), bool>::type>
31141 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate2KHR( PushDescriptorSetWithTemplateInfo const & pushDescriptorSetWithTemplateInfo,
31142 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31143 {
31144 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31145 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31146 VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSetWithTemplate2KHR &&
31147 "Function <vkCmdPushDescriptorSetWithTemplate2KHR> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
31148 # endif
31149
31150 d.vkCmdPushDescriptorSetWithTemplate2KHR( m_commandBuffer,
31151 reinterpret_cast<VkPushDescriptorSetWithTemplateInfo const *>( &pushDescriptorSetWithTemplateInfo ) );
31152 }
31153 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31154
31155 // wrapper function for command vkCmdSetDescriptorBufferOffsets2EXT, see
31156 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDescriptorBufferOffsets2EXT.html
31157 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDescriptorBufferOffsets2EXT ), bool>::type>
31158 VULKAN_HPP_INLINE void CommandBuffer::setDescriptorBufferOffsets2EXT( SetDescriptorBufferOffsetsInfoEXT const * pSetDescriptorBufferOffsetsInfo,
31159 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31160 {
31161 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31162 d.vkCmdSetDescriptorBufferOffsets2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
31163 reinterpret_cast<VkSetDescriptorBufferOffsetsInfoEXT const *>( pSetDescriptorBufferOffsetsInfo ) );
31164 }
31165
31166 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31167 // wrapper function for command vkCmdSetDescriptorBufferOffsets2EXT, see
31168 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDescriptorBufferOffsets2EXT.html
31169 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDescriptorBufferOffsets2EXT ), bool>::type>
31170 VULKAN_HPP_INLINE void CommandBuffer::setDescriptorBufferOffsets2EXT( SetDescriptorBufferOffsetsInfoEXT const & setDescriptorBufferOffsetsInfo,
31171 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31172 {
31173 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31174 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31175 VULKAN_HPP_ASSERT( d.vkCmdSetDescriptorBufferOffsets2EXT && "Function <vkCmdSetDescriptorBufferOffsets2EXT> requires <VK_KHR_maintenance6>" );
31176 # endif
31177
31178 d.vkCmdSetDescriptorBufferOffsets2EXT( m_commandBuffer, reinterpret_cast<VkSetDescriptorBufferOffsetsInfoEXT const *>( &setDescriptorBufferOffsetsInfo ) );
31179 }
31180 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31181
31182 // wrapper function for command vkCmdBindDescriptorBufferEmbeddedSamplers2EXT, see
31183 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBufferEmbeddedSamplers2EXT.html
31184 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorBufferEmbeddedSamplers2EXT ), bool>::type>
31185 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorBufferEmbeddedSamplers2EXT(
31186 BindDescriptorBufferEmbeddedSamplersInfoEXT const * pBindDescriptorBufferEmbeddedSamplersInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31187 {
31188 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31189 d.vkCmdBindDescriptorBufferEmbeddedSamplers2EXT(
31190 static_cast<VkCommandBuffer>( m_commandBuffer ),
31191 reinterpret_cast<VkBindDescriptorBufferEmbeddedSamplersInfoEXT const *>( pBindDescriptorBufferEmbeddedSamplersInfo ) );
31192 }
31193
31194 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31195 // wrapper function for command vkCmdBindDescriptorBufferEmbeddedSamplers2EXT, see
31196 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBufferEmbeddedSamplers2EXT.html
31197 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorBufferEmbeddedSamplers2EXT ), bool>::type>
31198 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorBufferEmbeddedSamplers2EXT(
31199 BindDescriptorBufferEmbeddedSamplersInfoEXT const & bindDescriptorBufferEmbeddedSamplersInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31200 {
31201 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31202 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31203 VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorBufferEmbeddedSamplers2EXT &&
31204 "Function <vkCmdBindDescriptorBufferEmbeddedSamplers2EXT> requires <VK_KHR_maintenance6>" );
31205 # endif
31206
31207 d.vkCmdBindDescriptorBufferEmbeddedSamplers2EXT(
31208 m_commandBuffer, reinterpret_cast<VkBindDescriptorBufferEmbeddedSamplersInfoEXT const *>( &bindDescriptorBufferEmbeddedSamplersInfo ) );
31209 }
31210 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31211
31212 //=== VK_QCOM_tile_memory_heap ===
31213
31214 // wrapper function for command vkCmdBindTileMemoryQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTileMemoryQCOM.html
31215 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindTileMemoryQCOM ), bool>::type>
31216 VULKAN_HPP_INLINE void CommandBuffer::bindTileMemoryQCOM( TileMemoryBindInfoQCOM const * pTileMemoryBindInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31217 {
31218 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31219 d.vkCmdBindTileMemoryQCOM( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkTileMemoryBindInfoQCOM const *>( pTileMemoryBindInfo ) );
31220 }
31221
31222 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31223 // wrapper function for command vkCmdBindTileMemoryQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTileMemoryQCOM.html
31224 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindTileMemoryQCOM ), bool>::type>
31225 VULKAN_HPP_INLINE void CommandBuffer::bindTileMemoryQCOM( Optional<TileMemoryBindInfoQCOM const> tileMemoryBindInfo, Dispatch const & d )
31226 const VULKAN_HPP_NOEXCEPT
31227 {
31228 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31229 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31230 VULKAN_HPP_ASSERT( d.vkCmdBindTileMemoryQCOM && "Function <vkCmdBindTileMemoryQCOM> requires <VK_QCOM_tile_memory_heap>" );
31231 # endif
31232
31233 d.vkCmdBindTileMemoryQCOM( m_commandBuffer, reinterpret_cast<VkTileMemoryBindInfoQCOM const *>( tileMemoryBindInfo.get() ) );
31234 }
31235 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31236
31237 //=== VK_KHR_copy_memory_indirect ===
31238
31239 // wrapper function for command vkCmdCopyMemoryIndirectKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryIndirectKHR.html
31240 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryIndirectKHR ), bool>::type>
31241 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryIndirectKHR( CopyMemoryIndirectInfoKHR const * pCopyMemoryIndirectInfo, Dispatch const & d )
31242 const VULKAN_HPP_NOEXCEPT
31243 {
31244 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31245 d.vkCmdCopyMemoryIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
31246 reinterpret_cast<VkCopyMemoryIndirectInfoKHR const *>( pCopyMemoryIndirectInfo ) );
31247 }
31248
31249 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31250 // wrapper function for command vkCmdCopyMemoryIndirectKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryIndirectKHR.html
31251 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryIndirectKHR ), bool>::type>
31252 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryIndirectKHR( CopyMemoryIndirectInfoKHR const & copyMemoryIndirectInfo, Dispatch const & d )
31253 const VULKAN_HPP_NOEXCEPT
31254 {
31255 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31256 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31257 VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryIndirectKHR && "Function <vkCmdCopyMemoryIndirectKHR> requires <VK_KHR_copy_memory_indirect>" );
31258 # endif
31259
31260 d.vkCmdCopyMemoryIndirectKHR( m_commandBuffer, reinterpret_cast<VkCopyMemoryIndirectInfoKHR const *>( &copyMemoryIndirectInfo ) );
31261 }
31262 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31263
31264 // wrapper function for command vkCmdCopyMemoryToImageIndirectKHR, see
31265 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageIndirectKHR.html
31266 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToImageIndirectKHR ), bool>::type>
31267 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToImageIndirectKHR( CopyMemoryToImageIndirectInfoKHR const * pCopyMemoryToImageIndirectInfo,
31268 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31269 {
31270 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31271 d.vkCmdCopyMemoryToImageIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
31272 reinterpret_cast<VkCopyMemoryToImageIndirectInfoKHR const *>( pCopyMemoryToImageIndirectInfo ) );
31273 }
31274
31275 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31276 // wrapper function for command vkCmdCopyMemoryToImageIndirectKHR, see
31277 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageIndirectKHR.html
31278 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToImageIndirectKHR ), bool>::type>
31279 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToImageIndirectKHR( CopyMemoryToImageIndirectInfoKHR const & copyMemoryToImageIndirectInfo,
31280 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31281 {
31282 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31283 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31284 VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToImageIndirectKHR && "Function <vkCmdCopyMemoryToImageIndirectKHR> requires <VK_KHR_copy_memory_indirect>" );
31285 # endif
31286
31287 d.vkCmdCopyMemoryToImageIndirectKHR( m_commandBuffer, reinterpret_cast<VkCopyMemoryToImageIndirectInfoKHR const *>( &copyMemoryToImageIndirectInfo ) );
31288 }
31289 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31290
31291 //=== VK_EXT_memory_decompression ===
31292
31293 // wrapper function for command vkCmdDecompressMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryEXT.html
31294 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecompressMemoryEXT ), bool>::type>
31295 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryEXT( DecompressMemoryInfoEXT const * pDecompressMemoryInfoEXT, Dispatch const & d )
31296 const VULKAN_HPP_NOEXCEPT
31297 {
31298 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31299 d.vkCmdDecompressMemoryEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
31300 reinterpret_cast<VkDecompressMemoryInfoEXT const *>( pDecompressMemoryInfoEXT ) );
31301 }
31302
31303 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31304 // wrapper function for command vkCmdDecompressMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryEXT.html
31305 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecompressMemoryEXT ), bool>::type>
31306 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryEXT( DecompressMemoryInfoEXT const & decompressMemoryInfoEXT, Dispatch const & d )
31307 const VULKAN_HPP_NOEXCEPT
31308 {
31309 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31310 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31311 VULKAN_HPP_ASSERT( d.vkCmdDecompressMemoryEXT && "Function <vkCmdDecompressMemoryEXT> requires <VK_EXT_memory_decompression>" );
31312 # endif
31313
31314 d.vkCmdDecompressMemoryEXT( m_commandBuffer, reinterpret_cast<VkDecompressMemoryInfoEXT const *>( &decompressMemoryInfoEXT ) );
31315 }
31316 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31317
31318 // wrapper function for command vkCmdDecompressMemoryIndirectCountEXT, see
31319 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryIndirectCountEXT.html
31320 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecompressMemoryIndirectCountEXT ), bool>::type>
31321 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryIndirectCountEXT( MemoryDecompressionMethodFlagsEXT decompressionMethod,
31322 DeviceAddress indirectCommandsAddress,
31323 DeviceAddress indirectCommandsCountAddress,
31324 uint32_t maxDecompressionCount,
31325 uint32_t stride,
31326 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31327 {
31328 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31329 d.vkCmdDecompressMemoryIndirectCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
31330 static_cast<VkMemoryDecompressionMethodFlagsEXT>( decompressionMethod ),
31331 static_cast<VkDeviceAddress>( indirectCommandsAddress ),
31332 static_cast<VkDeviceAddress>( indirectCommandsCountAddress ),
31333 maxDecompressionCount,
31334 stride );
31335 }
31336
31337 //=== VK_NV_external_compute_queue ===
31338
31339 // wrapper function for command vkCreateExternalComputeQueueNV, see
31340 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExternalComputeQueueNV.html
31341 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateExternalComputeQueueNV ), bool>::type>
31342 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createExternalComputeQueueNV(
31343 ExternalComputeQueueCreateInfoNV const * pCreateInfo, AllocationCallbacks const * pAllocator, ExternalComputeQueueNV * pExternalQueue, Dispatch const & d )
31344 const VULKAN_HPP_NOEXCEPT
31345 {
31346 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31347 return static_cast<Result>( d.vkCreateExternalComputeQueueNV( static_cast<VkDevice>( m_device ),
31348 reinterpret_cast<VkExternalComputeQueueCreateInfoNV const *>( pCreateInfo ),
31349 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
31350 reinterpret_cast<VkExternalComputeQueueNV *>( pExternalQueue ) ) );
31351 }
31352
31353 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31354 // wrapper function for command vkCreateExternalComputeQueueNV, see
31355 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExternalComputeQueueNV.html
31356 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateExternalComputeQueueNV ), bool>::type>
31357 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ExternalComputeQueueNV>::type Device::createExternalComputeQueueNV(
31358 ExternalComputeQueueCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
31359 {
31360 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31361 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31362 VULKAN_HPP_ASSERT( d.vkCreateExternalComputeQueueNV && "Function <vkCreateExternalComputeQueueNV> requires <VK_NV_external_compute_queue>" );
31363 # endif
31364
31365 ExternalComputeQueueNV externalQueue;
31366 Result result = static_cast<Result>( d.vkCreateExternalComputeQueueNV( m_device,
31367 reinterpret_cast<VkExternalComputeQueueCreateInfoNV const *>( &createInfo ),
31368 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
31369 reinterpret_cast<VkExternalComputeQueueNV *>( &externalQueue ) ) );
31370 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createExternalComputeQueueNV" );
31371
31372 return detail::createResultValueType( result, std::move( externalQueue ) );
31373 }
31374
31375 # ifndef VULKAN_HPP_NO_SMART_HANDLE
31376 // wrapper function for command vkCreateExternalComputeQueueNV, see
31377 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExternalComputeQueueNV.html
31378 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateExternalComputeQueueNV ), bool>::type>
31379 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<ExternalComputeQueueNV, Dispatch>>::type
31380 Device::createExternalComputeQueueNVUnique(
31381 ExternalComputeQueueCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
31382 {
31383 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31384 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31385 VULKAN_HPP_ASSERT( d.vkCreateExternalComputeQueueNV && "Function <vkCreateExternalComputeQueueNV> requires <VK_NV_external_compute_queue>" );
31386 # endif
31387
31388 ExternalComputeQueueNV externalQueue;
31389 Result result = static_cast<Result>( d.vkCreateExternalComputeQueueNV( m_device,
31390 reinterpret_cast<VkExternalComputeQueueCreateInfoNV const *>( &createInfo ),
31391 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
31392 reinterpret_cast<VkExternalComputeQueueNV *>( &externalQueue ) ) );
31393 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createExternalComputeQueueNVUnique" );
31394
31395 return detail::createResultValueType(
31396 result, UniqueHandle<ExternalComputeQueueNV, Dispatch>( externalQueue, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
31397 }
31398 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
31399 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31400
31401 // wrapper function for command vkDestroyExternalComputeQueueNV, see
31402 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyExternalComputeQueueNV.html
31403 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyExternalComputeQueueNV ), bool>::type>
31404 VULKAN_HPP_INLINE void Device::destroyExternalComputeQueueNV(
31405 ExternalComputeQueueNV externalQueue, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31406 {
31407 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31408 d.vkDestroyExternalComputeQueueNV( static_cast<VkDevice>( m_device ),
31409 static_cast<VkExternalComputeQueueNV>( externalQueue ),
31410 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
31411 }
31412
31413 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31414 // wrapper function for command vkDestroyExternalComputeQueueNV, see
31415 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyExternalComputeQueueNV.html
31416 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyExternalComputeQueueNV ), bool>::type>
31417 VULKAN_HPP_INLINE void Device::destroyExternalComputeQueueNV(
31418 ExternalComputeQueueNV externalQueue, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31419 {
31420 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31421 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31422 VULKAN_HPP_ASSERT( d.vkDestroyExternalComputeQueueNV && "Function <vkDestroyExternalComputeQueueNV> requires <VK_NV_external_compute_queue>" );
31423 # endif
31424
31425 d.vkDestroyExternalComputeQueueNV(
31426 m_device, static_cast<VkExternalComputeQueueNV>( externalQueue ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
31427 }
31428 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31429
31430 // wrapper function for command vkDestroyExternalComputeQueueNV, see
31431 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyExternalComputeQueueNV.html
31432 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyExternalComputeQueueNV ), bool>::type>
31433 VULKAN_HPP_INLINE void Device::destroy( ExternalComputeQueueNV externalQueue, AllocationCallbacks const * pAllocator, Dispatch const & d )
31434 const VULKAN_HPP_NOEXCEPT
31435 {
31436 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31437 d.vkDestroyExternalComputeQueueNV( static_cast<VkDevice>( m_device ),
31438 static_cast<VkExternalComputeQueueNV>( externalQueue ),
31439 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
31440 }
31441
31442 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31443 // wrapper function for command vkDestroyExternalComputeQueueNV, see
31444 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyExternalComputeQueueNV.html
31445 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyExternalComputeQueueNV ), bool>::type>
31446 VULKAN_HPP_INLINE void Device::destroy( ExternalComputeQueueNV externalQueue, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
31447 const VULKAN_HPP_NOEXCEPT
31448 {
31449 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31450 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31451 VULKAN_HPP_ASSERT( d.vkDestroyExternalComputeQueueNV && "Function <vkDestroyExternalComputeQueueNV> requires <VK_NV_external_compute_queue>" );
31452 # endif
31453
31454 d.vkDestroyExternalComputeQueueNV(
31455 m_device, static_cast<VkExternalComputeQueueNV>( externalQueue ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
31456 }
31457 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31458
31459 // wrapper function for command vkGetExternalComputeQueueDataNV, see
31460 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExternalComputeQueueDataNV.html
31461 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetExternalComputeQueueDataNV ), bool>::type>
31462 VULKAN_HPP_INLINE void ExternalComputeQueueNV::getData( ExternalComputeQueueDataParamsNV * params, void * pData, Dispatch const & d )
31463 const VULKAN_HPP_NOEXCEPT
31464 {
31465 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31466 d.vkGetExternalComputeQueueDataNV(
31467 static_cast<VkExternalComputeQueueNV>( m_externalComputeQueueNV ), reinterpret_cast<VkExternalComputeQueueDataParamsNV *>( params ), pData );
31468 }
31469
31470 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31471 // wrapper function for command vkGetExternalComputeQueueDataNV, see
31472 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExternalComputeQueueDataNV.html
31473 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetExternalComputeQueueDataNV ), bool>::type>
31474 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::pair<ExternalComputeQueueDataParamsNV, DataType> ExternalComputeQueueNV::getData( Dispatch const & d )
31475 const VULKAN_HPP_NOEXCEPT
31476 {
31477 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31478 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31479 VULKAN_HPP_ASSERT( d.vkGetExternalComputeQueueDataNV && "Function <vkGetExternalComputeQueueDataNV> requires <VK_NV_external_compute_queue>" );
31480 # endif
31481
31482 std::pair<ExternalComputeQueueDataParamsNV, DataType> data_;
31483 ExternalComputeQueueDataParamsNV & arams = data_.first;
31484 DataType & data = data_.second;
31485 d.vkGetExternalComputeQueueDataNV( m_externalComputeQueueNV, reinterpret_cast<VkExternalComputeQueueDataParamsNV *>( &arams ), &data );
31486
31487 return data_;
31488 }
31489 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31490
31491 //=== VK_NV_cluster_acceleration_structure ===
31492
31493 // wrapper function for command vkGetClusterAccelerationStructureBuildSizesNV, see
31494 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetClusterAccelerationStructureBuildSizesNV.html
31495 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetClusterAccelerationStructureBuildSizesNV ), bool>::type>
31496 VULKAN_HPP_INLINE void Device::getClusterAccelerationStructureBuildSizesNV(
31497 ClusterAccelerationStructureInputInfoNV const * pInfo, AccelerationStructureBuildSizesInfoKHR * pSizeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31498 {
31499 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31500 d.vkGetClusterAccelerationStructureBuildSizesNV( static_cast<VkDevice>( m_device ),
31501 reinterpret_cast<VkClusterAccelerationStructureInputInfoNV const *>( pInfo ),
31502 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( pSizeInfo ) );
31503 }
31504
31505 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31506 // wrapper function for command vkGetClusterAccelerationStructureBuildSizesNV, see
31507 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetClusterAccelerationStructureBuildSizesNV.html
31508 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetClusterAccelerationStructureBuildSizesNV ), bool>::type>
31509 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureBuildSizesInfoKHR Device::getClusterAccelerationStructureBuildSizesNV(
31510 ClusterAccelerationStructureInputInfoNV const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31511 {
31512 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31513 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31514 VULKAN_HPP_ASSERT( d.vkGetClusterAccelerationStructureBuildSizesNV &&
31515 "Function <vkGetClusterAccelerationStructureBuildSizesNV> requires <VK_NV_cluster_acceleration_structure>" );
31516 # endif
31517
31518 AccelerationStructureBuildSizesInfoKHR sizeInfo;
31519 d.vkGetClusterAccelerationStructureBuildSizesNV( m_device,
31520 reinterpret_cast<VkClusterAccelerationStructureInputInfoNV const *>( &info ),
31521 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( &sizeInfo ) );
31522
31523 return sizeInfo;
31524 }
31525 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31526
31527 // wrapper function for command vkCmdBuildClusterAccelerationStructureIndirectNV, see
31528 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildClusterAccelerationStructureIndirectNV.html
31529 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildClusterAccelerationStructureIndirectNV ), bool>::type>
31530 VULKAN_HPP_INLINE void CommandBuffer::buildClusterAccelerationStructureIndirectNV( ClusterAccelerationStructureCommandsInfoNV const * pCommandInfos,
31531 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31532 {
31533 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31534 d.vkCmdBuildClusterAccelerationStructureIndirectNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
31535 reinterpret_cast<VkClusterAccelerationStructureCommandsInfoNV const *>( pCommandInfos ) );
31536 }
31537
31538 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31539 // wrapper function for command vkCmdBuildClusterAccelerationStructureIndirectNV, see
31540 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildClusterAccelerationStructureIndirectNV.html
31541 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildClusterAccelerationStructureIndirectNV ), bool>::type>
31542 VULKAN_HPP_INLINE void CommandBuffer::buildClusterAccelerationStructureIndirectNV( ClusterAccelerationStructureCommandsInfoNV const & commandInfos,
31543 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31544 {
31545 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31546 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31547 VULKAN_HPP_ASSERT( d.vkCmdBuildClusterAccelerationStructureIndirectNV &&
31548 "Function <vkCmdBuildClusterAccelerationStructureIndirectNV> requires <VK_NV_cluster_acceleration_structure>" );
31549 # endif
31550
31551 d.vkCmdBuildClusterAccelerationStructureIndirectNV( m_commandBuffer,
31552 reinterpret_cast<VkClusterAccelerationStructureCommandsInfoNV const *>( &commandInfos ) );
31553 }
31554 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31555
31556 //=== VK_NV_partitioned_acceleration_structure ===
31557
31558 // wrapper function for command vkGetPartitionedAccelerationStructuresBuildSizesNV, see
31559 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPartitionedAccelerationStructuresBuildSizesNV.html
31560 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPartitionedAccelerationStructuresBuildSizesNV ), bool>::type>
31561 VULKAN_HPP_INLINE void Device::getPartitionedAccelerationStructuresBuildSizesNV(
31562 PartitionedAccelerationStructureInstancesInputNV const * pInfo, AccelerationStructureBuildSizesInfoKHR * pSizeInfo, Dispatch const & d )
31563 const VULKAN_HPP_NOEXCEPT
31564 {
31565 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31566 d.vkGetPartitionedAccelerationStructuresBuildSizesNV( static_cast<VkDevice>( m_device ),
31567 reinterpret_cast<VkPartitionedAccelerationStructureInstancesInputNV const *>( pInfo ),
31568 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( pSizeInfo ) );
31569 }
31570
31571 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31572 // wrapper function for command vkGetPartitionedAccelerationStructuresBuildSizesNV, see
31573 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPartitionedAccelerationStructuresBuildSizesNV.html
31574 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPartitionedAccelerationStructuresBuildSizesNV ), bool>::type>
31575 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureBuildSizesInfoKHR Device::getPartitionedAccelerationStructuresBuildSizesNV(
31576 PartitionedAccelerationStructureInstancesInputNV const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31577 {
31578 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31579 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31580 VULKAN_HPP_ASSERT( d.vkGetPartitionedAccelerationStructuresBuildSizesNV &&
31581 "Function <vkGetPartitionedAccelerationStructuresBuildSizesNV> requires <VK_NV_partitioned_acceleration_structure>" );
31582 # endif
31583
31584 AccelerationStructureBuildSizesInfoKHR sizeInfo;
31585 d.vkGetPartitionedAccelerationStructuresBuildSizesNV( m_device,
31586 reinterpret_cast<VkPartitionedAccelerationStructureInstancesInputNV const *>( &info ),
31587 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( &sizeInfo ) );
31588
31589 return sizeInfo;
31590 }
31591 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31592
31593 // wrapper function for command vkCmdBuildPartitionedAccelerationStructuresNV, see
31594 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildPartitionedAccelerationStructuresNV.html
31595 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildPartitionedAccelerationStructuresNV ), bool>::type>
31596 VULKAN_HPP_INLINE void CommandBuffer::buildPartitionedAccelerationStructuresNV( BuildPartitionedAccelerationStructureInfoNV const * pBuildInfo,
31597 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31598 {
31599 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31600 d.vkCmdBuildPartitionedAccelerationStructuresNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
31601 reinterpret_cast<VkBuildPartitionedAccelerationStructureInfoNV const *>( pBuildInfo ) );
31602 }
31603
31604 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31605 // wrapper function for command vkCmdBuildPartitionedAccelerationStructuresNV, see
31606 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildPartitionedAccelerationStructuresNV.html
31607 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildPartitionedAccelerationStructuresNV ), bool>::type>
31608 VULKAN_HPP_INLINE void CommandBuffer::buildPartitionedAccelerationStructuresNV( BuildPartitionedAccelerationStructureInfoNV const & buildInfo,
31609 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31610 {
31611 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31612 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31613 VULKAN_HPP_ASSERT( d.vkCmdBuildPartitionedAccelerationStructuresNV &&
31614 "Function <vkCmdBuildPartitionedAccelerationStructuresNV> requires <VK_NV_partitioned_acceleration_structure>" );
31615 # endif
31616
31617 d.vkCmdBuildPartitionedAccelerationStructuresNV( m_commandBuffer, reinterpret_cast<VkBuildPartitionedAccelerationStructureInfoNV const *>( &buildInfo ) );
31618 }
31619 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31620
31621 //=== VK_EXT_device_generated_commands ===
31622
31623 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsEXT, see
31624 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsEXT.html
31625 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetGeneratedCommandsMemoryRequirementsEXT ), bool>::type>
31626 VULKAN_HPP_INLINE void Device::getGeneratedCommandsMemoryRequirementsEXT(
31627 GeneratedCommandsMemoryRequirementsInfoEXT const * pInfo, MemoryRequirements2 * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31628 {
31629 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31630 d.vkGetGeneratedCommandsMemoryRequirementsEXT( static_cast<VkDevice>( m_device ),
31631 reinterpret_cast<VkGeneratedCommandsMemoryRequirementsInfoEXT const *>( pInfo ),
31632 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
31633 }
31634
31635 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31636 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsEXT, see
31637 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsEXT.html
31638 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetGeneratedCommandsMemoryRequirementsEXT ), bool>::type>
31639 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getGeneratedCommandsMemoryRequirementsEXT(
31640 GeneratedCommandsMemoryRequirementsInfoEXT const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31641 {
31642 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31643 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31644 VULKAN_HPP_ASSERT( d.vkGetGeneratedCommandsMemoryRequirementsEXT &&
31645 "Function <vkGetGeneratedCommandsMemoryRequirementsEXT> requires <VK_EXT_device_generated_commands>" );
31646 # endif
31647
31648 MemoryRequirements2 memoryRequirements;
31649 d.vkGetGeneratedCommandsMemoryRequirementsEXT( m_device,
31650 reinterpret_cast<VkGeneratedCommandsMemoryRequirementsInfoEXT const *>( &info ),
31651 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
31652
31653 return memoryRequirements;
31654 }
31655
31656 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsEXT, see
31657 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsEXT.html
31658 template <typename X,
31659 typename Y,
31660 typename... Z,
31661 typename Dispatch,
31662 typename std::enable_if<IS_DISPATCHED( vkGetGeneratedCommandsMemoryRequirementsEXT ), bool>::type>
31663 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getGeneratedCommandsMemoryRequirementsEXT(
31664 GeneratedCommandsMemoryRequirementsInfoEXT const & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31665 {
31666 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31667 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31668 VULKAN_HPP_ASSERT( d.vkGetGeneratedCommandsMemoryRequirementsEXT &&
31669 "Function <vkGetGeneratedCommandsMemoryRequirementsEXT> requires <VK_EXT_device_generated_commands>" );
31670 # endif
31671
31672 StructureChain<X, Y, Z...> structureChain;
31673 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
31674 d.vkGetGeneratedCommandsMemoryRequirementsEXT( m_device,
31675 reinterpret_cast<VkGeneratedCommandsMemoryRequirementsInfoEXT const *>( &info ),
31676 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
31677
31678 return structureChain;
31679 }
31680 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31681
31682 // wrapper function for command vkCmdPreprocessGeneratedCommandsEXT, see
31683 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPreprocessGeneratedCommandsEXT.html
31684 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPreprocessGeneratedCommandsEXT ), bool>::type>
31685 VULKAN_HPP_INLINE void CommandBuffer::preprocessGeneratedCommandsEXT(
31686 GeneratedCommandsInfoEXT const * pGeneratedCommandsInfo, CommandBuffer stateCommandBuffer, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31687 {
31688 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31689 d.vkCmdPreprocessGeneratedCommandsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
31690 reinterpret_cast<VkGeneratedCommandsInfoEXT const *>( pGeneratedCommandsInfo ),
31691 static_cast<VkCommandBuffer>( stateCommandBuffer ) );
31692 }
31693
31694 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31695 // wrapper function for command vkCmdPreprocessGeneratedCommandsEXT, see
31696 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPreprocessGeneratedCommandsEXT.html
31697 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPreprocessGeneratedCommandsEXT ), bool>::type>
31698 VULKAN_HPP_INLINE void CommandBuffer::preprocessGeneratedCommandsEXT(
31699 GeneratedCommandsInfoEXT const & generatedCommandsInfo, CommandBuffer stateCommandBuffer, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31700 {
31701 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31702 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31703 VULKAN_HPP_ASSERT( d.vkCmdPreprocessGeneratedCommandsEXT && "Function <vkCmdPreprocessGeneratedCommandsEXT> requires <VK_EXT_device_generated_commands>" );
31704 # endif
31705
31706 d.vkCmdPreprocessGeneratedCommandsEXT(
31707 m_commandBuffer, reinterpret_cast<VkGeneratedCommandsInfoEXT const *>( &generatedCommandsInfo ), static_cast<VkCommandBuffer>( stateCommandBuffer ) );
31708 }
31709 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31710
31711 // wrapper function for command vkCmdExecuteGeneratedCommandsEXT, see
31712 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteGeneratedCommandsEXT.html
31713 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdExecuteGeneratedCommandsEXT ), bool>::type>
31714 VULKAN_HPP_INLINE void CommandBuffer::executeGeneratedCommandsEXT(
31715 Bool32 isPreprocessed, GeneratedCommandsInfoEXT const * pGeneratedCommandsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31716 {
31717 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31718 d.vkCmdExecuteGeneratedCommandsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
31719 static_cast<VkBool32>( isPreprocessed ),
31720 reinterpret_cast<VkGeneratedCommandsInfoEXT const *>( pGeneratedCommandsInfo ) );
31721 }
31722
31723 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31724 // wrapper function for command vkCmdExecuteGeneratedCommandsEXT, see
31725 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteGeneratedCommandsEXT.html
31726 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdExecuteGeneratedCommandsEXT ), bool>::type>
31727 VULKAN_HPP_INLINE void CommandBuffer::executeGeneratedCommandsEXT(
31728 Bool32 isPreprocessed, GeneratedCommandsInfoEXT const & generatedCommandsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31729 {
31730 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31731 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31732 VULKAN_HPP_ASSERT( d.vkCmdExecuteGeneratedCommandsEXT && "Function <vkCmdExecuteGeneratedCommandsEXT> requires <VK_EXT_device_generated_commands>" );
31733 # endif
31734
31735 d.vkCmdExecuteGeneratedCommandsEXT(
31736 m_commandBuffer, static_cast<VkBool32>( isPreprocessed ), reinterpret_cast<VkGeneratedCommandsInfoEXT const *>( &generatedCommandsInfo ) );
31737 }
31738 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31739
31740 // wrapper function for command vkCreateIndirectCommandsLayoutEXT, see
31741 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutEXT.html
31742 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectCommandsLayoutEXT ), bool>::type>
31743 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createIndirectCommandsLayoutEXT( IndirectCommandsLayoutCreateInfoEXT const * pCreateInfo,
31744 AllocationCallbacks const * pAllocator,
31745 IndirectCommandsLayoutEXT * pIndirectCommandsLayout,
31746 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31747 {
31748 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31749 return static_cast<Result>( d.vkCreateIndirectCommandsLayoutEXT( static_cast<VkDevice>( m_device ),
31750 reinterpret_cast<VkIndirectCommandsLayoutCreateInfoEXT const *>( pCreateInfo ),
31751 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
31752 reinterpret_cast<VkIndirectCommandsLayoutEXT *>( pIndirectCommandsLayout ) ) );
31753 }
31754
31755 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31756 // wrapper function for command vkCreateIndirectCommandsLayoutEXT, see
31757 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutEXT.html
31758 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectCommandsLayoutEXT ), bool>::type>
31759 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<IndirectCommandsLayoutEXT>::type Device::createIndirectCommandsLayoutEXT(
31760 IndirectCommandsLayoutCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
31761 {
31762 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31763 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31764 VULKAN_HPP_ASSERT( d.vkCreateIndirectCommandsLayoutEXT && "Function <vkCreateIndirectCommandsLayoutEXT> requires <VK_EXT_device_generated_commands>" );
31765 # endif
31766
31767 IndirectCommandsLayoutEXT indirectCommandsLayout;
31768 Result result = static_cast<Result>( d.vkCreateIndirectCommandsLayoutEXT( m_device,
31769 reinterpret_cast<VkIndirectCommandsLayoutCreateInfoEXT const *>( &createInfo ),
31770 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
31771 reinterpret_cast<VkIndirectCommandsLayoutEXT *>( &indirectCommandsLayout ) ) );
31772 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectCommandsLayoutEXT" );
31773
31774 return detail::createResultValueType( result, std::move( indirectCommandsLayout ) );
31775 }
31776
31777 # ifndef VULKAN_HPP_NO_SMART_HANDLE
31778 // wrapper function for command vkCreateIndirectCommandsLayoutEXT, see
31779 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutEXT.html
31780 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectCommandsLayoutEXT ), bool>::type>
31781 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<IndirectCommandsLayoutEXT, Dispatch>>::type
31782 Device::createIndirectCommandsLayoutEXTUnique(
31783 IndirectCommandsLayoutCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
31784 {
31785 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31786 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31787 VULKAN_HPP_ASSERT( d.vkCreateIndirectCommandsLayoutEXT && "Function <vkCreateIndirectCommandsLayoutEXT> requires <VK_EXT_device_generated_commands>" );
31788 # endif
31789
31790 IndirectCommandsLayoutEXT indirectCommandsLayout;
31791 Result result = static_cast<Result>( d.vkCreateIndirectCommandsLayoutEXT( m_device,
31792 reinterpret_cast<VkIndirectCommandsLayoutCreateInfoEXT const *>( &createInfo ),
31793 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
31794 reinterpret_cast<VkIndirectCommandsLayoutEXT *>( &indirectCommandsLayout ) ) );
31795 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectCommandsLayoutEXTUnique" );
31796
31797 return detail::createResultValueType(
31798 result, UniqueHandle<IndirectCommandsLayoutEXT, Dispatch>( indirectCommandsLayout, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
31799 }
31800 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
31801 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31802
31803 // wrapper function for command vkDestroyIndirectCommandsLayoutEXT, see
31804 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutEXT.html
31805 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutEXT ), bool>::type>
31806 VULKAN_HPP_INLINE void Device::destroyIndirectCommandsLayoutEXT(
31807 IndirectCommandsLayoutEXT indirectCommandsLayout, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31808 {
31809 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31810 d.vkDestroyIndirectCommandsLayoutEXT( static_cast<VkDevice>( m_device ),
31811 static_cast<VkIndirectCommandsLayoutEXT>( indirectCommandsLayout ),
31812 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
31813 }
31814
31815 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31816 // wrapper function for command vkDestroyIndirectCommandsLayoutEXT, see
31817 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutEXT.html
31818 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutEXT ), bool>::type>
31819 VULKAN_HPP_INLINE void Device::destroyIndirectCommandsLayoutEXT(
31820 IndirectCommandsLayoutEXT indirectCommandsLayout, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31821 {
31822 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31823 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31824 VULKAN_HPP_ASSERT( d.vkDestroyIndirectCommandsLayoutEXT && "Function <vkDestroyIndirectCommandsLayoutEXT> requires <VK_EXT_device_generated_commands>" );
31825 # endif
31826
31827 d.vkDestroyIndirectCommandsLayoutEXT(
31828 m_device, static_cast<VkIndirectCommandsLayoutEXT>( indirectCommandsLayout ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
31829 }
31830 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31831
31832 // wrapper function for command vkDestroyIndirectCommandsLayoutEXT, see
31833 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutEXT.html
31834 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutEXT ), bool>::type>
31835 VULKAN_HPP_INLINE void Device::destroy( IndirectCommandsLayoutEXT indirectCommandsLayout, AllocationCallbacks const * pAllocator, Dispatch const & d )
31836 const VULKAN_HPP_NOEXCEPT
31837 {
31838 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31839 d.vkDestroyIndirectCommandsLayoutEXT( static_cast<VkDevice>( m_device ),
31840 static_cast<VkIndirectCommandsLayoutEXT>( indirectCommandsLayout ),
31841 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
31842 }
31843
31844 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31845 // wrapper function for command vkDestroyIndirectCommandsLayoutEXT, see
31846 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutEXT.html
31847 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutEXT ), bool>::type>
31848 VULKAN_HPP_INLINE void Device::destroy( IndirectCommandsLayoutEXT indirectCommandsLayout, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
31849 const VULKAN_HPP_NOEXCEPT
31850 {
31851 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31852 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31853 VULKAN_HPP_ASSERT( d.vkDestroyIndirectCommandsLayoutEXT && "Function <vkDestroyIndirectCommandsLayoutEXT> requires <VK_EXT_device_generated_commands>" );
31854 # endif
31855
31856 d.vkDestroyIndirectCommandsLayoutEXT(
31857 m_device, static_cast<VkIndirectCommandsLayoutEXT>( indirectCommandsLayout ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
31858 }
31859 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31860
31861 // wrapper function for command vkCreateIndirectExecutionSetEXT, see
31862 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectExecutionSetEXT.html
31863 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectExecutionSetEXT ), bool>::type>
31864 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createIndirectExecutionSetEXT( IndirectExecutionSetCreateInfoEXT const * pCreateInfo,
31865 AllocationCallbacks const * pAllocator,
31866 IndirectExecutionSetEXT * pIndirectExecutionSet,
31867 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31868 {
31869 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31870 return static_cast<Result>( d.vkCreateIndirectExecutionSetEXT( static_cast<VkDevice>( m_device ),
31871 reinterpret_cast<VkIndirectExecutionSetCreateInfoEXT const *>( pCreateInfo ),
31872 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
31873 reinterpret_cast<VkIndirectExecutionSetEXT *>( pIndirectExecutionSet ) ) );
31874 }
31875
31876 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31877 // wrapper function for command vkCreateIndirectExecutionSetEXT, see
31878 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectExecutionSetEXT.html
31879 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectExecutionSetEXT ), bool>::type>
31880 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<IndirectExecutionSetEXT>::type Device::createIndirectExecutionSetEXT(
31881 IndirectExecutionSetCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
31882 {
31883 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31884 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31885 VULKAN_HPP_ASSERT( d.vkCreateIndirectExecutionSetEXT && "Function <vkCreateIndirectExecutionSetEXT> requires <VK_EXT_device_generated_commands>" );
31886 # endif
31887
31888 IndirectExecutionSetEXT indirectExecutionSet;
31889 Result result = static_cast<Result>( d.vkCreateIndirectExecutionSetEXT( m_device,
31890 reinterpret_cast<VkIndirectExecutionSetCreateInfoEXT const *>( &createInfo ),
31891 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
31892 reinterpret_cast<VkIndirectExecutionSetEXT *>( &indirectExecutionSet ) ) );
31893 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectExecutionSetEXT" );
31894
31895 return detail::createResultValueType( result, std::move( indirectExecutionSet ) );
31896 }
31897
31898 # ifndef VULKAN_HPP_NO_SMART_HANDLE
31899 // wrapper function for command vkCreateIndirectExecutionSetEXT, see
31900 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectExecutionSetEXT.html
31901 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectExecutionSetEXT ), bool>::type>
31902 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<IndirectExecutionSetEXT, Dispatch>>::type
31903 Device::createIndirectExecutionSetEXTUnique(
31904 IndirectExecutionSetCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
31905 {
31906 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31907 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31908 VULKAN_HPP_ASSERT( d.vkCreateIndirectExecutionSetEXT && "Function <vkCreateIndirectExecutionSetEXT> requires <VK_EXT_device_generated_commands>" );
31909 # endif
31910
31911 IndirectExecutionSetEXT indirectExecutionSet;
31912 Result result = static_cast<Result>( d.vkCreateIndirectExecutionSetEXT( m_device,
31913 reinterpret_cast<VkIndirectExecutionSetCreateInfoEXT const *>( &createInfo ),
31914 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
31915 reinterpret_cast<VkIndirectExecutionSetEXT *>( &indirectExecutionSet ) ) );
31916 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectExecutionSetEXTUnique" );
31917
31918 return detail::createResultValueType(
31919 result, UniqueHandle<IndirectExecutionSetEXT, Dispatch>( indirectExecutionSet, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
31920 }
31921 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
31922 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31923
31924 // wrapper function for command vkDestroyIndirectExecutionSetEXT, see
31925 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectExecutionSetEXT.html
31926 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectExecutionSetEXT ), bool>::type>
31927 VULKAN_HPP_INLINE void Device::destroyIndirectExecutionSetEXT(
31928 IndirectExecutionSetEXT indirectExecutionSet, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31929 {
31930 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31931 d.vkDestroyIndirectExecutionSetEXT( static_cast<VkDevice>( m_device ),
31932 static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ),
31933 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
31934 }
31935
31936 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31937 // wrapper function for command vkDestroyIndirectExecutionSetEXT, see
31938 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectExecutionSetEXT.html
31939 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectExecutionSetEXT ), bool>::type>
31940 VULKAN_HPP_INLINE void Device::destroyIndirectExecutionSetEXT(
31941 IndirectExecutionSetEXT indirectExecutionSet, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31942 {
31943 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31944 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31945 VULKAN_HPP_ASSERT( d.vkDestroyIndirectExecutionSetEXT && "Function <vkDestroyIndirectExecutionSetEXT> requires <VK_EXT_device_generated_commands>" );
31946 # endif
31947
31948 d.vkDestroyIndirectExecutionSetEXT(
31949 m_device, static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
31950 }
31951 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31952
31953 // wrapper function for command vkDestroyIndirectExecutionSetEXT, see
31954 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectExecutionSetEXT.html
31955 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectExecutionSetEXT ), bool>::type>
31956 VULKAN_HPP_INLINE void Device::destroy( IndirectExecutionSetEXT indirectExecutionSet, AllocationCallbacks const * pAllocator, Dispatch const & d )
31957 const VULKAN_HPP_NOEXCEPT
31958 {
31959 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31960 d.vkDestroyIndirectExecutionSetEXT( static_cast<VkDevice>( m_device ),
31961 static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ),
31962 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
31963 }
31964
31965 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31966 // wrapper function for command vkDestroyIndirectExecutionSetEXT, see
31967 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectExecutionSetEXT.html
31968 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectExecutionSetEXT ), bool>::type>
31969 VULKAN_HPP_INLINE void Device::destroy( IndirectExecutionSetEXT indirectExecutionSet, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
31970 const VULKAN_HPP_NOEXCEPT
31971 {
31972 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31973 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31974 VULKAN_HPP_ASSERT( d.vkDestroyIndirectExecutionSetEXT && "Function <vkDestroyIndirectExecutionSetEXT> requires <VK_EXT_device_generated_commands>" );
31975 # endif
31976
31977 d.vkDestroyIndirectExecutionSetEXT(
31978 m_device, static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
31979 }
31980 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31981
31982 // wrapper function for command vkUpdateIndirectExecutionSetPipelineEXT, see
31983 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateIndirectExecutionSetPipelineEXT.html
31984 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateIndirectExecutionSetPipelineEXT ), bool>::type>
31985 VULKAN_HPP_INLINE void Device::updateIndirectExecutionSetPipelineEXT( IndirectExecutionSetEXT indirectExecutionSet,
31986 uint32_t executionSetWriteCount,
31987 WriteIndirectExecutionSetPipelineEXT const * pExecutionSetWrites,
31988 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31989 {
31990 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31991 d.vkUpdateIndirectExecutionSetPipelineEXT( static_cast<VkDevice>( m_device ),
31992 static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ),
31993 executionSetWriteCount,
31994 reinterpret_cast<VkWriteIndirectExecutionSetPipelineEXT const *>( pExecutionSetWrites ) );
31995 }
31996
31997 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31998 // wrapper function for command vkUpdateIndirectExecutionSetPipelineEXT, see
31999 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateIndirectExecutionSetPipelineEXT.html
32000 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateIndirectExecutionSetPipelineEXT ), bool>::type>
32001 VULKAN_HPP_INLINE void Device::updateIndirectExecutionSetPipelineEXT(
32002 IndirectExecutionSetEXT indirectExecutionSet, ArrayProxy<WriteIndirectExecutionSetPipelineEXT const> const & executionSetWrites, Dispatch const & d )
32003 const VULKAN_HPP_NOEXCEPT
32004 {
32005 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32006 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32007 VULKAN_HPP_ASSERT( d.vkUpdateIndirectExecutionSetPipelineEXT &&
32008 "Function <vkUpdateIndirectExecutionSetPipelineEXT> requires <VK_EXT_device_generated_commands>" );
32009 # endif
32010
32011 d.vkUpdateIndirectExecutionSetPipelineEXT( m_device,
32012 static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ),
32013 executionSetWrites.size(),
32014 reinterpret_cast<VkWriteIndirectExecutionSetPipelineEXT const *>( executionSetWrites.data() ) );
32015 }
32016 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32017
32018 // wrapper function for command vkUpdateIndirectExecutionSetShaderEXT, see
32019 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateIndirectExecutionSetShaderEXT.html
32020 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateIndirectExecutionSetShaderEXT ), bool>::type>
32021 VULKAN_HPP_INLINE void Device::updateIndirectExecutionSetShaderEXT( IndirectExecutionSetEXT indirectExecutionSet,
32022 uint32_t executionSetWriteCount,
32023 WriteIndirectExecutionSetShaderEXT const * pExecutionSetWrites,
32024 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32025 {
32026 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32027 d.vkUpdateIndirectExecutionSetShaderEXT( static_cast<VkDevice>( m_device ),
32028 static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ),
32029 executionSetWriteCount,
32030 reinterpret_cast<VkWriteIndirectExecutionSetShaderEXT const *>( pExecutionSetWrites ) );
32031 }
32032
32033 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32034 // wrapper function for command vkUpdateIndirectExecutionSetShaderEXT, see
32035 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateIndirectExecutionSetShaderEXT.html
32036 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateIndirectExecutionSetShaderEXT ), bool>::type>
32037 VULKAN_HPP_INLINE void Device::updateIndirectExecutionSetShaderEXT(
32038 IndirectExecutionSetEXT indirectExecutionSet, ArrayProxy<WriteIndirectExecutionSetShaderEXT const> const & executionSetWrites, Dispatch const & d )
32039 const VULKAN_HPP_NOEXCEPT
32040 {
32041 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32042 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32043 VULKAN_HPP_ASSERT( d.vkUpdateIndirectExecutionSetShaderEXT &&
32044 "Function <vkUpdateIndirectExecutionSetShaderEXT> requires <VK_EXT_device_generated_commands>" );
32045 # endif
32046
32047 d.vkUpdateIndirectExecutionSetShaderEXT( m_device,
32048 static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ),
32049 executionSetWrites.size(),
32050 reinterpret_cast<VkWriteIndirectExecutionSetShaderEXT const *>( executionSetWrites.data() ) );
32051 }
32052 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32053
32054 #if defined( VK_USE_PLATFORM_OHOS )
32055 //=== VK_OHOS_surface ===
32056
32057 // wrapper function for command vkCreateSurfaceOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSurfaceOHOS.html
32058 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSurfaceOHOS ), bool>::type>
32059 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createSurfaceOHOS(
32060 SurfaceCreateInfoOHOS const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32061 {
32062 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32063 return static_cast<Result>( d.vkCreateSurfaceOHOS( static_cast<VkInstance>( m_instance ),
32064 reinterpret_cast<VkSurfaceCreateInfoOHOS const *>( pCreateInfo ),
32065 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
32066 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
32067 }
32068
32069 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32070 // wrapper function for command vkCreateSurfaceOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSurfaceOHOS.html
32071 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSurfaceOHOS ), bool>::type>
32072 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createSurfaceOHOS(
32073 SurfaceCreateInfoOHOS const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
32074 {
32075 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32076 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32077 VULKAN_HPP_ASSERT( d.vkCreateSurfaceOHOS && "Function <vkCreateSurfaceOHOS> requires <VK_OHOS_surface>" );
32078 # endif
32079
32080 SurfaceKHR surface;
32081 Result result = static_cast<Result>( d.vkCreateSurfaceOHOS( m_instance,
32082 reinterpret_cast<VkSurfaceCreateInfoOHOS const *>( &createInfo ),
32083 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
32084 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
32085 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createSurfaceOHOS" );
32086
32087 return detail::createResultValueType( result, std::move( surface ) );
32088 }
32089
32090 # ifndef VULKAN_HPP_NO_SMART_HANDLE
32091 // wrapper function for command vkCreateSurfaceOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSurfaceOHOS.html
32092 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSurfaceOHOS ), bool>::type>
32093 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createSurfaceOHOSUnique(
32094 SurfaceCreateInfoOHOS const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
32095 {
32096 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32097 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32098 VULKAN_HPP_ASSERT( d.vkCreateSurfaceOHOS && "Function <vkCreateSurfaceOHOS> requires <VK_OHOS_surface>" );
32099 # endif
32100
32101 SurfaceKHR surface;
32102 Result result = static_cast<Result>( d.vkCreateSurfaceOHOS( m_instance,
32103 reinterpret_cast<VkSurfaceCreateInfoOHOS const *>( &createInfo ),
32104 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
32105 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
32106 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createSurfaceOHOSUnique" );
32107
32108 return detail::createResultValueType( result,
32109 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
32110 }
32111 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
32112 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32113 #endif /*VK_USE_PLATFORM_OHOS*/
32114
32115 //=== VK_NV_cooperative_matrix2 ===
32116
32117 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV, see
32118 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV.html
32119 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV ), bool>::type>
32120 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV(
32121 uint32_t * pPropertyCount, CooperativeMatrixFlexibleDimensionsPropertiesNV * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32122 {
32123 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32124 return static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV(
32125 static_cast<VkPhysicalDevice>( m_physicalDevice ),
32126 pPropertyCount,
32127 reinterpret_cast<VkCooperativeMatrixFlexibleDimensionsPropertiesNV *>( pProperties ) ) );
32128 }
32129
32130 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32131 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV, see
32132 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV.html
32133 template <typename CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator,
32134 typename Dispatch,
32135 typename std::enable_if<std::is_same<typename CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator::value_type,
32136 CooperativeMatrixFlexibleDimensionsPropertiesNV>::value,
32137 int>::type,
32138 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV ), bool>::type>
32139 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
32140 typename ResultValueType<std::vector<CooperativeMatrixFlexibleDimensionsPropertiesNV, CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator>>::type
32141 PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV( Dispatch const & d ) const
32142 {
32143 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32144 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32145 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV &&
32146 "Function <vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV> requires <VK_NV_cooperative_matrix2>" );
32147 # endif
32148
32149 std::vector<CooperativeMatrixFlexibleDimensionsPropertiesNV, CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator> properties;
32150 uint32_t propertyCount;
32151 Result result;
32152 do
32153 {
32154 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) );
32155 if ( ( result == Result::eSuccess ) && propertyCount )
32156 {
32157 properties.resize( propertyCount );
32158 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV(
32159 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeMatrixFlexibleDimensionsPropertiesNV *>( properties.data() ) ) );
32160 }
32161 } while ( result == Result::eIncomplete );
32162 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV" );
32163 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
32164 if ( propertyCount < properties.size() )
32165 {
32166 properties.resize( propertyCount );
32167 }
32168 return detail::createResultValueType( result, std::move( properties ) );
32169 }
32170
32171 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV, see
32172 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV.html
32173 template <typename CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator,
32174 typename Dispatch,
32175 typename std::enable_if<std::is_same<typename CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator::value_type,
32176 CooperativeMatrixFlexibleDimensionsPropertiesNV>::value,
32177 int>::type,
32178 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV ), bool>::type>
32179 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
32180 typename ResultValueType<std::vector<CooperativeMatrixFlexibleDimensionsPropertiesNV, CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator>>::type
32181 PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV(
32182 CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator const & cooperativeMatrixFlexibleDimensionsPropertiesNVAllocator, Dispatch const & d ) const
32183 {
32184 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32185 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32186 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV &&
32187 "Function <vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV> requires <VK_NV_cooperative_matrix2>" );
32188 # endif
32189
32190 std::vector<CooperativeMatrixFlexibleDimensionsPropertiesNV, CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator> properties(
32191 cooperativeMatrixFlexibleDimensionsPropertiesNVAllocator );
32192 uint32_t propertyCount;
32193 Result result;
32194 do
32195 {
32196 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) );
32197 if ( ( result == Result::eSuccess ) && propertyCount )
32198 {
32199 properties.resize( propertyCount );
32200 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV(
32201 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeMatrixFlexibleDimensionsPropertiesNV *>( properties.data() ) ) );
32202 }
32203 } while ( result == Result::eIncomplete );
32204 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV" );
32205 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
32206 if ( propertyCount < properties.size() )
32207 {
32208 properties.resize( propertyCount );
32209 }
32210 return detail::createResultValueType( result, std::move( properties ) );
32211 }
32212 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32213
32214 #if defined( VK_USE_PLATFORM_METAL_EXT )
32215 //=== VK_EXT_external_memory_metal ===
32216
32217 // wrapper function for command vkGetMemoryMetalHandleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryMetalHandleEXT.html
32218 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryMetalHandleEXT ), bool>::type>
32219 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryMetalHandleEXT(
32220 MemoryGetMetalHandleInfoEXT const * pGetMetalHandleInfo, void ** pHandle, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32221 {
32222 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32223 return static_cast<Result>( d.vkGetMemoryMetalHandleEXT(
32224 static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryGetMetalHandleInfoEXT const *>( pGetMetalHandleInfo ), pHandle ) );
32225 }
32226
32227 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32228 // wrapper function for command vkGetMemoryMetalHandleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryMetalHandleEXT.html
32229 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryMetalHandleEXT ), bool>::type>
32230 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<void *>::type Device::getMemoryMetalHandleEXT(
32231 MemoryGetMetalHandleInfoEXT const & getMetalHandleInfo, Dispatch const & d ) const
32232 {
32233 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32234 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32235 VULKAN_HPP_ASSERT( d.vkGetMemoryMetalHandleEXT && "Function <vkGetMemoryMetalHandleEXT> requires <VK_EXT_external_memory_metal>" );
32236 # endif
32237
32238 void * handle;
32239 Result result =
32240 static_cast<Result>( d.vkGetMemoryMetalHandleEXT( m_device, reinterpret_cast<VkMemoryGetMetalHandleInfoEXT const *>( &getMetalHandleInfo ), &handle ) );
32241 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryMetalHandleEXT" );
32242
32243 return detail::createResultValueType( result, std::move( handle ) );
32244 }
32245 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32246
32247 // wrapper function for command vkGetMemoryMetalHandlePropertiesEXT, see
32248 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryMetalHandlePropertiesEXT.html
32249 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryMetalHandlePropertiesEXT ), bool>::type>
32250 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryMetalHandlePropertiesEXT(
32251 ExternalMemoryHandleTypeFlagBits handleType, void const * pHandle, MemoryMetalHandlePropertiesEXT * pMemoryMetalHandleProperties, Dispatch const & d )
32252 const VULKAN_HPP_NOEXCEPT
32253 {
32254 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32255 return static_cast<Result>( d.vkGetMemoryMetalHandlePropertiesEXT( static_cast<VkDevice>( m_device ),
32256 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
32257 pHandle,
32258 reinterpret_cast<VkMemoryMetalHandlePropertiesEXT *>( pMemoryMetalHandleProperties ) ) );
32259 }
32260
32261 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32262 // wrapper function for command vkGetMemoryMetalHandlePropertiesEXT, see
32263 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryMetalHandlePropertiesEXT.html
32264 template <typename HandleType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryMetalHandlePropertiesEXT ), bool>::type>
32265 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryMetalHandlePropertiesEXT>::type Device::getMemoryMetalHandlePropertiesEXT(
32266 ExternalMemoryHandleTypeFlagBits handleType, HandleType const & handle, Dispatch const & d ) const
32267 {
32268 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32269 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32270 VULKAN_HPP_ASSERT( d.vkGetMemoryMetalHandlePropertiesEXT && "Function <vkGetMemoryMetalHandlePropertiesEXT> requires <VK_EXT_external_memory_metal>" );
32271 # endif
32272
32273 MemoryMetalHandlePropertiesEXT memoryMetalHandleProperties;
32274 Result result =
32275 static_cast<Result>( d.vkGetMemoryMetalHandlePropertiesEXT( m_device,
32276 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
32277 reinterpret_cast<void const *>( &handle ),
32278 reinterpret_cast<VkMemoryMetalHandlePropertiesEXT *>( &memoryMetalHandleProperties ) ) );
32279 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryMetalHandlePropertiesEXT" );
32280
32281 return detail::createResultValueType( result, std::move( memoryMetalHandleProperties ) );
32282 }
32283 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32284 #endif /*VK_USE_PLATFORM_METAL_EXT*/
32285
32286 //=== VK_ARM_performance_counters_by_region ===
32287
32288 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM, see
32289 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM.html
32290 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM ), bool>::type>
32291 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::enumerateQueueFamilyPerformanceCountersByRegionARM(
32292 uint32_t queueFamilyIndex,
32293 uint32_t * pCounterCount,
32294 PerformanceCounterARM * pCounters,
32295 PerformanceCounterDescriptionARM * pCounterDescriptions,
32296 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32297 {
32298 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32299 return static_cast<Result>(
32300 d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( static_cast<VkPhysicalDevice>( m_physicalDevice ),
32301 queueFamilyIndex,
32302 pCounterCount,
32303 reinterpret_cast<VkPerformanceCounterARM *>( pCounters ),
32304 reinterpret_cast<VkPerformanceCounterDescriptionARM *>( pCounterDescriptions ) ) );
32305 }
32306
32307 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32308 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM, see
32309 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM.html
32310 template <typename PerformanceCounterARMAllocator,
32311 typename PerformanceCounterDescriptionARMAllocator,
32312 typename Dispatch,
32313 typename std::enable_if<std::is_same<typename PerformanceCounterARMAllocator::value_type, PerformanceCounterARM>::value &&
32314 std::is_same<typename PerformanceCounterDescriptionARMAllocator::value_type, PerformanceCounterDescriptionARM>::value,
32315 int>::type,
32316 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM ), bool>::type>
32317 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
32318 typename ResultValueType<std::pair<std::vector<PerformanceCounterARM, PerformanceCounterARMAllocator>,
32319 std::vector<PerformanceCounterDescriptionARM, PerformanceCounterDescriptionARMAllocator>>>::type
32320 PhysicalDevice::enumerateQueueFamilyPerformanceCountersByRegionARM( uint32_t queueFamilyIndex, Dispatch const & d ) const
32321 {
32322 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32323 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32324 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM &&
32325 "Function <vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM> requires <VK_ARM_performance_counters_by_region>" );
32326 # endif
32327
32328 std::pair<std::vector<PerformanceCounterARM, PerformanceCounterARMAllocator>,
32329 std::vector<PerformanceCounterDescriptionARM, PerformanceCounterDescriptionARMAllocator>>
32330 data_;
32331 std::vector<PerformanceCounterARM, PerformanceCounterARMAllocator> & counters = data_.first;
32332 std::vector<PerformanceCounterDescriptionARM, PerformanceCounterDescriptionARMAllocator> & counterDescriptions = data_.second;
32333 uint32_t counterCount;
32334 Result result;
32335 do
32336 {
32337 result = static_cast<Result>(
32338 d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( m_physicalDevice, queueFamilyIndex, &counterCount, nullptr, nullptr ) );
32339 if ( ( result == Result::eSuccess ) && counterCount )
32340 {
32341 counters.resize( counterCount );
32342 counterDescriptions.resize( counterCount );
32343 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM(
32344 m_physicalDevice,
32345 queueFamilyIndex,
32346 &counterCount,
32347 reinterpret_cast<VkPerformanceCounterARM *>( counters.data() ),
32348 reinterpret_cast<VkPerformanceCounterDescriptionARM *>( counterDescriptions.data() ) ) );
32349 }
32350 } while ( result == Result::eIncomplete );
32351 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateQueueFamilyPerformanceCountersByRegionARM" );
32352 VULKAN_HPP_ASSERT( counterCount <= counters.size() );
32353 if ( counterCount < counters.size() )
32354 {
32355 counters.resize( counterCount );
32356 counterDescriptions.resize( counterCount );
32357 }
32358 return detail::createResultValueType( result, std::move( data_ ) );
32359 }
32360
32361 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM, see
32362 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM.html
32363 template <typename PerformanceCounterARMAllocator,
32364 typename PerformanceCounterDescriptionARMAllocator,
32365 typename Dispatch,
32366 typename std::enable_if<std::is_same<typename PerformanceCounterARMAllocator::value_type, PerformanceCounterARM>::value &&
32367 std::is_same<typename PerformanceCounterDescriptionARMAllocator::value_type, PerformanceCounterDescriptionARM>::value,
32368 int>::type,
32369 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM ), bool>::type>
32370 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
32371 typename ResultValueType<std::pair<std::vector<PerformanceCounterARM, PerformanceCounterARMAllocator>,
32372 std::vector<PerformanceCounterDescriptionARM, PerformanceCounterDescriptionARMAllocator>>>::type
32373 PhysicalDevice::enumerateQueueFamilyPerformanceCountersByRegionARM(
32374 uint32_t queueFamilyIndex,
32375 PerformanceCounterARMAllocator const & performanceCounterARMAllocator,
32376 PerformanceCounterDescriptionARMAllocator const & performanceCounterDescriptionARMAllocator,
32377 Dispatch const & d ) const
32378 {
32379 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32380 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32381 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM &&
32382 "Function <vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM> requires <VK_ARM_performance_counters_by_region>" );
32383 # endif
32384
32385 std::pair<std::vector<PerformanceCounterARM, PerformanceCounterARMAllocator>,
32386 std::vector<PerformanceCounterDescriptionARM, PerformanceCounterDescriptionARMAllocator>>
32387 data_(
32388 std::piecewise_construct, std::forward_as_tuple( performanceCounterARMAllocator ), std::forward_as_tuple( performanceCounterDescriptionARMAllocator ) );
32389 std::vector<PerformanceCounterARM, PerformanceCounterARMAllocator> & counters = data_.first;
32390 std::vector<PerformanceCounterDescriptionARM, PerformanceCounterDescriptionARMAllocator> & counterDescriptions = data_.second;
32391 uint32_t counterCount;
32392 Result result;
32393 do
32394 {
32395 result = static_cast<Result>(
32396 d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( m_physicalDevice, queueFamilyIndex, &counterCount, nullptr, nullptr ) );
32397 if ( ( result == Result::eSuccess ) && counterCount )
32398 {
32399 counters.resize( counterCount );
32400 counterDescriptions.resize( counterCount );
32401 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM(
32402 m_physicalDevice,
32403 queueFamilyIndex,
32404 &counterCount,
32405 reinterpret_cast<VkPerformanceCounterARM *>( counters.data() ),
32406 reinterpret_cast<VkPerformanceCounterDescriptionARM *>( counterDescriptions.data() ) ) );
32407 }
32408 } while ( result == Result::eIncomplete );
32409 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateQueueFamilyPerformanceCountersByRegionARM" );
32410 VULKAN_HPP_ASSERT( counterCount <= counters.size() );
32411 if ( counterCount < counters.size() )
32412 {
32413 counters.resize( counterCount );
32414 counterDescriptions.resize( counterCount );
32415 }
32416 return detail::createResultValueType( result, std::move( data_ ) );
32417 }
32418 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32419
32420 //=== VK_ARM_shader_instrumentation ===
32421
32422 // wrapper function for command vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM, see
32423 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM.html
32424 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM ), bool>::type>
32425 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::enumerateShaderInstrumentationMetricsARM(
32426 uint32_t * pDescriptionCount, ShaderInstrumentationMetricDescriptionARM * pDescriptions, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32427 {
32428 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32429 return static_cast<Result>(
32430 d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM( static_cast<VkPhysicalDevice>( m_physicalDevice ),
32431 pDescriptionCount,
32432 reinterpret_cast<VkShaderInstrumentationMetricDescriptionARM *>( pDescriptions ) ) );
32433 }
32434
32435 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32436 // wrapper function for command vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM, see
32437 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM.html
32438 template <typename ShaderInstrumentationMetricDescriptionARMAllocator,
32439 typename Dispatch,
32440 typename std::enable_if<
32441 std::is_same<typename ShaderInstrumentationMetricDescriptionARMAllocator::value_type, ShaderInstrumentationMetricDescriptionARM>::value,
32442 int>::type,
32443 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM ), bool>::type>
32444 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
32445 typename ResultValueType<std::vector<ShaderInstrumentationMetricDescriptionARM, ShaderInstrumentationMetricDescriptionARMAllocator>>::type
32446 PhysicalDevice::enumerateShaderInstrumentationMetricsARM( Dispatch const & d ) const
32447 {
32448 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32449 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32450 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM &&
32451 "Function <vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM> requires <VK_ARM_shader_instrumentation>" );
32452 # endif
32453
32454 std::vector<ShaderInstrumentationMetricDescriptionARM, ShaderInstrumentationMetricDescriptionARMAllocator> descriptions;
32455 uint32_t descriptionCount;
32456 Result result;
32457 do
32458 {
32459 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM( m_physicalDevice, &descriptionCount, nullptr ) );
32460 if ( ( result == Result::eSuccess ) && descriptionCount )
32461 {
32462 descriptions.resize( descriptionCount );
32463 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM(
32464 m_physicalDevice, &descriptionCount, reinterpret_cast<VkShaderInstrumentationMetricDescriptionARM *>( descriptions.data() ) ) );
32465 }
32466 } while ( result == Result::eIncomplete );
32467 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateShaderInstrumentationMetricsARM" );
32468 VULKAN_HPP_ASSERT( descriptionCount <= descriptions.size() );
32469 if ( descriptionCount < descriptions.size() )
32470 {
32471 descriptions.resize( descriptionCount );
32472 }
32473 return detail::createResultValueType( result, std::move( descriptions ) );
32474 }
32475
32476 // wrapper function for command vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM, see
32477 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM.html
32478 template <typename ShaderInstrumentationMetricDescriptionARMAllocator,
32479 typename Dispatch,
32480 typename std::enable_if<
32481 std::is_same<typename ShaderInstrumentationMetricDescriptionARMAllocator::value_type, ShaderInstrumentationMetricDescriptionARM>::value,
32482 int>::type,
32483 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM ), bool>::type>
32484 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
32485 typename ResultValueType<std::vector<ShaderInstrumentationMetricDescriptionARM, ShaderInstrumentationMetricDescriptionARMAllocator>>::type
32486 PhysicalDevice::enumerateShaderInstrumentationMetricsARM(
32487 ShaderInstrumentationMetricDescriptionARMAllocator const & shaderInstrumentationMetricDescriptionARMAllocator, Dispatch const & d ) const
32488 {
32489 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32490 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32491 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM &&
32492 "Function <vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM> requires <VK_ARM_shader_instrumentation>" );
32493 # endif
32494
32495 std::vector<ShaderInstrumentationMetricDescriptionARM, ShaderInstrumentationMetricDescriptionARMAllocator> descriptions(
32496 shaderInstrumentationMetricDescriptionARMAllocator );
32497 uint32_t descriptionCount;
32498 Result result;
32499 do
32500 {
32501 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM( m_physicalDevice, &descriptionCount, nullptr ) );
32502 if ( ( result == Result::eSuccess ) && descriptionCount )
32503 {
32504 descriptions.resize( descriptionCount );
32505 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM(
32506 m_physicalDevice, &descriptionCount, reinterpret_cast<VkShaderInstrumentationMetricDescriptionARM *>( descriptions.data() ) ) );
32507 }
32508 } while ( result == Result::eIncomplete );
32509 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateShaderInstrumentationMetricsARM" );
32510 VULKAN_HPP_ASSERT( descriptionCount <= descriptions.size() );
32511 if ( descriptionCount < descriptions.size() )
32512 {
32513 descriptions.resize( descriptionCount );
32514 }
32515 return detail::createResultValueType( result, std::move( descriptions ) );
32516 }
32517 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32518
32519 // wrapper function for command vkCreateShaderInstrumentationARM, see
32520 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderInstrumentationARM.html
32521 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShaderInstrumentationARM ), bool>::type>
32522 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createShaderInstrumentationARM( ShaderInstrumentationCreateInfoARM const * pCreateInfo,
32523 AllocationCallbacks const * pAllocator,
32524 ShaderInstrumentationARM * pInstrumentation,
32525 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32526 {
32527 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32528 return static_cast<Result>( d.vkCreateShaderInstrumentationARM( static_cast<VkDevice>( m_device ),
32529 reinterpret_cast<VkShaderInstrumentationCreateInfoARM const *>( pCreateInfo ),
32530 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
32531 reinterpret_cast<VkShaderInstrumentationARM *>( pInstrumentation ) ) );
32532 }
32533
32534 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32535 // wrapper function for command vkCreateShaderInstrumentationARM, see
32536 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderInstrumentationARM.html
32537 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShaderInstrumentationARM ), bool>::type>
32538 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ShaderInstrumentationARM>::type Device::createShaderInstrumentationARM(
32539 ShaderInstrumentationCreateInfoARM const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
32540 {
32541 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32542 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32543 VULKAN_HPP_ASSERT( d.vkCreateShaderInstrumentationARM && "Function <vkCreateShaderInstrumentationARM> requires <VK_ARM_shader_instrumentation>" );
32544 # endif
32545
32546 ShaderInstrumentationARM instrumentation;
32547 Result result = static_cast<Result>( d.vkCreateShaderInstrumentationARM( m_device,
32548 reinterpret_cast<VkShaderInstrumentationCreateInfoARM const *>( &createInfo ),
32549 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
32550 reinterpret_cast<VkShaderInstrumentationARM *>( &instrumentation ) ) );
32551 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderInstrumentationARM" );
32552
32553 return detail::createResultValueType( result, std::move( instrumentation ) );
32554 }
32555
32556 # ifndef VULKAN_HPP_NO_SMART_HANDLE
32557 // wrapper function for command vkCreateShaderInstrumentationARM, see
32558 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderInstrumentationARM.html
32559 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShaderInstrumentationARM ), bool>::type>
32560 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<ShaderInstrumentationARM, Dispatch>>::type
32561 Device::createShaderInstrumentationARMUnique(
32562 ShaderInstrumentationCreateInfoARM const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
32563 {
32564 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32565 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32566 VULKAN_HPP_ASSERT( d.vkCreateShaderInstrumentationARM && "Function <vkCreateShaderInstrumentationARM> requires <VK_ARM_shader_instrumentation>" );
32567 # endif
32568
32569 ShaderInstrumentationARM instrumentation;
32570 Result result = static_cast<Result>( d.vkCreateShaderInstrumentationARM( m_device,
32571 reinterpret_cast<VkShaderInstrumentationCreateInfoARM const *>( &createInfo ),
32572 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
32573 reinterpret_cast<VkShaderInstrumentationARM *>( &instrumentation ) ) );
32574 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderInstrumentationARMUnique" );
32575
32576 return detail::createResultValueType(
32577 result, UniqueHandle<ShaderInstrumentationARM, Dispatch>( instrumentation, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
32578 }
32579 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
32580 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32581
32582 // wrapper function for command vkDestroyShaderInstrumentationARM, see
32583 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderInstrumentationARM.html
32584 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderInstrumentationARM ), bool>::type>
32585 VULKAN_HPP_INLINE void Device::destroyShaderInstrumentationARM(
32586 ShaderInstrumentationARM instrumentation, AllocationCallbacks const * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32587 {
32588 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32589 d.vkDestroyShaderInstrumentationARM( static_cast<VkDevice>( m_device ),
32590 static_cast<VkShaderInstrumentationARM>( instrumentation ),
32591 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
32592 }
32593
32594 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32595 // wrapper function for command vkDestroyShaderInstrumentationARM, see
32596 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderInstrumentationARM.html
32597 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderInstrumentationARM ), bool>::type>
32598 VULKAN_HPP_INLINE void Device::destroyShaderInstrumentationARM(
32599 ShaderInstrumentationARM instrumentation, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32600 {
32601 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32602 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32603 VULKAN_HPP_ASSERT( d.vkDestroyShaderInstrumentationARM && "Function <vkDestroyShaderInstrumentationARM> requires <VK_ARM_shader_instrumentation>" );
32604 # endif
32605
32606 d.vkDestroyShaderInstrumentationARM(
32607 m_device, static_cast<VkShaderInstrumentationARM>( instrumentation ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
32608 }
32609 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32610
32611 // wrapper function for command vkDestroyShaderInstrumentationARM, see
32612 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderInstrumentationARM.html
32613 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderInstrumentationARM ), bool>::type>
32614 VULKAN_HPP_INLINE void Device::destroy( ShaderInstrumentationARM instrumentation, AllocationCallbacks const * pAllocator, Dispatch const & d )
32615 const VULKAN_HPP_NOEXCEPT
32616 {
32617 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32618 d.vkDestroyShaderInstrumentationARM( static_cast<VkDevice>( m_device ),
32619 static_cast<VkShaderInstrumentationARM>( instrumentation ),
32620 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ) );
32621 }
32622
32623 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32624 // wrapper function for command vkDestroyShaderInstrumentationARM, see
32625 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderInstrumentationARM.html
32626 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderInstrumentationARM ), bool>::type>
32627 VULKAN_HPP_INLINE void Device::destroy( ShaderInstrumentationARM instrumentation, Optional<AllocationCallbacks const> allocator, Dispatch const & d )
32628 const VULKAN_HPP_NOEXCEPT
32629 {
32630 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32631 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32632 VULKAN_HPP_ASSERT( d.vkDestroyShaderInstrumentationARM && "Function <vkDestroyShaderInstrumentationARM> requires <VK_ARM_shader_instrumentation>" );
32633 # endif
32634
32635 d.vkDestroyShaderInstrumentationARM(
32636 m_device, static_cast<VkShaderInstrumentationARM>( instrumentation ), reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
32637 }
32638 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32639
32640 // wrapper function for command vkCmdBeginShaderInstrumentationARM, see
32641 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginShaderInstrumentationARM.html
32642 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginShaderInstrumentationARM ), bool>::type>
32643 VULKAN_HPP_INLINE void CommandBuffer::beginShaderInstrumentationARM( ShaderInstrumentationARM instrumentation, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32644 {
32645 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32646 d.vkCmdBeginShaderInstrumentationARM( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkShaderInstrumentationARM>( instrumentation ) );
32647 }
32648
32649 // wrapper function for command vkCmdEndShaderInstrumentationARM, see
32650 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndShaderInstrumentationARM.html
32651 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndShaderInstrumentationARM ), bool>::type>
32652 VULKAN_HPP_INLINE void CommandBuffer::endShaderInstrumentationARM( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32653 {
32654 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32655 d.vkCmdEndShaderInstrumentationARM( static_cast<VkCommandBuffer>( m_commandBuffer ) );
32656 }
32657
32658 // wrapper function for command vkGetShaderInstrumentationValuesARM, see
32659 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderInstrumentationValuesARM.html
32660 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderInstrumentationValuesARM ), bool>::type>
32661 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getShaderInstrumentationValuesARM( ShaderInstrumentationARM instrumentation,
32662 uint32_t * pMetricBlockCount,
32663 void * pMetricValues,
32664 ShaderInstrumentationValuesFlagsARM flags,
32665 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32666 {
32667 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32668 return static_cast<Result>( d.vkGetShaderInstrumentationValuesARM( static_cast<VkDevice>( m_device ),
32669 static_cast<VkShaderInstrumentationARM>( instrumentation ),
32670 pMetricBlockCount,
32671 pMetricValues,
32672 static_cast<VkShaderInstrumentationValuesFlagsARM>( flags ) ) );
32673 }
32674
32675 // wrapper function for command vkClearShaderInstrumentationMetricsARM, see
32676 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkClearShaderInstrumentationMetricsARM.html
32677 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkClearShaderInstrumentationMetricsARM ), bool>::type>
32678 VULKAN_HPP_INLINE void Device::clearShaderInstrumentationMetricsARM( ShaderInstrumentationARM instrumentation, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32679 {
32680 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32681 d.vkClearShaderInstrumentationMetricsARM( static_cast<VkDevice>( m_device ), static_cast<VkShaderInstrumentationARM>( instrumentation ) );
32682 }
32683
32684 //=== VK_EXT_fragment_density_map_offset ===
32685
32686 // wrapper function for command vkCmdEndRendering2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering2EXT.html
32687 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRendering2EXT ), bool>::type>
32688 VULKAN_HPP_INLINE void CommandBuffer::endRendering2EXT( RenderingEndInfoKHR const * pRenderingEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32689 {
32690 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32691 d.vkCmdEndRendering2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkRenderingEndInfoKHR const *>( pRenderingEndInfo ) );
32692 }
32693
32694 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32695 // wrapper function for command vkCmdEndRendering2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering2EXT.html
32696 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRendering2EXT ), bool>::type>
32697 VULKAN_HPP_INLINE void CommandBuffer::endRendering2EXT( Optional<RenderingEndInfoKHR const> renderingEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32698 {
32699 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32700 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32701 VULKAN_HPP_ASSERT( d.vkCmdEndRendering2EXT && "Function <vkCmdEndRendering2EXT> requires <VK_EXT_fragment_density_map_offset> or <VK_KHR_maintenance10>" );
32702 # endif
32703
32704 d.vkCmdEndRendering2EXT( m_commandBuffer, reinterpret_cast<VkRenderingEndInfoKHR const *>( renderingEndInfo.get() ) );
32705 }
32706 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32707
32708 //=== VK_EXT_custom_resolve ===
32709
32710 // wrapper function for command vkCmdBeginCustomResolveEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginCustomResolveEXT.html
32711 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginCustomResolveEXT ), bool>::type>
32712 VULKAN_HPP_INLINE void CommandBuffer::beginCustomResolveEXT( BeginCustomResolveInfoEXT const * pBeginCustomResolveInfo, Dispatch const & d )
32713 const VULKAN_HPP_NOEXCEPT
32714 {
32715 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32716 d.vkCmdBeginCustomResolveEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
32717 reinterpret_cast<VkBeginCustomResolveInfoEXT const *>( pBeginCustomResolveInfo ) );
32718 }
32719
32720 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32721 // wrapper function for command vkCmdBeginCustomResolveEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginCustomResolveEXT.html
32722 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginCustomResolveEXT ), bool>::type>
32723 VULKAN_HPP_INLINE void CommandBuffer::beginCustomResolveEXT( Optional<BeginCustomResolveInfoEXT const> beginCustomResolveInfo, Dispatch const & d )
32724 const VULKAN_HPP_NOEXCEPT
32725 {
32726 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32727 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32728 VULKAN_HPP_ASSERT( d.vkCmdBeginCustomResolveEXT && "Function <vkCmdBeginCustomResolveEXT> requires <VK_EXT_custom_resolve>" );
32729 # endif
32730
32731 d.vkCmdBeginCustomResolveEXT( m_commandBuffer, reinterpret_cast<VkBeginCustomResolveInfoEXT const *>( beginCustomResolveInfo.get() ) );
32732 }
32733 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32734
32735 //=== VK_KHR_maintenance10 ===
32736
32737 // wrapper function for command vkCmdEndRendering2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering2KHR.html
32738 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRendering2KHR ), bool>::type>
32739 VULKAN_HPP_INLINE void CommandBuffer::endRendering2KHR( RenderingEndInfoKHR const * pRenderingEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32740 {
32741 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32742 d.vkCmdEndRendering2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkRenderingEndInfoKHR const *>( pRenderingEndInfo ) );
32743 }
32744
32745 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32746 // wrapper function for command vkCmdEndRendering2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering2KHR.html
32747 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRendering2KHR ), bool>::type>
32748 VULKAN_HPP_INLINE void CommandBuffer::endRendering2KHR( Optional<RenderingEndInfoKHR const> renderingEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32749 {
32750 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32751 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32752 VULKAN_HPP_ASSERT( d.vkCmdEndRendering2KHR && "Function <vkCmdEndRendering2KHR> requires <VK_EXT_fragment_density_map_offset> or <VK_KHR_maintenance10>" );
32753 # endif
32754
32755 d.vkCmdEndRendering2KHR( m_commandBuffer, reinterpret_cast<VkRenderingEndInfoKHR const *>( renderingEndInfo.get() ) );
32756 }
32757 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32758
32759 //=== VK_NV_compute_occupancy_priority ===
32760
32761 // wrapper function for command vkCmdSetComputeOccupancyPriorityNV, see
32762 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetComputeOccupancyPriorityNV.html
32763 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetComputeOccupancyPriorityNV ), bool>::type>
32764 VULKAN_HPP_INLINE void CommandBuffer::setComputeOccupancyPriorityNV( ComputeOccupancyPriorityParametersNV const * pParameters, Dispatch const & d )
32765 const VULKAN_HPP_NOEXCEPT
32766 {
32767 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32768 d.vkCmdSetComputeOccupancyPriorityNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
32769 reinterpret_cast<VkComputeOccupancyPriorityParametersNV const *>( pParameters ) );
32770 }
32771
32772 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32773 // wrapper function for command vkCmdSetComputeOccupancyPriorityNV, see
32774 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetComputeOccupancyPriorityNV.html
32775 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetComputeOccupancyPriorityNV ), bool>::type>
32776 VULKAN_HPP_INLINE void CommandBuffer::setComputeOccupancyPriorityNV( ComputeOccupancyPriorityParametersNV const & parameters, Dispatch const & d )
32777 const VULKAN_HPP_NOEXCEPT
32778 {
32779 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32780 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32781 VULKAN_HPP_ASSERT( d.vkCmdSetComputeOccupancyPriorityNV && "Function <vkCmdSetComputeOccupancyPriorityNV> requires <VK_NV_compute_occupancy_priority>" );
32782 # endif
32783
32784 d.vkCmdSetComputeOccupancyPriorityNV( m_commandBuffer, reinterpret_cast<VkComputeOccupancyPriorityParametersNV const *>( &parameters ) );
32785 }
32786 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32787
32788 #if defined( VK_USE_PLATFORM_UBM_SEC )
32789 //=== VK_SEC_ubm_surface ===
32790
32791 // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html
32792 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateUbmSurfaceSEC ), bool>::type>
32793 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createUbmSurfaceSEC(
32794 UbmSurfaceCreateInfoSEC const * pCreateInfo, AllocationCallbacks const * pAllocator, SurfaceKHR * pSurface, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32795 {
32796 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32797 return static_cast<Result>( d.vkCreateUbmSurfaceSEC( static_cast<VkInstance>( m_instance ),
32798 reinterpret_cast<VkUbmSurfaceCreateInfoSEC const *>( pCreateInfo ),
32799 reinterpret_cast<VkAllocationCallbacks const *>( pAllocator ),
32800 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
32801 }
32802
32803 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32804 // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html
32805 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateUbmSurfaceSEC ), bool>::type>
32806 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createUbmSurfaceSEC(
32807 UbmSurfaceCreateInfoSEC const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
32808 {
32809 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32810 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32811 VULKAN_HPP_ASSERT( d.vkCreateUbmSurfaceSEC && "Function <vkCreateUbmSurfaceSEC> requires <VK_SEC_ubm_surface>" );
32812 # endif
32813
32814 SurfaceKHR surface;
32815 Result result = static_cast<Result>( d.vkCreateUbmSurfaceSEC( m_instance,
32816 reinterpret_cast<VkUbmSurfaceCreateInfoSEC const *>( &createInfo ),
32817 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
32818 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
32819 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createUbmSurfaceSEC" );
32820
32821 return detail::createResultValueType( result, std::move( surface ) );
32822 }
32823
32824 # ifndef VULKAN_HPP_NO_SMART_HANDLE
32825 // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html
32826 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateUbmSurfaceSEC ), bool>::type>
32827 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createUbmSurfaceSECUnique(
32828 UbmSurfaceCreateInfoSEC const & createInfo, Optional<AllocationCallbacks const> allocator, Dispatch const & d ) const
32829 {
32830 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32831 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32832 VULKAN_HPP_ASSERT( d.vkCreateUbmSurfaceSEC && "Function <vkCreateUbmSurfaceSEC> requires <VK_SEC_ubm_surface>" );
32833 # endif
32834
32835 SurfaceKHR surface;
32836 Result result = static_cast<Result>( d.vkCreateUbmSurfaceSEC( m_instance,
32837 reinterpret_cast<VkUbmSurfaceCreateInfoSEC const *>( &createInfo ),
32838 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
32839 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
32840 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createUbmSurfaceSECUnique" );
32841
32842 return detail::createResultValueType( result,
32843 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
32844 }
32845 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
32846 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32847
32848 // wrapper function for command vkGetPhysicalDeviceUbmPresentationSupportSEC, see
32849 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceUbmPresentationSupportSEC.html
32850 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceUbmPresentationSupportSEC ), bool>::type>
32851 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getUbmPresentationSupportSEC( uint32_t queueFamilyIndex, struct ubm_device * device, Dispatch const & d )
32852 const VULKAN_HPP_NOEXCEPT
32853 {
32854 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32855 return static_cast<Bool32>( d.vkGetPhysicalDeviceUbmPresentationSupportSEC( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, device ) );
32856 }
32857
32858 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32859 // wrapper function for command vkGetPhysicalDeviceUbmPresentationSupportSEC, see
32860 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceUbmPresentationSupportSEC.html
32861 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceUbmPresentationSupportSEC ), bool>::type>
32862 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::pair<Bool32, struct ubm_device> PhysicalDevice::getUbmPresentationSupportSEC(
32863 uint32_t queueFamilyIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32864 {
32865 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32866 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32867 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceUbmPresentationSupportSEC &&
32868 "Function <vkGetPhysicalDeviceUbmPresentationSupportSEC> requires <VK_SEC_ubm_surface>" );
32869 # endif
32870
32871 struct ubm_device device;
32872 VkBool32 result = d.vkGetPhysicalDeviceUbmPresentationSupportSEC( m_physicalDevice, queueFamilyIndex, &device );
32873
32874 return { result, device };
32875 }
32876 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32877 #endif /*VK_USE_PLATFORM_UBM_SEC*/
32878
32879 } // namespace VULKAN_HPP_NAMESPACE
32880 #endif