8 #ifndef VULKAN_RAII_HPP
9 #define VULKAN_RAII_HPP
15 #if !defined( VULKAN_HPP_RAII_NAMESPACE )
16 # define VULKAN_HPP_RAII_NAMESPACE raii
19 #if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE ) && !defined( VULKAN_HPP_NO_EXCEPTIONS )
24 template <
class T,
class U = T>
27 # if ( 14 <= VULKAN_HPP_CPP_VERSION )
28 return std::exchange<T>( obj, std::forward<U>( newValue ) );
30 T oldValue = std::move( obj );
31 obj = std::forward<U>( newValue );
115 # if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT )
138 # if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
149 # if defined( VK_USE_PLATFORM_WIN32_KHR )
158 # if defined( VK_USE_PLATFORM_METAL_EXT )
173 # if defined( VK_USE_PLATFORM_FUCHSIA )
178 # if defined( VK_USE_PLATFORM_GGP )
183 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
275 vkGetInstanceProcAddr( instance,
"vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR" ) );
290 # if defined( VK_ENABLE_BETA_EXTENSIONS )
298 # if defined( VK_USE_PLATFORM_WAYLAND_KHR )
305 # if defined( VK_USE_PLATFORM_WIN32_KHR )
312 # if defined( VK_USE_PLATFORM_XCB_KHR )
319 # if defined( VK_USE_PLATFORM_XLIB_KHR )
326 # if defined( VK_USE_PLATFORM_IOS_MVK )
331 # if defined( VK_USE_PLATFORM_MACOS_MVK )
336 # if defined( VK_USE_PLATFORM_VI_NN )
341 # if defined( VK_USE_PLATFORM_WIN32_KHR )
353 vkGetInstanceProcAddr( instance,
"vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV" ) );
363 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
409 # if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT )
434 # if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
446 # if defined( VK_USE_PLATFORM_WIN32_KHR )
456 # if defined( VK_USE_PLATFORM_METAL_EXT )
469 # if defined( VK_USE_PLATFORM_FUCHSIA )
476 # if defined( VK_USE_PLATFORM_GGP )
483 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
547 # if defined( VK_ENABLE_BETA_EXTENSIONS )
556 # if defined( VK_USE_PLATFORM_WAYLAND_KHR )
565 # if defined( VK_USE_PLATFORM_WIN32_KHR )
574 # if defined( VK_USE_PLATFORM_XCB_KHR )
583 # if defined( VK_USE_PLATFORM_XLIB_KHR )
592 # if defined( VK_USE_PLATFORM_IOS_MVK )
599 # if defined( VK_USE_PLATFORM_MACOS_MVK )
606 # if defined( VK_USE_PLATFORM_VI_NN )
613 # if defined( VK_USE_PLATFORM_WIN32_KHR )
634 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
864 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
922 vkGetDeviceProcAddr( device,
"vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT" ) );
1028 # if defined( VK_USE_PLATFORM_WIN32_KHR )
1059 # if defined( VK_USE_PLATFORM_METAL_EXT )
1130 # if defined( VK_USE_PLATFORM_FUCHSIA )
1142 # if defined( VK_USE_PLATFORM_FUCHSIA )
1149 # if defined( VK_USE_PLATFORM_FUCHSIA )
1328 # if defined( VK_USE_PLATFORM_WIN32_KHR )
1338 # if defined( VK_USE_PLATFORM_WIN32_KHR )
1348 # if defined( VK_USE_PLATFORM_WIN32_KHR )
1478 # if defined( VK_ENABLE_BETA_EXTENSIONS )
1483 # if defined( VK_ENABLE_BETA_EXTENSIONS )
1488 # if defined( VK_ENABLE_BETA_EXTENSIONS )
1537 # if defined( VK_USE_PLATFORM_WIN32_KHR )
1807 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
1928 # if defined( VK_USE_PLATFORM_WIN32_KHR )
1959 # if defined( VK_USE_PLATFORM_METAL_EXT )
2022 # if defined( VK_USE_PLATFORM_FUCHSIA )
2037 # if defined( VK_USE_PLATFORM_FUCHSIA )
2046 # if defined( VK_USE_PLATFORM_FUCHSIA )
2154 # if defined( VK_USE_PLATFORM_WIN32_KHR )
2167 # if defined( VK_USE_PLATFORM_WIN32_KHR )
2180 # if defined( VK_USE_PLATFORM_WIN32_KHR )
2264 # if defined( VK_ENABLE_BETA_EXTENSIONS )
2271 # if defined( VK_ENABLE_BETA_EXTENSIONS )
2278 # if defined( VK_ENABLE_BETA_EXTENSIONS )
2336 # if defined( VK_USE_PLATFORM_WIN32_KHR )
2443 # if defined( VK_ENABLE_BETA_EXTENSIONS )
2445 class VideoSessionKHR;
2446 class VideoSessionParametersKHR;
2474 # if defined( VK_USE_PLATFORM_FUCHSIA )
2476 class BufferCollectionFUCHSIA;
2492 # if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
2507 # if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
2508 : m_dynamicLoader( std::move( rhs.m_dynamicLoader ) )
2509 , m_dispatcher( rhs.m_dispatcher.release() )
2511 : m_dispatcher( rhs.m_dispatcher.release() )
2520 # if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
2521 m_dynamicLoader = std::move( rhs.m_dynamicLoader );
2523 m_dispatcher.reset( rhs.m_dispatcher.release() );
2531 return &*m_dispatcher;
2536 # if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
2537 std::swap( m_dynamicLoader, rhs.m_dynamicLoader );
2539 m_dispatcher.swap( rhs.m_dispatcher );
2558 # if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
2561 std::unique_ptr<VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::ContextDispatcher> m_dispatcher;
2581 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
2582 reinterpret_cast<VkInstance *>( &m_instance ) ) );
2585 throwResultException( result,
"vkCreateInstance" );
2588 static_cast<VkInstance
>( m_instance ) ) );
2592 VkInstance instance,
2597 static_cast<VkInstance
>( m_instance ) ) );
2623 m_dispatcher.reset( rhs.m_dispatcher.release() );
2637 getDispatcher()->vkDestroyInstance( static_cast<VkInstance>( m_instance ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
2639 m_instance =
nullptr;
2640 m_allocator =
nullptr;
2641 m_dispatcher =
nullptr;
2646 m_allocator =
nullptr;
2647 m_dispatcher =
nullptr;
2654 return &*m_dispatcher;
2659 std::swap( m_instance, rhs.m_instance );
2660 std::swap( m_allocator, rhs.m_allocator );
2661 std::swap( m_dispatcher, rhs.m_dispatcher );
2666 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_RAII_NAMESPACE::PhysicalDevice> enumeratePhysicalDevices()
const;
2672 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::PhysicalDeviceGroupProperties> enumeratePhysicalDeviceGroups()
const;
2680 # if defined( VK_USE_PLATFORM_XLIB_KHR )
2684 createXlibSurfaceKHR( VULKAN_HPP_NAMESPACE::XlibSurfaceCreateInfoKHR
const & createInfo,
2688 # if defined( VK_USE_PLATFORM_XCB_KHR )
2692 createXcbSurfaceKHR( VULKAN_HPP_NAMESPACE::XcbSurfaceCreateInfoKHR
const & createInfo,
2696 # if defined( VK_USE_PLATFORM_WAYLAND_KHR )
2700 createWaylandSurfaceKHR( VULKAN_HPP_NAMESPACE::WaylandSurfaceCreateInfoKHR
const & createInfo,
2704 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
2708 createAndroidSurfaceKHR( VULKAN_HPP_NAMESPACE::AndroidSurfaceCreateInfoKHR
const & createInfo,
2712 # if defined( VK_USE_PLATFORM_WIN32_KHR )
2716 createWin32SurfaceKHR( VULKAN_HPP_NAMESPACE::Win32SurfaceCreateInfoKHR
const & createInfo,
2730 int32_t messageCode,
2734 # if defined( VK_USE_PLATFORM_GGP )
2738 createStreamDescriptorSurfaceGGP( VULKAN_HPP_NAMESPACE::StreamDescriptorSurfaceCreateInfoGGP
const & createInfo,
2742 # if defined( VK_USE_PLATFORM_VI_NN )
2746 createViSurfaceNN( VULKAN_HPP_NAMESPACE::ViSurfaceCreateInfoNN
const & createInfo,
2752 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::PhysicalDeviceGroupProperties> enumeratePhysicalDeviceGroupsKHR()
const;
2754 # if defined( VK_USE_PLATFORM_IOS_MVK )
2758 createIOSSurfaceMVK( VULKAN_HPP_NAMESPACE::IOSSurfaceCreateInfoMVK
const & createInfo,
2762 # if defined( VK_USE_PLATFORM_MACOS_MVK )
2766 createMacOSSurfaceMVK( VULKAN_HPP_NAMESPACE::MacOSSurfaceCreateInfoMVK
const & createInfo,
2780 # if defined( VK_USE_PLATFORM_FUCHSIA )
2784 createImagePipeSurfaceFUCHSIA( VULKAN_HPP_NAMESPACE::ImagePipeSurfaceCreateInfoFUCHSIA
const & createInfo,
2788 # if defined( VK_USE_PLATFORM_METAL_EXT )
2792 createMetalSurfaceEXT( VULKAN_HPP_NAMESPACE::MetalSurfaceCreateInfoEXT
const & createInfo,
2802 # if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
2806 createDirectFBSurfaceEXT( VULKAN_HPP_NAMESPACE::DirectFBSurfaceCreateInfoEXT
const & createInfo,
2810 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
2814 createScreenSurfaceQNX( VULKAN_HPP_NAMESPACE::ScreenSurfaceCreateInfoQNX
const & createInfo,
2821 std::unique_ptr<VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::InstanceDispatcher> m_dispatcher;
2835 : m_physicalDevice( physicalDevice ), m_dispatcher( instance.getDispatcher() )
2855 m_physicalDevice = rhs.m_physicalDevice;
2856 m_dispatcher = rhs.m_dispatcher;
2871 return m_physicalDevice;
2876 m_physicalDevice =
nullptr;
2877 m_dispatcher =
nullptr;
2882 m_dispatcher =
nullptr;
2889 return m_dispatcher;
2894 std::swap( m_physicalDevice, rhs.m_physicalDevice );
2895 std::swap( m_dispatcher, rhs.m_dispatcher );
2937 template <typename
X, typename
Y, typename...
Z>
2942 template <typename X, typename Y, typename...
Z>
2947 template <typename X, typename Y, typename...
Z>
2953 template <typename X, typename Y, typename...
Z>
2964 template <typename X, typename Y, typename...
Z>
3007 # if defined( VK_USE_PLATFORM_XLIB_KHR )
3011 getXlibPresentationSupportKHR( uint32_t queueFamilyIndex, Display & dpy, VisualID visualID )
const VULKAN_HPP_NOEXCEPT;
3014 # if defined( VK_USE_PLATFORM_XCB_KHR )
3018 getXcbPresentationSupportKHR( uint32_t queueFamilyIndex, xcb_connection_t & connection, xcb_visualid_t visual_id )
const VULKAN_HPP_NOEXCEPT;
3021 # if defined( VK_USE_PLATFORM_WAYLAND_KHR )
3028 # if defined( VK_USE_PLATFORM_WIN32_KHR )
3034 # if defined( VK_ENABLE_BETA_EXTENSIONS )
3038 getVideoCapabilitiesKHR(
const VULKAN_HPP_NAMESPACE::VideoProfileInfoKHR & videoProfile )
const;
3040 template <
typename X,
typename Y,
typename...
Z>
3044 getVideoFormatPropertiesKHR(
const VULKAN_HPP_NAMESPACE::PhysicalDeviceVideoFormatInfoKHR & videoFormatInfo )
const;
3061 template <typename X, typename Y, typename...
Z>
3066 template <typename X, typename Y, typename...
Z>
3071 template <typename X, typename Y, typename...
Z>
3077 template <typename X, typename Y, typename...
Z>
3088 template <typename X, typename Y, typename...
Z>
3104 # if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT )
3124 std::pair<std::vector<VULKAN_HPP_NAMESPACE::PerformanceCounterKHR>, std::vector<VULKAN_HPP_NAMESPACE::PerformanceCounterDescriptionKHR>>
3125 enumerateQueueFamilyPerformanceQueryCountersKHR( uint32_t queueFamilyIndex )
const;
3135 template <
typename X,
typename Y,
typename...
Z>
3142 template <
typename StructureChain>
3147 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::DisplayProperties2KHR> getDisplayProperties2KHR()
const;
3149 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::DisplayPlaneProperties2KHR> getDisplayPlaneProperties2KHR()
const;
3161 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::TimeDomainEXT> getCalibrateableTimeDomainsEXT()
const;
3165 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::PhysicalDeviceFragmentShadingRateKHR> getFragmentShadingRatesKHR()
const;
3169 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::PhysicalDeviceToolProperties> getToolPropertiesEXT()
const;
3173 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::CooperativeMatrixPropertiesNV> getCooperativeMatrixPropertiesNV()
const;
3177 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::FramebufferMixedSamplesCombinationNV> getSupportedFramebufferMixedSamplesCombinationsNV()
const;
3179 # if defined( VK_USE_PLATFORM_WIN32_KHR )
3192 # if defined( VK_USE_PLATFORM_WIN32_KHR )
3198 # if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
3205 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
3222 class PhysicalDevices :
public std::vector<VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::PhysicalDevice>
3228 std::vector<VkPhysicalDevice> physicalDevices;
3229 uint32_t physicalDeviceCount;
3237 physicalDevices.resize( physicalDeviceCount );
3239 dispatcher->
vkEnumeratePhysicalDevices( static_cast<VkInstance>( *instance ), &physicalDeviceCount, physicalDevices.data() ) );
3245 this->
reserve( physicalDeviceCount );
3246 for (
auto const & physicalDevice : physicalDevices )
3248 this->emplace_back( instance, physicalDevice );
3253 throwResultException( result,
"vkEnumeratePhysicalDevices" );
3283 reinterpret_cast<const VkDeviceCreateInfo *>( &createInfo ),
3284 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
3285 reinterpret_cast<VkDevice *>( &m_device ) ) );
3288 throwResultException( result,
"vkCreateDevice" );
3291 static_cast<VkDevice
>( m_device ) ) );
3300 static_cast<VkDevice
>( m_device ) ) );
3326 m_dispatcher.reset( rhs.m_dispatcher.release() );
3340 getDispatcher()->vkDestroyDevice( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
3343 m_allocator =
nullptr;
3344 m_dispatcher =
nullptr;
3349 m_allocator =
nullptr;
3350 m_dispatcher =
nullptr;
3357 return &*m_dispatcher;
3363 std::swap( m_allocator, rhs.m_allocator );
3364 std::swap( m_dispatcher, rhs.m_dispatcher );
3373 void waitIdle()
const;
3494 getGroupPeerMemoryFeatures( uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex )
const VULKAN_HPP_NOEXCEPT;
3499 template <
typename X,
typename Y,
typename...
Z>
3506 template <
typename X,
typename Y,
typename...
Z>
3526 template <
typename X,
typename Y,
typename...
Z>
3555 uint64_t objectHandle,
3557 uint64_t
data )
const;
3560 uint64_t objectHandle,
3566 template <
typename X,
typename Y,
typename...
Z>
3573 template <
typename X,
typename Y,
typename...
Z>
3610 # if defined( VK_ENABLE_BETA_EXTENSIONS )
3614 createVideoSessionKHR( VULKAN_HPP_NAMESPACE::VideoSessionCreateInfoKHR
const & createInfo,
3618 createVideoSessionParametersKHR( VULKAN_HPP_NAMESPACE::VideoSessionParametersCreateInfoKHR
const & createInfo,
3639 getGroupPeerMemoryFeaturesKHR( uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex )
const VULKAN_HPP_NOEXCEPT;
3641 # if defined( VK_USE_PLATFORM_WIN32_KHR )
3644 VULKAN_HPP_NODISCARD HANDLE getMemoryWin32HandleKHR(
const VULKAN_HPP_NAMESPACE::MemoryGetWin32HandleInfoKHR & getWin32HandleInfo )
const;
3657 # if defined( VK_USE_PLATFORM_WIN32_KHR )
3660 void importSemaphoreWin32HandleKHR(
const VULKAN_HPP_NAMESPACE::ImportSemaphoreWin32HandleInfoKHR & importSemaphoreWin32HandleInfo )
const;
3662 VULKAN_HPP_NODISCARD HANDLE getSemaphoreWin32HandleKHR(
const VULKAN_HPP_NAMESPACE::SemaphoreGetWin32HandleInfoKHR & getWin32HandleInfo )
const;
3705 # if defined( VK_USE_PLATFORM_WIN32_KHR )
3708 void importFenceWin32HandleKHR(
const VULKAN_HPP_NAMESPACE::ImportFenceWin32HandleInfoKHR & importFenceWin32HandleInfo )
const;
3710 VULKAN_HPP_NODISCARD HANDLE getFenceWin32HandleKHR(
const VULKAN_HPP_NAMESPACE::FenceGetWin32HandleInfoKHR & getWin32HandleInfo )
const;
3723 void releaseProfilingLockKHR() const VULKAN_HPP_NOEXCEPT;
3731 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
3735 getAndroidHardwareBufferPropertiesANDROID(
const struct AHardwareBuffer &
buffer )
const;
3737 template <
typename X,
typename Y,
typename...
Z>
3741 getMemoryAndroidHardwareBufferANDROID(
const VULKAN_HPP_NAMESPACE::MemoryGetAndroidHardwareBufferInfoANDROID & info )
const;
3749 template <
typename X,
typename Y,
typename...
Z>
3756 template <
typename X,
typename Y,
typename...
Z>
3786 template <
typename DataType>
3793 template <
typename DataType>
3841 template <
typename X,
typename Y,
typename...
Z>
3845 void bindAccelerationStructureMemoryNV(
3863 template <
typename X,
typename Y,
typename...
Z>
3890 void uninitializePerformanceApiINTEL() const VULKAN_HPP_NOEXCEPT;
3903 # if defined( VK_USE_PLATFORM_WIN32_KHR )
3933 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::PipelineExecutableInternalRepresentationKHR>
3941 template <
typename X,
typename Y,
typename...
Z>
3960 uint64_t objectHandle,
3962 uint64_t
data )
const;
3965 uint64_t objectHandle,
3968 # if defined( VK_USE_PLATFORM_METAL_EXT )
3971 VULKAN_HPP_NODISCARD VULKAN_HPP_NAMESPACE::ExportMetalObjectsInfoEXT exportMetalObjectsEXT() const VULKAN_HPP_NOEXCEPT;
3973 template <typename X, typename Y, typename...
Z>
3979 template <
typename DescriptorType>
3982 template <
typename DataType>
3985 template <
typename DataType>
3988 template <
typename DataType>
3992 template <
typename DataType>
3995 template <
typename DataType>
4002 std::pair<VULKAN_HPP_NAMESPACE::Result, std::pair<VULKAN_HPP_NAMESPACE::DeviceFaultCountsEXT, VULKAN_HPP_NAMESPACE::DeviceFaultInfoEXT>>
4003 getFaultInfoEXT()
const;
4007 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_RAII_NAMESPACE::Pipeline> createRayTracingPipelinesKHR(
4019 # if defined( VK_USE_PLATFORM_FUCHSIA )
4022 VULKAN_HPP_NODISCARD zx_handle_t getMemoryZirconHandleFUCHSIA(
const VULKAN_HPP_NAMESPACE::MemoryGetZirconHandleInfoFUCHSIA & getZirconHandleInfo )
const;
4028 # if defined( VK_USE_PLATFORM_FUCHSIA )
4031 void importSemaphoreZirconHandleFUCHSIA(
const VULKAN_HPP_NAMESPACE::ImportSemaphoreZirconHandleInfoFUCHSIA & importSemaphoreZirconHandleInfo )
const;
4034 getSemaphoreZirconHandleFUCHSIA(
const VULKAN_HPP_NAMESPACE::SemaphoreGetZirconHandleInfoFUCHSIA & getZirconHandleInfo )
const;
4037 # if defined( VK_USE_PLATFORM_FUCHSIA )
4041 createBufferCollectionFUCHSIA( VULKAN_HPP_NAMESPACE::BufferCollectionCreateInfoFUCHSIA
const & createInfo,
4073 template <
typename DataType>
4080 template <
typename DataType>
4097 template <
typename X,
typename Y,
typename...
Z>
4104 template <
typename X,
typename Y,
typename...
Z>
4135 std::unique_ptr<VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::DeviceDispatcher> m_dispatcher;
4141 using CType = VkAccelerationStructureKHR;
4151 : m_device( *device )
4153 , m_dispatcher( device.getDispatcher() )
4157 reinterpret_cast<const VkAccelerationStructureCreateInfoKHR *>( &createInfo ),
4158 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
4159 reinterpret_cast<VkAccelerationStructureKHR *>( &m_accelerationStructure ) ) );
4162 throwResultException( result,
"vkCreateAccelerationStructureKHR" );
4167 VkAccelerationStructureKHR accelerationStructure,
4169 : m_device( *device )
4170 , m_accelerationStructure( accelerationStructure )
4172 , m_dispatcher( device.getDispatcher() )
4208 return m_accelerationStructure;
4213 if ( m_accelerationStructure )
4215 getDispatcher()->vkDestroyAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
4216 static_cast<VkAccelerationStructureKHR>( m_accelerationStructure ),
4217 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
4220 m_accelerationStructure =
nullptr;
4221 m_allocator =
nullptr;
4222 m_dispatcher =
nullptr;
4228 m_allocator =
nullptr;
4229 m_dispatcher =
nullptr;
4241 return m_dispatcher;
4247 std::swap( m_accelerationStructure, rhs.m_accelerationStructure );
4248 std::swap( m_allocator, rhs.m_allocator );
4249 std::swap( m_dispatcher, rhs.m_dispatcher );
4262 using CType = VkAccelerationStructureNV;
4272 : m_device( *device )
4274 , m_dispatcher( device.getDispatcher() )
4278 reinterpret_cast<const VkAccelerationStructureCreateInfoNV *>( &createInfo ),
4279 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
4280 reinterpret_cast<VkAccelerationStructureNV *>( &m_accelerationStructure ) ) );
4283 throwResultException( result,
"vkCreateAccelerationStructureNV" );
4288 VkAccelerationStructureNV accelerationStructure,
4290 : m_device( *device )
4291 , m_accelerationStructure( accelerationStructure )
4293 , m_dispatcher( device.getDispatcher() )
4329 return m_accelerationStructure;
4334 if ( m_accelerationStructure )
4336 getDispatcher()->vkDestroyAccelerationStructureNV( static_cast<VkDevice>( m_device ),
4337 static_cast<VkAccelerationStructureNV>( m_accelerationStructure ),
4338 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
4341 m_accelerationStructure =
nullptr;
4342 m_allocator =
nullptr;
4343 m_dispatcher =
nullptr;
4349 m_allocator =
nullptr;
4350 m_dispatcher =
nullptr;
4362 return m_dispatcher;
4368 std::swap( m_accelerationStructure, rhs.m_accelerationStructure );
4369 std::swap( m_allocator, rhs.m_allocator );
4370 std::swap( m_dispatcher, rhs.m_dispatcher );
4375 template <
typename DataType>
4378 template <
typename DataType>
4401 : m_device( *device )
4403 , m_dispatcher( device.getDispatcher() )
4407 reinterpret_cast<const VkBufferCreateInfo *>( &createInfo ),
4408 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
4409 reinterpret_cast<VkBuffer *>( &m_buffer ) ) );
4412 throwResultException( result,
"vkCreateBuffer" );
4419 : m_device( *device )
4420 , m_buffer( buffer )
4422 , m_dispatcher( device.getDispatcher() )
4465 getDispatcher()->vkDestroyBuffer(
4466 static_cast<VkDevice>( m_device ), static_cast<VkBuffer>( m_buffer ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
4470 m_allocator =
nullptr;
4471 m_dispatcher =
nullptr;
4477 m_allocator =
nullptr;
4478 m_dispatcher =
nullptr;
4490 return m_dispatcher;
4497 std::swap( m_allocator, rhs.m_allocator );
4498 std::swap( m_dispatcher, rhs.m_dispatcher );
4514 # if defined( VK_USE_PLATFORM_FUCHSIA )
4515 class BufferCollectionFUCHSIA
4518 using CType = VkBufferCollectionFUCHSIA;
4522 VULKAN_HPP_NAMESPACE::DebugReportObjectTypeEXT::eBufferCollectionFUCHSIA;
4526 VULKAN_HPP_NAMESPACE::BufferCollectionCreateInfoFUCHSIA
const & createInfo,
4528 : m_device( *device )
4530 , m_dispatcher( device.getDispatcher() )
4533 device.
getDispatcher()->vkCreateBufferCollectionFUCHSIA( static_cast<VkDevice>( *device ),
4534 reinterpret_cast<const VkBufferCollectionCreateInfoFUCHSIA *>( &createInfo ),
4535 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
4536 reinterpret_cast<VkBufferCollectionFUCHSIA *>( &m_collection ) ) );
4539 throwResultException( result,
"vkCreateBufferCollectionFUCHSIA" );
4544 VkBufferCollectionFUCHSIA collection,
4546 : m_device( *device )
4547 , m_collection( collection )
4549 , m_dispatcher( device.getDispatcher() )
4553 BufferCollectionFUCHSIA( std::nullptr_t ) {}
4555 ~BufferCollectionFUCHSIA()
4560 BufferCollectionFUCHSIA() =
delete;
4561 BufferCollectionFUCHSIA( BufferCollectionFUCHSIA
const & ) =
delete;
4569 BufferCollectionFUCHSIA &
operator=( BufferCollectionFUCHSIA
const & ) =
delete;
4583 VULKAN_HPP_NAMESPACE::BufferCollectionFUCHSIA
const &
operator*() const VULKAN_HPP_NOEXCEPT
4585 return m_collection;
4588 void clear() VULKAN_HPP_NOEXCEPT
4592 getDispatcher()->vkDestroyBufferCollectionFUCHSIA( static_cast<VkDevice>( m_device ),
4593 static_cast<VkBufferCollectionFUCHSIA>( m_collection ),
4594 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
4597 m_collection =
nullptr;
4598 m_allocator =
nullptr;
4599 m_dispatcher =
nullptr;
4602 VULKAN_HPP_NAMESPACE::BufferCollectionFUCHSIA release()
4605 m_allocator =
nullptr;
4606 m_dispatcher =
nullptr;
4618 return m_dispatcher;
4621 void swap( VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::BufferCollectionFUCHSIA & rhs ) VULKAN_HPP_NOEXCEPT
4624 std::swap( m_collection, rhs.m_collection );
4625 std::swap( m_allocator, rhs.m_allocator );
4626 std::swap( m_dispatcher, rhs.m_dispatcher );
4631 void setImageConstraints(
const VULKAN_HPP_NAMESPACE::ImageConstraintsInfoFUCHSIA & imageConstraintsInfo )
const;
4633 void setBufferConstraints(
const VULKAN_HPP_NAMESPACE::BufferConstraintsInfoFUCHSIA & bufferConstraintsInfo )
const;
4635 VULKAN_HPP_NODISCARD VULKAN_HPP_NAMESPACE::BufferCollectionPropertiesFUCHSIA getProperties()
const;
4639 VULKAN_HPP_NAMESPACE::BufferCollectionFUCHSIA m_collection = {};
4658 : m_device( *device )
4660 , m_dispatcher( device.getDispatcher() )
4664 reinterpret_cast<const VkBufferViewCreateInfo *>( &createInfo ),
4665 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
4666 reinterpret_cast<VkBufferView *>( &m_bufferView ) ) );
4669 throwResultException( result,
"vkCreateBufferView" );
4674 VkBufferView bufferView,
4676 : m_device( *device )
4677 , m_bufferView( bufferView )
4679 , m_dispatcher( device.getDispatcher() )
4715 return m_bufferView;
4722 getDispatcher()->vkDestroyBufferView(
4723 static_cast<VkDevice>( m_device ), static_cast<VkBufferView>( m_bufferView ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
4726 m_bufferView =
nullptr;
4727 m_allocator =
nullptr;
4728 m_dispatcher =
nullptr;
4734 m_allocator =
nullptr;
4735 m_dispatcher =
nullptr;
4747 return m_dispatcher;
4753 std::swap( m_bufferView, rhs.m_bufferView );
4754 std::swap( m_allocator, rhs.m_allocator );
4755 std::swap( m_dispatcher, rhs.m_dispatcher );
4778 : m_device( *device )
4780 , m_dispatcher( device.getDispatcher() )
4784 reinterpret_cast<const VkCommandPoolCreateInfo *>( &createInfo ),
4785 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
4786 reinterpret_cast<VkCommandPool *>( &m_commandPool ) ) );
4789 throwResultException( result,
"vkCreateCommandPool" );
4794 VkCommandPool commandPool,
4796 : m_device( *device )
4797 , m_commandPool( commandPool )
4799 , m_dispatcher( device.getDispatcher() )
4835 return m_commandPool;
4840 if ( m_commandPool )
4842 getDispatcher()->vkDestroyCommandPool(
4843 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( m_commandPool ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
4846 m_commandPool =
nullptr;
4847 m_allocator =
nullptr;
4848 m_dispatcher =
nullptr;
4854 m_allocator =
nullptr;
4855 m_dispatcher =
nullptr;
4867 return m_dispatcher;
4873 std::swap( m_commandPool, rhs.m_commandPool );
4874 std::swap( m_allocator, rhs.m_allocator );
4875 std::swap( m_dispatcher, rhs.m_dispatcher );
4908 : m_device( *device ), m_commandPool( commandPool ), m_commandBuffer( commandBuffer ), m_dispatcher( device.getDispatcher() )
4944 return m_commandBuffer;
4949 if ( m_commandBuffer )
4951 getDispatcher()->vkFreeCommandBuffers(
4952 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( m_commandPool ), 1, reinterpret_cast<VkCommandBuffer const *>( &m_commandBuffer ) );
4955 m_commandPool =
nullptr;
4956 m_commandBuffer =
nullptr;
4957 m_dispatcher =
nullptr;
4963 m_commandPool =
nullptr;
4964 m_dispatcher =
nullptr;
4976 return m_dispatcher;
4982 std::swap( m_commandPool, rhs.m_commandPool );
4983 std::swap( m_commandBuffer, rhs.m_commandBuffer );
4984 std::swap( m_dispatcher, rhs.m_dispatcher );
4997 void setViewport( uint32_t firstViewport,
5004 void setDepthBias(
float depthBiasConstantFactor,
float depthBiasClamp,
float depthBiasSlopeFactor )
const VULKAN_HPP_NOEXCEPT;
5008 void setDepthBounds(
float minDepthBounds,
float maxDepthBounds )
const VULKAN_HPP_NOEXCEPT;
5026 void bindVertexBuffers( uint32_t firstBinding,
5030 void draw( uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance )
const VULKAN_HPP_NOEXCEPT;
5033 drawIndexed( uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance )
const VULKAN_HPP_NOEXCEPT;
5045 void dispatch( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ )
const VULKAN_HPP_NOEXCEPT;
5076 template <
typename DataType>
5140 uint32_t firstQuery,
5141 uint32_t queryCount,
5147 template <
typename ValuesType>
5158 void endRenderPass() const VULKAN_HPP_NOEXCEPT;
5164 void setDeviceMask( uint32_t deviceMask ) const VULKAN_HPP_NOEXCEPT;
5166 void dispatchBase( uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ ) const
5167 VULKAN_HPP_NOEXCEPT;
5175 uint32_t maxDrawCount,
5176 uint32_t
stride ) const VULKAN_HPP_NOEXCEPT;
5182 uint32_t maxDrawCount,
5183 uint32_t
stride ) const VULKAN_HPP_NOEXCEPT;
5222 void endRendering() const VULKAN_HPP_NOEXCEPT;
5234 void bindVertexBuffers2(
5235 uint32_t firstBinding,
5267 void debugMarkerEndEXT() const VULKAN_HPP_NOEXCEPT;
5271 # if defined( VK_ENABLE_BETA_EXTENSIONS )
5274 void beginVideoCodingKHR(
const VULKAN_HPP_NAMESPACE::VideoBeginCodingInfoKHR & beginInfo )
const VULKAN_HPP_NOEXCEPT;
5276 void endVideoCodingKHR(
const VULKAN_HPP_NAMESPACE::VideoEndCodingInfoKHR & endCodingInfo )
const VULKAN_HPP_NOEXCEPT;
5278 void controlVideoCodingKHR(
const VULKAN_HPP_NAMESPACE::VideoCodingControlInfoKHR & codingControlInfo )
const VULKAN_HPP_NOEXCEPT;
5281 # if defined( VK_ENABLE_BETA_EXTENSIONS )
5284 void decodeVideoKHR(
const VULKAN_HPP_NAMESPACE::VideoDecodeInfoKHR & decodeInfo )
const VULKAN_HPP_NOEXCEPT;
5289 void bindTransformFeedbackBuffersEXT( uint32_t firstBinding,
5293 VULKAN_HPP_DEFAULT_ARGUMENT_NULLPTR_ASSIGNMENT )
const;
5295 void beginTransformFeedbackEXT( uint32_t firstCounterBuffer,
5298 VULKAN_HPP_DEFAULT_ARGUMENT_NULLPTR_ASSIGNMENT )
const;
5300 void endTransformFeedbackEXT( uint32_t firstCounterBuffer,
5303 VULKAN_HPP_DEFAULT_ARGUMENT_NULLPTR_ASSIGNMENT )
const;
5312 void drawIndirectByteCountEXT( uint32_t instanceCount,
5313 uint32_t firstInstance,
5316 uint32_t counterOffset,
5329 uint32_t maxDrawCount,
5336 uint32_t maxDrawCount,
5343 void endRenderingKHR() const VULKAN_HPP_NOEXCEPT;
5347 void setDeviceMaskKHR( uint32_t deviceMask ) const VULKAN_HPP_NOEXCEPT;
5349 void dispatchBaseKHR( uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ )
5350 const VULKAN_HPP_NOEXCEPT;
5358 VULKAN_HPP_NOEXCEPT;
5370 void endConditionalRenderingEXT() const VULKAN_HPP_NOEXCEPT;
5374 void setViewportWScalingNV( uint32_t firstViewport,
5376 VULKAN_HPP_NOEXCEPT;
5380 void setDiscardRectangleEXT( uint32_t firstDiscardRectangle,
5397 void endDebugUtilsLabelEXT() const VULKAN_HPP_NOEXCEPT;
5407 void buildAccelerationStructuresKHR(
5411 void buildAccelerationStructuresIndirectKHR(
5423 void writeAccelerationStructuresPropertiesKHR(
5427 uint32_t firstQuery ) const VULKAN_HPP_NOEXCEPT;
5433 void setViewportShadingRatePaletteNV(
5434 uint32_t firstViewport,
5439 VULKAN_HPP_NOEXCEPT;
5469 uint32_t
depth ) const VULKAN_HPP_NOEXCEPT;
5471 void writeAccelerationStructuresPropertiesNV(
5475 uint32_t firstQuery ) const VULKAN_HPP_NOEXCEPT;
5483 uint32_t maxDrawCount,
5484 uint32_t
stride ) const VULKAN_HPP_NOEXCEPT;
5490 uint32_t maxDrawCount,
5491 uint32_t
stride ) const VULKAN_HPP_NOEXCEPT;
5498 uint32_t marker ) const VULKAN_HPP_NOEXCEPT;
5502 void drawMeshTasksNV( uint32_t taskCount, uint32_t firstTask ) const VULKAN_HPP_NOEXCEPT;
5507 uint32_t
stride ) const VULKAN_HPP_NOEXCEPT;
5513 uint32_t maxDrawCount,
5514 uint32_t
stride ) const VULKAN_HPP_NOEXCEPT;
5518 void setExclusiveScissorNV( uint32_t firstExclusiveScissor,
5523 template <typename CheckpointMarkerType>
5524 void setCheckpointNV( CheckpointMarkerType const & checkpointMarker ) const VULKAN_HPP_NOEXCEPT;
5541 void setLineStippleEXT( uint32_t lineStippleFactor, uint16_t lineStipplePattern ) const VULKAN_HPP_NOEXCEPT;
5555 void bindVertexBuffers2EXT(
5556 uint32_t firstBinding,
5587 uint32_t groupIndex ) const VULKAN_HPP_NOEXCEPT;
5589 # if defined( VK_ENABLE_BETA_EXTENSIONS )
5592 void encodeVideoKHR(
const VULKAN_HPP_NAMESPACE::VideoEncodeInfoKHR & encodeInfo )
const VULKAN_HPP_NOEXCEPT;
5638 void drawMeshTasksEXT( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ )
const VULKAN_HPP_NOEXCEPT;
5649 uint32_t maxDrawCount,
5682 void setRayTracingPipelineStackSizeKHR( uint32_t pipelineStackSize )
const VULKAN_HPP_NOEXCEPT;
5692 void subpassShadingHUAWEI() const VULKAN_HPP_NOEXCEPT;
5700 void setPatchControlPointsEXT( uint32_t patchControlPoints ) const VULKAN_HPP_NOEXCEPT;
5721 uint32_t instanceCount,
5722 uint32_t firstInstance ) const VULKAN_HPP_NOEXCEPT;
5725 uint32_t instanceCount,
5726 uint32_t firstInstance,
5727 Optional<const int32_t> vertexOffset VULKAN_HPP_DEFAULT_ARGUMENT_NULLPTR_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
5742 uint32_t firstQuery ) const VULKAN_HPP_NOEXCEPT;
5753 VULKAN_HPP_NOEXCEPT;
5758 VULKAN_HPP_NOEXCEPT;
5762 uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
5783 void setColorBlendEnableEXT( uint32_t firstAttachment,
5786 void setColorBlendEquationEXT( uint32_t firstAttachment,
5788 VULKAN_HPP_NOEXCEPT;
5790 void setColorWriteMaskEXT( uint32_t firstAttachment,
5792 VULKAN_HPP_NOEXCEPT;
5794 void setRasterizationStreamEXT( uint32_t rasterizationStream ) const VULKAN_HPP_NOEXCEPT;
5799 void setExtraPrimitiveOverestimationSizeEXT(
float extraPrimitiveOverestimationSize ) const VULKAN_HPP_NOEXCEPT;
5805 void setColorBlendAdvancedEXT( uint32_t firstAttachment,
5807 VULKAN_HPP_NOEXCEPT;
5819 void setViewportSwizzleNV( uint32_t firstViewport,
5821 VULKAN_HPP_NOEXCEPT;
5825 void setCoverageToColorLocationNV( uint32_t coverageToColorLocation ) const VULKAN_HPP_NOEXCEPT;
5829 void setCoverageModulationTableEnableNV(
VULKAN_HPP_NAMESPACE::
Bool32 coverageModulationTableEnable ) const VULKAN_HPP_NOEXCEPT;
5835 void setRepresentativeFragmentTestEnableNV(
VULKAN_HPP_NAMESPACE::
Bool32 representativeFragmentTestEnable ) const VULKAN_HPP_NOEXCEPT;
5851 class CommandBuffers :
public std::vector<VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::CommandBuffer>
5860 static_cast<VkDevice>( *device ), reinterpret_cast<const VkCommandBufferAllocateInfo *>( &allocateInfo ), commandBuffers.data() ) );
5864 for (
auto const & commandBuffer : commandBuffers )
5866 this->emplace_back( device, commandBuffer, static_cast<VkCommandPool>( allocateInfo.
commandPool ) );
5871 throwResultException( result,
"vkAllocateCommandBuffers" );
5897 : m_device( *device )
5899 , m_dispatcher( device.getDispatcher() )
5903 reinterpret_cast<const VkCuFunctionCreateInfoNVX *>( &createInfo ),
5904 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
5905 reinterpret_cast<VkCuFunctionNVX *>( &m_function ) ) );
5908 throwResultException( result,
"vkCreateCuFunctionNVX" );
5913 VkCuFunctionNVX
function,
5915 : m_device( *device )
5916 , m_function( function )
5918 , m_dispatcher( device.getDispatcher() )
5961 getDispatcher()->vkDestroyCuFunctionNVX(
5962 static_cast<VkDevice>( m_device ), static_cast<VkCuFunctionNVX>( m_function ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
5965 m_function =
nullptr;
5966 m_allocator =
nullptr;
5967 m_dispatcher =
nullptr;
5973 m_allocator =
nullptr;
5974 m_dispatcher =
nullptr;
5986 return m_dispatcher;
5992 std::swap( m_function, rhs.m_function );
5993 std::swap( m_allocator, rhs.m_allocator );
5994 std::swap( m_dispatcher, rhs.m_dispatcher );
6017 : m_device( *device )
6019 , m_dispatcher( device.getDispatcher() )
6023 reinterpret_cast<const VkCuModuleCreateInfoNVX *>( &createInfo ),
6024 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
6025 reinterpret_cast<VkCuModuleNVX *>( &m_module ) ) );
6028 throwResultException( result,
"vkCreateCuModuleNVX" );
6033 VkCuModuleNVX module,
6035 : m_device( *device )
6036 , m_module( module )
6038 , m_dispatcher( device.getDispatcher() )
6081 getDispatcher()->vkDestroyCuModuleNVX(
6082 static_cast<VkDevice>( m_device ), static_cast<VkCuModuleNVX>( m_module ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
6086 m_allocator =
nullptr;
6087 m_dispatcher =
nullptr;
6093 m_allocator =
nullptr;
6094 m_dispatcher =
nullptr;
6106 return m_dispatcher;
6113 std::swap( m_allocator, rhs.m_allocator );
6114 std::swap( m_dispatcher, rhs.m_dispatcher );
6137 : m_instance( *instance )
6139 , m_dispatcher( instance.getDispatcher() )
6143 reinterpret_cast<const VkDebugReportCallbackCreateInfoEXT *>( &createInfo ),
6144 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
6145 reinterpret_cast<VkDebugReportCallbackEXT *>( &m_callback ) ) );
6148 throwResultException( result,
"vkCreateDebugReportCallbackEXT" );
6153 VkDebugReportCallbackEXT callback,
6155 : m_instance( *instance )
6156 , m_callback( callback )
6158 , m_dispatcher( instance.getDispatcher() )
6201 getDispatcher()->vkDestroyDebugReportCallbackEXT( static_cast<VkInstance>( m_instance ),
6202 static_cast<VkDebugReportCallbackEXT>( m_callback ),
6203 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
6205 m_instance =
nullptr;
6206 m_callback =
nullptr;
6207 m_allocator =
nullptr;
6208 m_dispatcher =
nullptr;
6213 m_instance =
nullptr;
6214 m_allocator =
nullptr;
6215 m_dispatcher =
nullptr;
6227 return m_dispatcher;
6232 std::swap( m_instance, rhs.m_instance );
6233 std::swap( m_callback, rhs.m_callback );
6234 std::swap( m_allocator, rhs.m_allocator );
6235 std::swap( m_dispatcher, rhs.m_dispatcher );
6258 : m_instance( *instance )
6260 , m_dispatcher( instance.getDispatcher() )
6264 reinterpret_cast<const VkDebugUtilsMessengerCreateInfoEXT *>( &createInfo ),
6265 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
6266 reinterpret_cast<VkDebugUtilsMessengerEXT *>( &m_messenger ) ) );
6269 throwResultException( result,
"vkCreateDebugUtilsMessengerEXT" );
6274 VkDebugUtilsMessengerEXT messenger,
6276 : m_instance( *instance )
6277 , m_messenger( messenger )
6279 , m_dispatcher( instance.getDispatcher() )
6322 getDispatcher()->vkDestroyDebugUtilsMessengerEXT( static_cast<VkInstance>( m_instance ),
6323 static_cast<VkDebugUtilsMessengerEXT>( m_messenger ),
6324 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
6326 m_instance =
nullptr;
6327 m_messenger =
nullptr;
6328 m_allocator =
nullptr;
6329 m_dispatcher =
nullptr;
6334 m_instance =
nullptr;
6335 m_allocator =
nullptr;
6336 m_dispatcher =
nullptr;
6348 return m_dispatcher;
6353 std::swap( m_instance, rhs.m_instance );
6354 std::swap( m_messenger, rhs.m_messenger );
6355 std::swap( m_allocator, rhs.m_allocator );
6356 std::swap( m_dispatcher, rhs.m_dispatcher );
6378 : m_device( *device )
6380 , m_dispatcher( device.getDispatcher() )
6384 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
6385 reinterpret_cast<VkDeferredOperationKHR *>( &m_operation ) ) );
6388 throwResultException( result,
"vkCreateDeferredOperationKHR" );
6393 VkDeferredOperationKHR operation,
6395 : m_device( *device )
6396 , m_operation( operation )
6398 , m_dispatcher( device.getDispatcher() )
6441 getDispatcher()->vkDestroyDeferredOperationKHR( static_cast<VkDevice>( m_device ),
6442 static_cast<VkDeferredOperationKHR>( m_operation ),
6443 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
6446 m_operation =
nullptr;
6447 m_allocator =
nullptr;
6448 m_dispatcher =
nullptr;
6454 m_allocator =
nullptr;
6455 m_dispatcher =
nullptr;
6467 return m_dispatcher;
6473 std::swap( m_operation, rhs.m_operation );
6474 std::swap( m_allocator, rhs.m_allocator );
6475 std::swap( m_dispatcher, rhs.m_dispatcher );
6506 : m_device( *device )
6508 , m_dispatcher( device.getDispatcher() )
6512 reinterpret_cast<const VkDescriptorPoolCreateInfo *>( &createInfo ),
6513 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
6514 reinterpret_cast<VkDescriptorPool *>( &m_descriptorPool ) ) );
6517 throwResultException( result,
"vkCreateDescriptorPool" );
6522 VkDescriptorPool descriptorPool,
6524 : m_device( *device )
6525 , m_descriptorPool( descriptorPool )
6527 , m_dispatcher( device.getDispatcher() )
6563 return m_descriptorPool;
6568 if ( m_descriptorPool )
6570 getDispatcher()->vkDestroyDescriptorPool( static_cast<VkDevice>( m_device ),
6571 static_cast<VkDescriptorPool>( m_descriptorPool ),
6572 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
6575 m_descriptorPool =
nullptr;
6576 m_allocator =
nullptr;
6577 m_dispatcher =
nullptr;
6583 m_allocator =
nullptr;
6584 m_dispatcher =
nullptr;
6596 return m_dispatcher;
6602 std::swap( m_descriptorPool, rhs.m_descriptorPool );
6603 std::swap( m_allocator, rhs.m_allocator );
6604 std::swap( m_dispatcher, rhs.m_dispatcher );
6629 : m_device( *device ), m_descriptorPool( descriptorPool ), m_descriptorSet( descriptorSet ), m_dispatcher( device.getDispatcher() )
6665 return m_descriptorSet;
6670 if ( m_descriptorSet )
6672 getDispatcher()->vkFreeDescriptorSets( static_cast<VkDevice>( m_device ),
6673 static_cast<VkDescriptorPool>( m_descriptorPool ),
6675 reinterpret_cast<VkDescriptorSet const *>( &m_descriptorSet ) );
6678 m_descriptorPool =
nullptr;
6679 m_descriptorSet =
nullptr;
6680 m_dispatcher =
nullptr;
6686 m_descriptorPool =
nullptr;
6687 m_dispatcher =
nullptr;
6699 return m_dispatcher;
6705 std::swap( m_descriptorPool, rhs.m_descriptorPool );
6706 std::swap( m_descriptorSet, rhs.m_descriptorSet );
6707 std::swap( m_dispatcher, rhs.m_dispatcher );
6712 template <
typename DataType>
6717 template <
typename DataType>
6731 class DescriptorSets :
public std::vector<VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::DescriptorSet>
6740 static_cast<VkDevice>( *device ), reinterpret_cast<const VkDescriptorSetAllocateInfo *>( &allocateInfo ), descriptorSets.data() ) );
6744 for (
auto const & descriptorSet : descriptorSets )
6746 this->emplace_back( device, descriptorSet, static_cast<VkDescriptorPool>( allocateInfo.
descriptorPool ) );
6751 throwResultException( result,
"vkAllocateDescriptorSets" );
6777 : m_device( *device )
6779 , m_dispatcher( device.getDispatcher() )
6783 reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( &createInfo ),
6784 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
6785 reinterpret_cast<VkDescriptorSetLayout *>( &m_descriptorSetLayout ) ) );
6788 throwResultException( result,
"vkCreateDescriptorSetLayout" );
6793 VkDescriptorSetLayout descriptorSetLayout,
6795 : m_device( *device )
6796 , m_descriptorSetLayout( descriptorSetLayout )
6798 , m_dispatcher( device.getDispatcher() )
6834 return m_descriptorSetLayout;
6839 if ( m_descriptorSetLayout )
6841 getDispatcher()->vkDestroyDescriptorSetLayout( static_cast<VkDevice>( m_device ),
6842 static_cast<VkDescriptorSetLayout>( m_descriptorSetLayout ),
6843 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
6846 m_descriptorSetLayout =
nullptr;
6847 m_allocator =
nullptr;
6848 m_dispatcher =
nullptr;
6854 m_allocator =
nullptr;
6855 m_dispatcher =
nullptr;
6867 return m_dispatcher;
6873 std::swap( m_descriptorSetLayout, rhs.m_descriptorSetLayout );
6874 std::swap( m_allocator, rhs.m_allocator );
6875 std::swap( m_dispatcher, rhs.m_dispatcher );
6894 using CType = VkDescriptorUpdateTemplate;
6904 : m_device( *device )
6906 , m_dispatcher( device.getDispatcher() )
6910 reinterpret_cast<const VkDescriptorUpdateTemplateCreateInfo *>( &createInfo ),
6911 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
6912 reinterpret_cast<VkDescriptorUpdateTemplate *>( &m_descriptorUpdateTemplate ) ) );
6915 throwResultException( result,
"vkCreateDescriptorUpdateTemplate" );
6920 VkDescriptorUpdateTemplate descriptorUpdateTemplate,
6922 : m_device( *device )
6923 , m_descriptorUpdateTemplate( descriptorUpdateTemplate )
6925 , m_dispatcher( device.getDispatcher() )
6961 return m_descriptorUpdateTemplate;
6966 if ( m_descriptorUpdateTemplate )
6968 getDispatcher()->vkDestroyDescriptorUpdateTemplate( static_cast<VkDevice>( m_device ),
6969 static_cast<VkDescriptorUpdateTemplate>( m_descriptorUpdateTemplate ),
6970 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
6973 m_descriptorUpdateTemplate =
nullptr;
6974 m_allocator =
nullptr;
6975 m_dispatcher =
nullptr;
6981 m_allocator =
nullptr;
6982 m_dispatcher =
nullptr;
6994 return m_dispatcher;
7000 std::swap( m_descriptorUpdateTemplate, rhs.m_descriptorUpdateTemplate );
7001 std::swap( m_allocator, rhs.m_allocator );
7002 std::swap( m_dispatcher, rhs.m_dispatcher );
7025 : m_device( *device )
7027 , m_dispatcher( device.getDispatcher() )
7031 reinterpret_cast<const VkMemoryAllocateInfo *>( &allocateInfo ),
7032 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
7033 reinterpret_cast<VkDeviceMemory *>( &m_memory ) ) );
7036 throwResultException( result,
"vkAllocateMemory" );
7043 : m_device( *device )
7044 , m_memory( memory )
7046 , m_dispatcher( device.getDispatcher() )
7089 getDispatcher()->vkFreeMemory(
7090 static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( m_memory ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
7094 m_allocator =
nullptr;
7095 m_dispatcher =
nullptr;
7101 m_allocator =
nullptr;
7102 m_dispatcher =
nullptr;
7114 return m_dispatcher;
7121 std::swap( m_allocator, rhs.m_allocator );
7122 std::swap( m_dispatcher, rhs.m_dispatcher );
7135 # if defined( VK_USE_PLATFORM_WIN32_KHR )
7163 : m_physicalDevice( *physicalDevice ), m_dispatcher( physicalDevice.getDispatcher() )
7166 static_cast<VkPhysicalDevice>( *physicalDevice ), drmFd, connectorId, reinterpret_cast<VkDisplayKHR *>( &m_display ) ) );
7169 throwResultException( result,
"vkGetDrmDisplayEXT" );
7173 # if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT )
7175 : m_physicalDevice( *physicalDevice ), m_dispatcher( physicalDevice.getDispatcher() )
7178 static_cast<VkPhysicalDevice>( *physicalDevice ), &dpy, rrOutput, reinterpret_cast<VkDisplayKHR *>( &m_display ) ) );
7181 throwResultException( result,
"vkGetRandROutputDisplayEXT" );
7186 # if defined( VK_USE_PLATFORM_WIN32_KHR )
7188 : m_physicalDevice( *physicalDevice ), m_dispatcher( physicalDevice.getDispatcher() )
7191 static_cast<VkPhysicalDevice>( *physicalDevice ), deviceRelativeId, reinterpret_cast<VkDisplayKHR *>( &m_display ) ) );
7194 throwResultException( result,
"vkGetWinrtDisplayNV" );
7200 : m_physicalDevice( *physicalDevice ), m_display( display ), m_dispatcher( physicalDevice.getDispatcher() )
7241 getDispatcher()->vkReleaseDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( m_display ) );
7243 m_physicalDevice =
nullptr;
7244 m_display =
nullptr;
7245 m_dispatcher =
nullptr;
7250 m_physicalDevice =
nullptr;
7251 m_dispatcher =
nullptr;
7257 return m_physicalDevice;
7263 return m_dispatcher;
7268 std::swap( m_physicalDevice, rhs.m_physicalDevice );
7270 std::swap( m_dispatcher, rhs.m_dispatcher );
7275 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::DisplayModePropertiesKHR> getModeProperties()
const;
7283 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::DisplayModeProperties2KHR> getModeProperties2()
const;
7285 # if defined( VK_USE_PLATFORM_WIN32_KHR )
7288 void acquireWinrtNV()
const;
7297 class DisplayKHRs :
public std::vector<VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::DisplayKHR>
7303 std::vector<VkDisplayKHR> displays;
7304 uint32_t displayCount;
7312 displays.resize( displayCount );
7314 static_cast<VkPhysicalDevice>( *physicalDevice ), planeIndex, &displayCount, displays.data() ) );
7320 this->
reserve( displayCount );
7321 for (
auto const & displayKHR : displays )
7323 this->emplace_back( physicalDevice, displayKHR );
7328 throwResultException( result,
"vkGetDisplayPlaneSupportedDisplaysKHR" );
7354 : m_physicalDevice( display.getPhysicalDevice() ), m_dispatcher( display.getDispatcher() )
7358 static_cast<VkDisplayKHR>( *display ),
7360 reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ),
7361 reinterpret_cast<VkDisplayModeKHR *>( &m_displayModeKHR ) ) );
7364 throwResultException( result,
"vkCreateDisplayModeKHR" );
7369 : m_physicalDevice( display.getPhysicalDevice() ), m_displayModeKHR( displayModeKHR ), m_dispatcher( display.getDispatcher() )
7390 m_displayModeKHR = rhs.m_displayModeKHR;
7391 m_dispatcher = rhs.m_dispatcher;
7407 return m_displayModeKHR;
7412 m_physicalDevice =
nullptr;
7413 m_displayModeKHR =
nullptr;
7414 m_dispatcher =
nullptr;
7419 m_physicalDevice =
nullptr;
7420 m_dispatcher =
nullptr;
7427 return m_dispatcher;
7432 std::swap( m_physicalDevice, rhs.m_physicalDevice );
7433 std::swap( m_displayModeKHR, rhs.m_displayModeKHR );
7434 std::swap( m_dispatcher, rhs.m_dispatcher );
7460 : m_device( *device )
7462 , m_dispatcher( device.getDispatcher() )
7466 reinterpret_cast<const VkEventCreateInfo *>( &createInfo ),
7467 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
7468 reinterpret_cast<VkEvent *>( &m_event ) ) );
7471 throwResultException( result,
"vkCreateEvent" );
7478 : m_device( *device )
7481 , m_dispatcher( device.getDispatcher() )
7524 getDispatcher()->vkDestroyEvent(
7525 static_cast<VkDevice>( m_device ), static_cast<VkEvent>( m_event ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
7529 m_allocator =
nullptr;
7530 m_dispatcher =
nullptr;
7536 m_allocator =
nullptr;
7537 m_dispatcher =
nullptr;
7549 return m_dispatcher;
7556 std::swap( m_allocator, rhs.m_allocator );
7557 std::swap( m_dispatcher, rhs.m_dispatcher );
7588 : m_device( *device )
7590 , m_dispatcher( device.getDispatcher() )
7594 reinterpret_cast<const VkFenceCreateInfo *>( &createInfo ),
7595 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
7596 reinterpret_cast<VkFence *>( &m_fence ) ) );
7599 throwResultException( result,
"vkCreateFence" );
7606 : m_device( *device )
7608 , m_dispatcher( device.getDispatcher() )
7612 reinterpret_cast<const VkDeviceEventInfoEXT *>( &deviceEventInfo ),
7613 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
7614 reinterpret_cast<VkFence *>( &m_fence ) ) );
7617 throwResultException( result,
"vkRegisterDeviceEventEXT" );
7625 : m_device( *device )
7627 , m_dispatcher( device.getDispatcher() )
7631 static_cast<VkDisplayKHR>( *display ),
7632 reinterpret_cast<const VkDisplayEventInfoEXT *>( &displayEventInfo ),
7633 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
7634 reinterpret_cast<VkFence *>( &m_fence ) ) );
7637 throwResultException( result,
"vkRegisterDisplayEventEXT" );
7644 : m_device( *device )
7647 , m_dispatcher( device.getDispatcher() )
7690 getDispatcher()->vkDestroyFence(
7691 static_cast<VkDevice>( m_device ), static_cast<VkFence>( m_fence ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
7695 m_allocator =
nullptr;
7696 m_dispatcher =
nullptr;
7702 m_allocator =
nullptr;
7703 m_dispatcher =
nullptr;
7715 return m_dispatcher;
7722 std::swap( m_allocator, rhs.m_allocator );
7723 std::swap( m_dispatcher, rhs.m_dispatcher );
7750 : m_device( *device )
7752 , m_dispatcher( device.getDispatcher() )
7756 reinterpret_cast<const VkFramebufferCreateInfo *>( &createInfo ),
7757 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
7758 reinterpret_cast<VkFramebuffer *>( &m_framebuffer ) ) );
7761 throwResultException( result,
"vkCreateFramebuffer" );
7768 : m_device( *device )
7769 , m_framebuffer( framebuffer )
7771 , m_dispatcher( device.getDispatcher() )
7807 return m_framebuffer;
7812 if ( m_framebuffer )
7814 getDispatcher()->vkDestroyFramebuffer(
7815 static_cast<VkDevice>( m_device ), static_cast<VkFramebuffer>( m_framebuffer ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
7818 m_framebuffer =
nullptr;
7819 m_allocator =
nullptr;
7820 m_dispatcher =
nullptr;
7826 m_allocator =
nullptr;
7827 m_dispatcher =
nullptr;
7839 return m_dispatcher;
7845 std::swap( m_framebuffer, rhs.m_framebuffer );
7846 std::swap( m_allocator, rhs.m_allocator );
7847 std::swap( m_dispatcher, rhs.m_dispatcher );
7852 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::TilePropertiesQCOM> getTilePropertiesQCOM()
const;
7874 : m_device( *device )
7876 , m_dispatcher( device.getDispatcher() )
7880 reinterpret_cast<const VkImageCreateInfo *>( &createInfo ),
7881 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
7882 reinterpret_cast<VkImage *>( &m_image ) ) );
7885 throwResultException( result,
"vkCreateImage" );
7892 : m_device( *device )
7895 , m_dispatcher( device.getDispatcher() )
7938 getDispatcher()->vkDestroyImage(
7939 static_cast<VkDevice>( m_device ), static_cast<VkImage>( m_image ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
7943 m_allocator =
nullptr;
7944 m_dispatcher =
nullptr;
7950 m_allocator =
nullptr;
7951 m_dispatcher =
nullptr;
7963 return m_dispatcher;
7970 std::swap( m_allocator, rhs.m_allocator );
7971 std::swap( m_dispatcher, rhs.m_dispatcher );
7994 template <typename
X, typename
Y, typename...
Z>
8018 : m_device( *device )
8020 , m_dispatcher( device.getDispatcher() )
8024 reinterpret_cast<const VkImageViewCreateInfo *>( &createInfo ),
8025 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
8026 reinterpret_cast<VkImageView *>( &m_imageView ) ) );
8029 throwResultException( result,
"vkCreateImageView" );
8034 VkImageView imageView,
8036 : m_device( *device )
8037 , m_imageView( imageView )
8039 , m_dispatcher( device.getDispatcher() )
8082 getDispatcher()->vkDestroyImageView(
8083 static_cast<VkDevice>( m_device ), static_cast<VkImageView>( m_imageView ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
8086 m_imageView =
nullptr;
8087 m_allocator =
nullptr;
8088 m_dispatcher =
nullptr;
8094 m_allocator =
nullptr;
8095 m_dispatcher =
nullptr;
8107 return m_dispatcher;
8113 std::swap( m_imageView, rhs.m_imageView );
8114 std::swap( m_allocator, rhs.m_allocator );
8115 std::swap( m_dispatcher, rhs.m_dispatcher );
8132 using CType = VkIndirectCommandsLayoutNV;
8142 : m_device( *device )
8144 , m_dispatcher( device.getDispatcher() )
8148 reinterpret_cast<const VkIndirectCommandsLayoutCreateInfoNV *>( &createInfo ),
8149 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
8150 reinterpret_cast<VkIndirectCommandsLayoutNV *>( &m_indirectCommandsLayout ) ) );
8153 throwResultException( result,
"vkCreateIndirectCommandsLayoutNV" );
8158 VkIndirectCommandsLayoutNV indirectCommandsLayout,
8160 : m_device( *device )
8161 , m_indirectCommandsLayout( indirectCommandsLayout )
8163 , m_dispatcher( device.getDispatcher() )
8199 return m_indirectCommandsLayout;
8204 if ( m_indirectCommandsLayout )
8206 getDispatcher()->vkDestroyIndirectCommandsLayoutNV( static_cast<VkDevice>( m_device ),
8207 static_cast<VkIndirectCommandsLayoutNV>( m_indirectCommandsLayout ),
8208 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
8211 m_indirectCommandsLayout =
nullptr;
8212 m_allocator =
nullptr;
8213 m_dispatcher =
nullptr;
8219 m_allocator =
nullptr;
8220 m_dispatcher =
nullptr;
8232 return m_dispatcher;
8238 std::swap( m_indirectCommandsLayout, rhs.m_indirectCommandsLayout );
8239 std::swap( m_allocator, rhs.m_allocator );
8240 std::swap( m_dispatcher, rhs.m_dispatcher );
8263 : m_device( *device )
8265 , m_dispatcher( device.getDispatcher() )
8269 reinterpret_cast<const VkMicromapCreateInfoEXT *>( &createInfo ),
8270 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
8271 reinterpret_cast<VkMicromapEXT *>( &m_micromap ) ) );
8274 throwResultException( result,
"vkCreateMicromapEXT" );
8279 VkMicromapEXT micromap,
8281 : m_device( *device )
8282 , m_micromap( micromap )
8284 , m_dispatcher( device.getDispatcher() )
8327 getDispatcher()->vkDestroyMicromapEXT(
8328 static_cast<VkDevice>( m_device ), static_cast<VkMicromapEXT>( m_micromap ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
8331 m_micromap =
nullptr;
8332 m_allocator =
nullptr;
8333 m_dispatcher =
nullptr;
8339 m_allocator =
nullptr;
8340 m_dispatcher =
nullptr;
8352 return m_dispatcher;
8358 std::swap( m_micromap, rhs.m_micromap );
8359 std::swap( m_allocator, rhs.m_allocator );
8360 std::swap( m_dispatcher, rhs.m_dispatcher );
8383 : m_device( *device )
8385 , m_dispatcher( device.getDispatcher() )
8389 reinterpret_cast<const VkOpticalFlowSessionCreateInfoNV *>( &createInfo ),
8390 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
8391 reinterpret_cast<VkOpticalFlowSessionNV *>( &m_session ) ) );
8394 throwResultException( result,
"vkCreateOpticalFlowSessionNV" );
8399 VkOpticalFlowSessionNV session,
8401 : m_device( *device )
8402 , m_session( session )
8404 , m_dispatcher( device.getDispatcher() )
8447 getDispatcher()->vkDestroyOpticalFlowSessionNV( static_cast<VkDevice>( m_device ),
8448 static_cast<VkOpticalFlowSessionNV>( m_session ),
8449 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
8452 m_session =
nullptr;
8453 m_allocator =
nullptr;
8454 m_dispatcher =
nullptr;
8460 m_allocator =
nullptr;
8461 m_dispatcher =
nullptr;
8473 return m_dispatcher;
8480 std::swap( m_allocator, rhs.m_allocator );
8481 std::swap( m_dispatcher, rhs.m_dispatcher );
8500 using CType = VkPerformanceConfigurationINTEL;
8509 : m_device( *device ), m_dispatcher( device.getDispatcher() )
8513 reinterpret_cast<const VkPerformanceConfigurationAcquireInfoINTEL *>( &acquireInfo ),
8514 reinterpret_cast<VkPerformanceConfigurationINTEL *>( &m_configuration ) ) );
8517 throwResultException( result,
"vkAcquirePerformanceConfigurationINTEL" );
8522 : m_device( *device ), m_configuration( configuration ), m_dispatcher( device.getDispatcher() )
8556 return m_configuration;
8561 if ( m_configuration )
8563 getDispatcher()->vkReleasePerformanceConfigurationINTEL( static_cast<VkDevice>( m_device ),
8564 static_cast<VkPerformanceConfigurationINTEL>( m_configuration ) );
8567 m_configuration =
nullptr;
8568 m_dispatcher =
nullptr;
8574 m_dispatcher =
nullptr;
8586 return m_dispatcher;
8592 std::swap( m_configuration, rhs.m_configuration );
8593 std::swap( m_dispatcher, rhs.m_dispatcher );
8615 : m_device( *device )
8617 , m_dispatcher( device.getDispatcher() )
8621 reinterpret_cast<const VkPipelineCacheCreateInfo *>( &createInfo ),
8622 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
8623 reinterpret_cast<VkPipelineCache *>( &m_pipelineCache ) ) );
8626 throwResultException( result,
"vkCreatePipelineCache" );
8631 VkPipelineCache pipelineCache,
8633 : m_device( *device )
8634 , m_pipelineCache( pipelineCache )
8636 , m_dispatcher( device.getDispatcher() )
8672 return m_pipelineCache;
8677 if ( m_pipelineCache )
8679 getDispatcher()->vkDestroyPipelineCache( static_cast<VkDevice>( m_device ),
8680 static_cast<VkPipelineCache>( m_pipelineCache ),
8681 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
8684 m_pipelineCache =
nullptr;
8685 m_allocator =
nullptr;
8686 m_dispatcher =
nullptr;
8692 m_allocator =
nullptr;
8693 m_dispatcher =
nullptr;
8705 return m_dispatcher;
8711 std::swap( m_pipelineCache, rhs.m_pipelineCache );
8712 std::swap( m_allocator, rhs.m_allocator );
8713 std::swap( m_dispatcher, rhs.m_dispatcher );
8743 : m_device( *device )
8745 , m_dispatcher( device.getDispatcher() )
8748 getDispatcher()->vkCreateComputePipelines( static_cast<VkDevice>( *device ),
8749 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
8751 reinterpret_cast<const VkComputePipelineCreateInfo *>( &createInfo ),
8752 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
8753 reinterpret_cast<VkPipeline *>( &m_pipeline ) ) );
8757 throwResultException( m_constructorSuccessCode,
"vkCreateComputePipelines" );
8765 : m_device( *device )
8767 , m_dispatcher( device.getDispatcher() )
8770 getDispatcher()->vkCreateGraphicsPipelines( static_cast<VkDevice>( *device ),
8771 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
8773 reinterpret_cast<const VkGraphicsPipelineCreateInfo *>( &createInfo ),
8774 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
8775 reinterpret_cast<VkPipeline *>( &m_pipeline ) ) );
8779 throwResultException( m_constructorSuccessCode,
"vkCreateGraphicsPipelines" );
8788 : m_device( *device )
8790 , m_dispatcher( device.getDispatcher() )
8793 getDispatcher()->vkCreateRayTracingPipelinesKHR( static_cast<VkDevice>( *device ),
8794 deferredOperation ? static_cast<VkDeferredOperationKHR>( **deferredOperation ) : 0,
8795 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
8797 reinterpret_cast<const VkRayTracingPipelineCreateInfoKHR *>( &createInfo ),
8798 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
8799 reinterpret_cast<VkPipeline *>( &m_pipeline ) ) );
8805 throwResultException( m_constructorSuccessCode,
"vkCreateRayTracingPipelinesKHR" );
8813 : m_device( *device )
8815 , m_dispatcher( device.getDispatcher() )
8818 getDispatcher()->vkCreateRayTracingPipelinesNV( static_cast<VkDevice>( *device ),
8819 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
8821 reinterpret_cast<const VkRayTracingPipelineCreateInfoNV *>( &createInfo ),
8822 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
8823 reinterpret_cast<VkPipeline *>( &m_pipeline ) ) );
8827 throwResultException( m_constructorSuccessCode,
"vkCreateRayTracingPipelinesNV" );
8832 VkPipeline pipeline,
8835 : m_device( *device )
8836 , m_pipeline( pipeline )
8838 , m_constructorSuccessCode( successCode )
8839 , m_dispatcher( device.getDispatcher() )
8884 getDispatcher()->vkDestroyPipeline(
8885 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( m_pipeline ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
8888 m_pipeline =
nullptr;
8889 m_allocator =
nullptr;
8891 m_dispatcher =
nullptr;
8897 m_allocator =
nullptr;
8899 m_dispatcher =
nullptr;
8905 return m_constructorSuccessCode;
8916 return m_dispatcher;
8922 std::swap( m_pipeline, rhs.m_pipeline );
8923 std::swap( m_allocator, rhs.m_allocator );
8924 std::swap( m_constructorSuccessCode, rhs.m_constructorSuccessCode );
8925 std::swap( m_dispatcher, rhs.m_dispatcher );
8935 template <
typename DataType>
8936 VULKAN_HPP_NODISCARD std::vector<DataType> getRayTracingShaderGroupHandlesNV( uint32_t firstGroup, uint32_t groupCount,
size_t dataSize )
const;
8938 template <
typename DataType>
8941 void compileDeferredNV( uint32_t
shader )
const;
8945 template <
typename DataType>
8946 VULKAN_HPP_NODISCARD std::vector<DataType> getRayTracingShaderGroupHandlesKHR( uint32_t firstGroup, uint32_t groupCount,
size_t dataSize )
const;
8948 template <
typename DataType>
8951 template <
typename DataType>
8953 getRayTracingCaptureReplayShaderGroupHandlesKHR( uint32_t firstGroup, uint32_t groupCount,
size_t dataSize )
const;
8955 template <
typename DataType>
8969 class Pipelines :
public std::vector<VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Pipeline>
8980 static_cast<VkDevice>( *device ),
8981 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
8984 reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ),
8989 for (
auto const & pipeline :
pipelines )
8991 this->emplace_back( device, pipeline, allocator, result );
8996 throwResultException( result,
"vkCreateComputePipelines" );
9008 static_cast<VkDevice>( *device ),
9009 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
9012 reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ),
9017 for (
auto const & pipeline :
pipelines )
9019 this->emplace_back( device, pipeline, allocator, result );
9024 throwResultException( result,
"vkCreateGraphicsPipelines" );
9037 static_cast<VkDevice>( *device ),
9038 deferredOperation ? static_cast<VkDeferredOperationKHR>( **deferredOperation ) : 0,
9039 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
9042 reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ),
9048 for (
auto const & pipeline :
pipelines )
9050 this->emplace_back( device, pipeline, allocator, result );
9055 throwResultException( result,
"vkCreateRayTracingPipelinesKHR" );
9067 static_cast<VkDevice>( *device ),
9068 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
9071 reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ),
9076 for (
auto const & pipeline :
pipelines )
9078 this->emplace_back( device, pipeline, allocator, result );
9083 throwResultException( result,
"vkCreateRayTracingPipelinesNV" );
9109 : m_device( *device )
9111 , m_dispatcher( device.getDispatcher() )
9115 reinterpret_cast<const VkPipelineLayoutCreateInfo *>( &createInfo ),
9116 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
9117 reinterpret_cast<VkPipelineLayout *>( &m_pipelineLayout ) ) );
9120 throwResultException( result,
"vkCreatePipelineLayout" );
9125 VkPipelineLayout pipelineLayout,
9127 : m_device( *device )
9128 , m_pipelineLayout( pipelineLayout )
9130 , m_dispatcher( device.getDispatcher() )
9166 return m_pipelineLayout;
9171 if ( m_pipelineLayout )
9173 getDispatcher()->vkDestroyPipelineLayout( static_cast<VkDevice>( m_device ),
9174 static_cast<VkPipelineLayout>( m_pipelineLayout ),
9175 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
9178 m_pipelineLayout =
nullptr;
9179 m_allocator =
nullptr;
9180 m_dispatcher =
nullptr;
9186 m_allocator =
nullptr;
9187 m_dispatcher =
nullptr;
9199 return m_dispatcher;
9205 std::swap( m_pipelineLayout, rhs.m_pipelineLayout );
9206 std::swap( m_allocator, rhs.m_allocator );
9207 std::swap( m_dispatcher, rhs.m_dispatcher );
9230 : m_device( *device )
9232 , m_dispatcher( device.getDispatcher() )
9236 reinterpret_cast<const VkPrivateDataSlotCreateInfo *>( &createInfo ),
9237 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
9238 reinterpret_cast<VkPrivateDataSlot *>( &m_privateDataSlot ) ) );
9241 throwResultException( result,
"vkCreatePrivateDataSlot" );
9246 VkPrivateDataSlot privateDataSlot,
9248 : m_device( *device )
9249 , m_privateDataSlot( privateDataSlot )
9251 , m_dispatcher( device.getDispatcher() )
9287 return m_privateDataSlot;
9292 if ( m_privateDataSlot )
9294 getDispatcher()->vkDestroyPrivateDataSlot( static_cast<VkDevice>( m_device ),
9295 static_cast<VkPrivateDataSlot>( m_privateDataSlot ),
9296 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
9299 m_privateDataSlot =
nullptr;
9300 m_allocator =
nullptr;
9301 m_dispatcher =
nullptr;
9307 m_allocator =
nullptr;
9308 m_dispatcher =
nullptr;
9320 return m_dispatcher;
9326 std::swap( m_privateDataSlot, rhs.m_privateDataSlot );
9327 std::swap( m_allocator, rhs.m_allocator );
9328 std::swap( m_dispatcher, rhs.m_dispatcher );
9351 : m_device( *device )
9353 , m_dispatcher( device.getDispatcher() )
9357 reinterpret_cast<const VkQueryPoolCreateInfo *>( &createInfo ),
9358 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
9359 reinterpret_cast<VkQueryPool *>( &m_queryPool ) ) );
9362 throwResultException( result,
"vkCreateQueryPool" );
9367 VkQueryPool queryPool,
9369 : m_device( *device )
9370 , m_queryPool( queryPool )
9372 , m_dispatcher( device.getDispatcher() )
9415 getDispatcher()->vkDestroyQueryPool(
9416 static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( m_queryPool ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
9419 m_queryPool =
nullptr;
9420 m_allocator =
nullptr;
9421 m_dispatcher =
nullptr;
9427 m_allocator =
nullptr;
9428 m_dispatcher =
nullptr;
9440 return m_dispatcher;
9446 std::swap( m_queryPool, rhs.m_queryPool );
9447 std::swap( m_allocator, rhs.m_allocator );
9448 std::swap( m_dispatcher, rhs.m_dispatcher );
9453 template <
typename DataType>
9455 getResults( uint32_t firstQuery,
9456 uint32_t queryCount,
9461 template <
typename DataType>
9463 getResult( uint32_t firstQuery,
9464 uint32_t queryCount,
9494 : m_dispatcher( device.getDispatcher() )
9496 getDispatcher()->
vkGetDeviceQueue( static_cast<VkDevice>( *device ), queueFamilyIndex, queueIndex, reinterpret_cast<VkQueue *>( &m_queue ) );
9500 : m_dispatcher( device.getDispatcher() )
9503 static_cast<VkDevice>( *device ), reinterpret_cast<const VkDeviceQueueInfo2 *>( &queueInfo ), reinterpret_cast<VkQueue *>( &m_queue ) );
9518 Queue(
Queue const & rhs ) : m_queue( rhs.m_queue ), m_dispatcher( rhs.m_dispatcher ) {}
9526 m_queue = rhs.m_queue;
9527 m_dispatcher = rhs.m_dispatcher;
9548 m_dispatcher =
nullptr;
9553 m_dispatcher =
nullptr;
9560 return m_dispatcher;
9566 std::swap( m_dispatcher, rhs.m_dispatcher );
9574 void waitIdle()
const;
9629 : m_device( *device )
9631 , m_dispatcher( device.getDispatcher() )
9635 reinterpret_cast<const VkRenderPassCreateInfo *>( &createInfo ),
9636 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
9637 reinterpret_cast<VkRenderPass *>( &m_renderPass ) ) );
9640 throwResultException( result,
"vkCreateRenderPass" );
9647 : m_device( *device )
9649 , m_dispatcher( device.getDispatcher() )
9653 reinterpret_cast<const VkRenderPassCreateInfo2 *>( &createInfo ),
9654 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
9655 reinterpret_cast<VkRenderPass *>( &m_renderPass ) ) );
9658 throwResultException( result,
"vkCreateRenderPass2" );
9663 VkRenderPass renderPass,
9665 : m_device( *device )
9666 , m_renderPass( renderPass )
9668 , m_dispatcher( device.getDispatcher() )
9704 return m_renderPass;
9711 getDispatcher()->vkDestroyRenderPass(
9712 static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( m_renderPass ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
9715 m_renderPass =
nullptr;
9716 m_allocator =
nullptr;
9717 m_dispatcher =
nullptr;
9723 m_allocator =
nullptr;
9724 m_dispatcher =
nullptr;
9736 return m_dispatcher;
9742 std::swap( m_renderPass, rhs.m_renderPass );
9743 std::swap( m_allocator, rhs.m_allocator );
9744 std::swap( m_dispatcher, rhs.m_dispatcher );
9775 : m_device( *device )
9777 , m_dispatcher( device.getDispatcher() )
9781 reinterpret_cast<const VkSamplerCreateInfo *>( &createInfo ),
9782 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
9783 reinterpret_cast<VkSampler *>( &m_sampler ) ) );
9786 throwResultException( result,
"vkCreateSampler" );
9793 : m_device( *device )
9794 , m_sampler( sampler )
9796 , m_dispatcher( device.getDispatcher() )
9839 getDispatcher()->vkDestroySampler(
9840 static_cast<VkDevice>( m_device ), static_cast<VkSampler>( m_sampler ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
9843 m_sampler =
nullptr;
9844 m_allocator =
nullptr;
9845 m_dispatcher =
nullptr;
9851 m_allocator =
nullptr;
9852 m_dispatcher =
nullptr;
9864 return m_dispatcher;
9871 std::swap( m_allocator, rhs.m_allocator );
9872 std::swap( m_dispatcher, rhs.m_dispatcher );
9895 : m_device( *device )
9897 , m_dispatcher( device.getDispatcher() )
9901 reinterpret_cast<const VkSamplerYcbcrConversionCreateInfo *>( &createInfo ),
9902 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
9903 reinterpret_cast<VkSamplerYcbcrConversion *>( &m_ycbcrConversion ) ) );
9906 throwResultException( result,
"vkCreateSamplerYcbcrConversion" );
9911 VkSamplerYcbcrConversion ycbcrConversion,
9913 : m_device( *device )
9914 , m_ycbcrConversion( ycbcrConversion )
9916 , m_dispatcher( device.getDispatcher() )
9952 return m_ycbcrConversion;
9957 if ( m_ycbcrConversion )
9959 getDispatcher()->vkDestroySamplerYcbcrConversion( static_cast<VkDevice>( m_device ),
9960 static_cast<VkSamplerYcbcrConversion>( m_ycbcrConversion ),
9961 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
9964 m_ycbcrConversion =
nullptr;
9965 m_allocator =
nullptr;
9966 m_dispatcher =
nullptr;
9972 m_allocator =
nullptr;
9973 m_dispatcher =
nullptr;
9985 return m_dispatcher;
9991 std::swap( m_ycbcrConversion, rhs.m_ycbcrConversion );
9992 std::swap( m_allocator, rhs.m_allocator );
9993 std::swap( m_dispatcher, rhs.m_dispatcher );
10016 : m_device( *device )
10018 , m_dispatcher( device.getDispatcher() )
10022 reinterpret_cast<const VkSemaphoreCreateInfo *>( &createInfo ),
10023 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10024 reinterpret_cast<VkSemaphore *>( &m_semaphore ) ) );
10027 throwResultException( result,
"vkCreateSemaphore" );
10032 VkSemaphore semaphore,
10034 : m_device( *device )
10035 , m_semaphore( semaphore )
10037 , m_dispatcher( device.getDispatcher() )
10060 if (
this != &rhs )
10073 return m_semaphore;
10080 getDispatcher()->vkDestroySemaphore(
10081 static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( m_semaphore ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
10083 m_device =
nullptr;
10084 m_semaphore =
nullptr;
10085 m_allocator =
nullptr;
10086 m_dispatcher =
nullptr;
10091 m_device =
nullptr;
10092 m_allocator =
nullptr;
10093 m_dispatcher =
nullptr;
10105 return m_dispatcher;
10111 std::swap( m_semaphore, rhs.m_semaphore );
10112 std::swap( m_allocator, rhs.m_allocator );
10113 std::swap( m_dispatcher, rhs.m_dispatcher );
10144 : m_device( *device )
10146 , m_dispatcher( device.getDispatcher() )
10150 reinterpret_cast<const VkShaderModuleCreateInfo *>( &createInfo ),
10151 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10152 reinterpret_cast<VkShaderModule *>( &m_shaderModule ) ) );
10155 throwResultException( result,
"vkCreateShaderModule" );
10160 VkShaderModule shaderModule,
10162 : m_device( *device )
10163 , m_shaderModule( shaderModule )
10165 , m_dispatcher( device.getDispatcher() )
10188 if (
this != &rhs )
10201 return m_shaderModule;
10206 if ( m_shaderModule )
10208 getDispatcher()->vkDestroyShaderModule(
10209 static_cast<VkDevice>( m_device ), static_cast<VkShaderModule>( m_shaderModule ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
10211 m_device =
nullptr;
10212 m_shaderModule =
nullptr;
10213 m_allocator =
nullptr;
10214 m_dispatcher =
nullptr;
10219 m_device =
nullptr;
10220 m_allocator =
nullptr;
10221 m_dispatcher =
nullptr;
10233 return m_dispatcher;
10239 std::swap( m_shaderModule, rhs.m_shaderModule );
10240 std::swap( m_allocator, rhs.m_allocator );
10241 std::swap( m_dispatcher, rhs.m_dispatcher );
10265 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
10267 VULKAN_HPP_NAMESPACE::AndroidSurfaceCreateInfoKHR
const & createInfo,
10269 : m_instance( *instance )
10271 , m_dispatcher( instance.getDispatcher() )
10274 instance.
getDispatcher()->vkCreateAndroidSurfaceKHR( static_cast<VkInstance>( *instance ),
10275 reinterpret_cast<const VkAndroidSurfaceCreateInfoKHR *>( &createInfo ),
10276 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10277 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10280 throwResultException( result,
"vkCreateAndroidSurfaceKHR" );
10285 # if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
10287 VULKAN_HPP_NAMESPACE::DirectFBSurfaceCreateInfoEXT
const & createInfo,
10289 : m_instance( *instance )
10291 , m_dispatcher( instance.getDispatcher() )
10294 instance.
getDispatcher()->vkCreateDirectFBSurfaceEXT( static_cast<VkInstance>( *instance ),
10295 reinterpret_cast<const VkDirectFBSurfaceCreateInfoEXT *>( &createInfo ),
10296 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10297 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10300 throwResultException( result,
"vkCreateDirectFBSurfaceEXT" );
10308 : m_instance( *instance )
10310 , m_dispatcher( instance.getDispatcher() )
10314 reinterpret_cast<const VkDisplaySurfaceCreateInfoKHR *>( &createInfo ),
10315 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10316 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10319 throwResultException( result,
"vkCreateDisplayPlaneSurfaceKHR" );
10326 : m_instance( *instance )
10328 , m_dispatcher( instance.getDispatcher() )
10332 reinterpret_cast<const VkHeadlessSurfaceCreateInfoEXT *>( &createInfo ),
10333 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10334 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10337 throwResultException( result,
"vkCreateHeadlessSurfaceEXT" );
10341 # if defined( VK_USE_PLATFORM_IOS_MVK )
10343 VULKAN_HPP_NAMESPACE::IOSSurfaceCreateInfoMVK
const & createInfo,
10345 : m_instance( *instance )
10347 , m_dispatcher( instance.getDispatcher() )
10350 instance.
getDispatcher()->vkCreateIOSSurfaceMVK( static_cast<VkInstance>( *instance ),
10351 reinterpret_cast<const VkIOSSurfaceCreateInfoMVK *>( &createInfo ),
10352 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10353 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10356 throwResultException( result,
"vkCreateIOSSurfaceMVK" );
10361 # if defined( VK_USE_PLATFORM_FUCHSIA )
10363 VULKAN_HPP_NAMESPACE::ImagePipeSurfaceCreateInfoFUCHSIA
const & createInfo,
10365 : m_instance( *instance )
10367 , m_dispatcher( instance.getDispatcher() )
10370 instance.
getDispatcher()->vkCreateImagePipeSurfaceFUCHSIA( static_cast<VkInstance>( *instance ),
10371 reinterpret_cast<const VkImagePipeSurfaceCreateInfoFUCHSIA *>( &createInfo ),
10372 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10373 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10376 throwResultException( result,
"vkCreateImagePipeSurfaceFUCHSIA" );
10381 # if defined( VK_USE_PLATFORM_MACOS_MVK )
10383 VULKAN_HPP_NAMESPACE::MacOSSurfaceCreateInfoMVK
const & createInfo,
10385 : m_instance( *instance )
10387 , m_dispatcher( instance.getDispatcher() )
10390 instance.
getDispatcher()->vkCreateMacOSSurfaceMVK( static_cast<VkInstance>( *instance ),
10391 reinterpret_cast<const VkMacOSSurfaceCreateInfoMVK *>( &createInfo ),
10392 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10393 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10396 throwResultException( result,
"vkCreateMacOSSurfaceMVK" );
10401 # if defined( VK_USE_PLATFORM_METAL_EXT )
10403 VULKAN_HPP_NAMESPACE::MetalSurfaceCreateInfoEXT
const & createInfo,
10405 : m_instance( *instance )
10407 , m_dispatcher( instance.getDispatcher() )
10410 instance.
getDispatcher()->vkCreateMetalSurfaceEXT( static_cast<VkInstance>( *instance ),
10411 reinterpret_cast<const VkMetalSurfaceCreateInfoEXT *>( &createInfo ),
10412 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10413 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10416 throwResultException( result,
"vkCreateMetalSurfaceEXT" );
10421 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
10423 VULKAN_HPP_NAMESPACE::ScreenSurfaceCreateInfoQNX
const & createInfo,
10425 : m_instance( *instance )
10427 , m_dispatcher( instance.getDispatcher() )
10430 instance.
getDispatcher()->vkCreateScreenSurfaceQNX( static_cast<VkInstance>( *instance ),
10431 reinterpret_cast<const VkScreenSurfaceCreateInfoQNX *>( &createInfo ),
10432 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10433 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10436 throwResultException( result,
"vkCreateScreenSurfaceQNX" );
10441 # if defined( VK_USE_PLATFORM_GGP )
10443 VULKAN_HPP_NAMESPACE::StreamDescriptorSurfaceCreateInfoGGP
const & createInfo,
10445 : m_instance( *instance )
10447 , m_dispatcher( instance.getDispatcher() )
10450 instance.
getDispatcher()->vkCreateStreamDescriptorSurfaceGGP( static_cast<VkInstance>( *instance ),
10451 reinterpret_cast<const VkStreamDescriptorSurfaceCreateInfoGGP *>( &createInfo ),
10452 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10453 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10456 throwResultException( result,
"vkCreateStreamDescriptorSurfaceGGP" );
10461 # if defined( VK_USE_PLATFORM_VI_NN )
10463 VULKAN_HPP_NAMESPACE::ViSurfaceCreateInfoNN
const & createInfo,
10465 : m_instance( *instance )
10467 , m_dispatcher( instance.getDispatcher() )
10470 instance.
getDispatcher()->vkCreateViSurfaceNN( static_cast<VkInstance>( *instance ),
10471 reinterpret_cast<const VkViSurfaceCreateInfoNN *>( &createInfo ),
10472 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10473 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10476 throwResultException( result,
"vkCreateViSurfaceNN" );
10481 # if defined( VK_USE_PLATFORM_WAYLAND_KHR )
10483 VULKAN_HPP_NAMESPACE::WaylandSurfaceCreateInfoKHR
const & createInfo,
10485 : m_instance( *instance )
10487 , m_dispatcher( instance.getDispatcher() )
10490 instance.
getDispatcher()->vkCreateWaylandSurfaceKHR( static_cast<VkInstance>( *instance ),
10491 reinterpret_cast<const VkWaylandSurfaceCreateInfoKHR *>( &createInfo ),
10492 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10493 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10496 throwResultException( result,
"vkCreateWaylandSurfaceKHR" );
10501 # if defined( VK_USE_PLATFORM_WIN32_KHR )
10503 VULKAN_HPP_NAMESPACE::Win32SurfaceCreateInfoKHR
const & createInfo,
10505 : m_instance( *instance )
10507 , m_dispatcher( instance.getDispatcher() )
10510 instance.
getDispatcher()->vkCreateWin32SurfaceKHR( static_cast<VkInstance>( *instance ),
10511 reinterpret_cast<const VkWin32SurfaceCreateInfoKHR *>( &createInfo ),
10512 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10513 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10516 throwResultException( result,
"vkCreateWin32SurfaceKHR" );
10521 # if defined( VK_USE_PLATFORM_XCB_KHR )
10523 VULKAN_HPP_NAMESPACE::XcbSurfaceCreateInfoKHR
const & createInfo,
10525 : m_instance( *instance )
10527 , m_dispatcher( instance.getDispatcher() )
10530 instance.
getDispatcher()->vkCreateXcbSurfaceKHR( static_cast<VkInstance>( *instance ),
10531 reinterpret_cast<const VkXcbSurfaceCreateInfoKHR *>( &createInfo ),
10532 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10533 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10536 throwResultException( result,
"vkCreateXcbSurfaceKHR" );
10541 # if defined( VK_USE_PLATFORM_XLIB_KHR )
10543 VULKAN_HPP_NAMESPACE::XlibSurfaceCreateInfoKHR
const & createInfo,
10545 : m_instance( *instance )
10547 , m_dispatcher( instance.getDispatcher() )
10550 instance.
getDispatcher()->vkCreateXlibSurfaceKHR( static_cast<VkInstance>( *instance ),
10551 reinterpret_cast<const VkXlibSurfaceCreateInfoKHR *>( &createInfo ),
10552 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10553 reinterpret_cast<VkSurfaceKHR *>( &m_surface ) ) );
10556 throwResultException( result,
"vkCreateXlibSurfaceKHR" );
10564 : m_instance( *instance )
10565 , m_surface( surface )
10567 , m_dispatcher( instance.getDispatcher() )
10590 if (
this != &rhs )
10610 getDispatcher()->vkDestroySurfaceKHR(
10611 static_cast<VkInstance>( m_instance ), static_cast<VkSurfaceKHR>( m_surface ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
10613 m_instance =
nullptr;
10614 m_surface =
nullptr;
10615 m_allocator =
nullptr;
10616 m_dispatcher =
nullptr;
10621 m_instance =
nullptr;
10622 m_allocator =
nullptr;
10623 m_dispatcher =
nullptr;
10635 return m_dispatcher;
10640 std::swap( m_instance, rhs.m_instance );
10642 std::swap( m_allocator, rhs.m_allocator );
10643 std::swap( m_dispatcher, rhs.m_dispatcher );
10666 : m_device( *device )
10668 , m_dispatcher( device.getDispatcher() )
10672 reinterpret_cast<const VkSwapchainCreateInfoKHR *>( &createInfo ),
10673 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10674 reinterpret_cast<VkSwapchainKHR *>( &m_swapchain ) ) );
10677 throwResultException( result,
"vkCreateSwapchainKHR" );
10682 VkSwapchainKHR swapchain,
10684 : m_device( *device )
10685 , m_swapchain( swapchain )
10687 , m_dispatcher( device.getDispatcher() )
10710 if (
this != &rhs )
10723 return m_swapchain;
10730 getDispatcher()->vkDestroySwapchainKHR(
10731 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchain ), reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
10733 m_device =
nullptr;
10734 m_swapchain =
nullptr;
10735 m_allocator =
nullptr;
10736 m_dispatcher =
nullptr;
10741 m_device =
nullptr;
10742 m_allocator =
nullptr;
10743 m_dispatcher =
nullptr;
10755 return m_dispatcher;
10761 std::swap( m_swapchain, rhs.m_swapchain );
10762 std::swap( m_allocator, rhs.m_allocator );
10763 std::swap( m_dispatcher, rhs.m_dispatcher );
10771 acquireNextImage( uint64_t
timeout,
10783 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::PastPresentationTimingGOOGLE> getPastPresentationTimingGOOGLE()
const;
10797 # if defined( VK_USE_PLATFORM_WIN32_KHR )
10800 void acquireFullScreenExclusiveModeEXT()
const;
10802 void releaseFullScreenExclusiveModeEXT()
const;
10812 class SwapchainKHRs :
public std::vector<VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::SwapchainKHR>
10820 std::vector<VkSwapchainKHR> swapchains( createInfos.
size() );
10822 static_cast<VkDevice>( *device ),
10823 createInfos.
size(),
10825 reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ),
10826 swapchains.data() ) );
10830 for (
auto const & swapchainKHR : swapchains )
10832 this->emplace_back( device, swapchainKHR, allocator );
10837 throwResultException( result,
"vkCreateSharedSwapchainsKHR" );
10863 : m_device( *device )
10865 , m_dispatcher( device.getDispatcher() )
10869 reinterpret_cast<const VkValidationCacheCreateInfoEXT *>( &createInfo ),
10870 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10871 reinterpret_cast<VkValidationCacheEXT *>( &m_validationCache ) ) );
10874 throwResultException( result,
"vkCreateValidationCacheEXT" );
10879 VkValidationCacheEXT validationCache,
10881 : m_device( *device )
10882 , m_validationCache( validationCache )
10884 , m_dispatcher( device.getDispatcher() )
10907 if (
this != &rhs )
10920 return m_validationCache;
10925 if ( m_validationCache )
10927 getDispatcher()->vkDestroyValidationCacheEXT( static_cast<VkDevice>( m_device ),
10928 static_cast<VkValidationCacheEXT>( m_validationCache ),
10929 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
10931 m_device =
nullptr;
10932 m_validationCache =
nullptr;
10933 m_allocator =
nullptr;
10934 m_dispatcher =
nullptr;
10939 m_device =
nullptr;
10940 m_allocator =
nullptr;
10941 m_dispatcher =
nullptr;
10953 return m_dispatcher;
10959 std::swap( m_validationCache, rhs.m_validationCache );
10960 std::swap( m_allocator, rhs.m_allocator );
10961 std::swap( m_dispatcher, rhs.m_dispatcher );
10977 # if defined( VK_ENABLE_BETA_EXTENSIONS )
10978 class VideoSessionKHR
10981 using CType = VkVideoSessionKHR;
10989 VULKAN_HPP_NAMESPACE::VideoSessionCreateInfoKHR
const & createInfo,
10991 : m_device( *device )
10993 , m_dispatcher( device.getDispatcher() )
10996 device.
getDispatcher()->vkCreateVideoSessionKHR( static_cast<VkDevice>( *device ),
10997 reinterpret_cast<const VkVideoSessionCreateInfoKHR *>( &createInfo ),
10998 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
10999 reinterpret_cast<VkVideoSessionKHR *>( &m_videoSession ) ) );
11002 throwResultException( result,
"vkCreateVideoSessionKHR" );
11007 VkVideoSessionKHR videoSession,
11009 : m_device( *device )
11010 , m_videoSession( videoSession )
11012 , m_dispatcher( device.getDispatcher() )
11016 VideoSessionKHR( std::nullptr_t ) {}
11023 VideoSessionKHR() =
delete;
11024 VideoSessionKHR( VideoSessionKHR
const & ) =
delete;
11032 VideoSessionKHR &
operator=( VideoSessionKHR
const & ) =
delete;
11035 if (
this != &rhs )
11046 VULKAN_HPP_NAMESPACE::VideoSessionKHR
const &
operator*() const VULKAN_HPP_NOEXCEPT
11048 return m_videoSession;
11051 void clear() VULKAN_HPP_NOEXCEPT
11053 if ( m_videoSession )
11055 getDispatcher()->vkDestroyVideoSessionKHR( static_cast<VkDevice>( m_device ),
11056 static_cast<VkVideoSessionKHR>( m_videoSession ),
11057 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
11059 m_device =
nullptr;
11060 m_videoSession =
nullptr;
11061 m_allocator =
nullptr;
11062 m_dispatcher =
nullptr;
11065 VULKAN_HPP_NAMESPACE::VideoSessionKHR release()
11067 m_device =
nullptr;
11068 m_allocator =
nullptr;
11069 m_dispatcher =
nullptr;
11081 return m_dispatcher;
11084 void swap( VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::VideoSessionKHR & rhs ) VULKAN_HPP_NOEXCEPT
11087 std::swap( m_videoSession, rhs.m_videoSession );
11088 std::swap( m_allocator, rhs.m_allocator );
11089 std::swap( m_dispatcher, rhs.m_dispatcher );
11094 VULKAN_HPP_NODISCARD std::vector<VULKAN_HPP_NAMESPACE::VideoSessionMemoryRequirementsKHR> getMemoryRequirements()
const;
11100 VULKAN_HPP_NAMESPACE::VideoSessionKHR m_videoSession = {};
11106 # if defined( VK_ENABLE_BETA_EXTENSIONS )
11107 class VideoSessionParametersKHR
11110 using CType = VkVideoSessionParametersKHR;
11118 VULKAN_HPP_NAMESPACE::VideoSessionParametersCreateInfoKHR
const & createInfo,
11120 : m_device( *device )
11122 , m_dispatcher( device.getDispatcher() )
11125 device.
getDispatcher()->vkCreateVideoSessionParametersKHR( static_cast<VkDevice>( *device ),
11126 reinterpret_cast<const VkVideoSessionParametersCreateInfoKHR *>( &createInfo ),
11127 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
11128 reinterpret_cast<VkVideoSessionParametersKHR *>( &m_videoSessionParameters ) ) );
11131 throwResultException( result,
"vkCreateVideoSessionParametersKHR" );
11136 VkVideoSessionParametersKHR videoSessionParameters,
11138 : m_device( *device )
11139 , m_videoSessionParameters( videoSessionParameters )
11141 , m_dispatcher( device.getDispatcher() )
11145 VideoSessionParametersKHR( std::nullptr_t ) {}
11147 ~VideoSessionParametersKHR()
11152 VideoSessionParametersKHR() =
delete;
11153 VideoSessionParametersKHR( VideoSessionParametersKHR
const & ) =
delete;
11154 VideoSessionParametersKHR( VideoSessionParametersKHR && rhs ) VULKAN_HPP_NOEXCEPT
11161 VideoSessionParametersKHR &
operator=( VideoSessionParametersKHR
const & ) =
delete;
11162 VideoSessionParametersKHR &
operator =( VideoSessionParametersKHR && rhs ) VULKAN_HPP_NOEXCEPT
11164 if (
this != &rhs )
11175 VULKAN_HPP_NAMESPACE::VideoSessionParametersKHR
const &
operator*() const VULKAN_HPP_NOEXCEPT
11177 return m_videoSessionParameters;
11180 void clear() VULKAN_HPP_NOEXCEPT
11182 if ( m_videoSessionParameters )
11184 getDispatcher()->vkDestroyVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
11185 static_cast<VkVideoSessionParametersKHR>( m_videoSessionParameters ),
11186 reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ) );
11188 m_device =
nullptr;
11189 m_videoSessionParameters =
nullptr;
11190 m_allocator =
nullptr;
11191 m_dispatcher =
nullptr;
11194 VULKAN_HPP_NAMESPACE::VideoSessionParametersKHR release()
11196 m_device =
nullptr;
11197 m_allocator =
nullptr;
11198 m_dispatcher =
nullptr;
11210 return m_dispatcher;
11213 void swap( VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::VideoSessionParametersKHR & rhs ) VULKAN_HPP_NOEXCEPT
11216 std::swap( m_videoSessionParameters, rhs.m_videoSessionParameters );
11217 std::swap( m_allocator, rhs.m_allocator );
11218 std::swap( m_dispatcher, rhs.m_dispatcher );
11223 void update(
const VULKAN_HPP_NAMESPACE::VideoSessionParametersUpdateInfoKHR & updateInfo )
const;
11227 VULKAN_HPP_NAMESPACE::VideoSessionParametersKHR m_videoSessionParameters = {};
11254 getDispatcher()->vkGetPhysicalDeviceFeatures( static_cast<VkPhysicalDevice>( m_physicalDevice ),
11255 reinterpret_cast<VkPhysicalDeviceFeatures *>( &features ) );
11264 getDispatcher()->vkGetPhysicalDeviceFormatProperties(
11265 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>(
format ), reinterpret_cast<VkFormatProperties *>( &formatProperties ) );
11267 return formatProperties;
11278 VkResult result = getDispatcher()->vkGetPhysicalDeviceImageFormatProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
11279 static_cast<VkFormat>( format ),
11280 static_cast<VkImageType>( type ),
11281 static_cast<VkImageTiling>( tiling ),
11282 static_cast<VkImageUsageFlags>( usage ),
11283 static_cast<VkImageCreateFlags>( flags ),
11284 reinterpret_cast<VkImageFormatProperties *>( &imageFormatProperties ) );
11287 return imageFormatProperties;
11293 getDispatcher()->vkGetPhysicalDeviceProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
11294 reinterpret_cast<VkPhysicalDeviceProperties *>( &properties ) );
11301 std::vector<VULKAN_HPP_NAMESPACE::QueueFamilyProperties> queueFamilyProperties;
11302 uint32_t queueFamilyPropertyCount;
11303 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ), &queueFamilyPropertyCount,
nullptr );
11304 queueFamilyProperties.resize( queueFamilyPropertyCount );
11305 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
11306 &queueFamilyPropertyCount,
11307 reinterpret_cast<VkQueueFamilyProperties *>( queueFamilyProperties.data() ) );
11310 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
11312 queueFamilyProperties.resize( queueFamilyPropertyCount );
11314 return queueFamilyProperties;
11320 getDispatcher()->vkGetPhysicalDeviceMemoryProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
11321 reinterpret_cast<VkPhysicalDeviceMemoryProperties *>( &memoryProperties ) );
11323 return memoryProperties;
11328 PFN_vkVoidFunction result = getDispatcher()->vkGetInstanceProcAddr( static_cast<VkInstance>( m_instance ),
name.c_str() );
11335 PFN_vkVoidFunction result = getDispatcher()->vkGetDeviceProcAddr( static_cast<VkDevice>( m_device ),
name.c_str() );
11350 std::vector<VULKAN_HPP_NAMESPACE::ExtensionProperties> properties;
11351 uint32_t propertyCount;
11355 result = getDispatcher()->vkEnumerateInstanceExtensionProperties( layerName ? layerName->c_str() :
nullptr, &propertyCount, nullptr );
11356 if ( ( result ==
VK_SUCCESS ) && propertyCount )
11358 properties.resize( propertyCount );
11359 result = getDispatcher()->vkEnumerateInstanceExtensionProperties(
11360 layerName ? layerName->c_str() :
nullptr, &propertyCount,
reinterpret_cast<VkExtensionProperties *
>( properties.data() ) );
11365 if ( propertyCount < properties.size() )
11367 properties.resize( propertyCount );
11375 std::vector<VULKAN_HPP_NAMESPACE::ExtensionProperties> properties;
11376 uint32_t propertyCount;
11380 result = getDispatcher()->vkEnumerateDeviceExtensionProperties(
11381 static_cast<VkPhysicalDevice>( m_physicalDevice ), layerName ? layerName->c_str() :
nullptr, &propertyCount, nullptr );
11382 if ( ( result ==
VK_SUCCESS ) && propertyCount )
11384 properties.resize( propertyCount );
11385 result = getDispatcher()->vkEnumerateDeviceExtensionProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
11386 layerName ? layerName->c_str() :
nullptr,
11393 if ( propertyCount < properties.size() )
11395 properties.resize( propertyCount );
11402 std::vector<VULKAN_HPP_NAMESPACE::LayerProperties> properties;
11403 uint32_t propertyCount;
11407 result = getDispatcher()->vkEnumerateInstanceLayerProperties( &propertyCount,
nullptr );
11408 if ( ( result ==
VK_SUCCESS ) && propertyCount )
11410 properties.resize( propertyCount );
11411 result = getDispatcher()->vkEnumerateInstanceLayerProperties( &propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) );
11416 if ( propertyCount < properties.size() )
11418 properties.resize( propertyCount );
11425 std::vector<VULKAN_HPP_NAMESPACE::LayerProperties> properties;
11426 uint32_t propertyCount;
11430 result = getDispatcher()->vkEnumerateDeviceLayerProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount,
nullptr );
11431 if ( ( result ==
VK_SUCCESS ) && propertyCount )
11433 properties.resize( propertyCount );
11434 result = getDispatcher()->vkEnumerateDeviceLayerProperties(
11435 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) );
11440 if ( propertyCount < properties.size() )
11442 properties.resize( propertyCount );
11455 VkResult result = getDispatcher()->vkQueueSubmit(
11456 static_cast<VkQueue>( m_queue ), submits.
size(),
reinterpret_cast<const VkSubmitInfo *
>( submits.
data() ), static_cast<VkFence>( fence ) );
11462 VkResult result = getDispatcher()->vkQueueWaitIdle( static_cast<VkQueue>( m_queue ) );
11468 VkResult result = getDispatcher()->vkDeviceWaitIdle( static_cast<VkDevice>( m_device ) );
11484 VkResult result = getDispatcher()->vkMapMemory( static_cast<VkDevice>( m_device ),
11485 static_cast<VkDeviceMemory>( m_memory ),
11486 static_cast<VkDeviceSize>( offset ),
11487 static_cast<VkDeviceSize>( size ),
11488 static_cast<VkMemoryMapFlags>( flags ),
11497 getDispatcher()->vkUnmapMemory( static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( m_memory ) );
11503 VkResult result = getDispatcher()->vkFlushMappedMemoryRanges(
11511 VkResult result = getDispatcher()->vkInvalidateMappedMemoryRanges(
11519 getDispatcher()->vkGetDeviceMemoryCommitment(
11520 static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( m_memory ), reinterpret_cast<VkDeviceSize *>( &committedMemoryInBytes ) );
11522 return committedMemoryInBytes;
11527 VkResult result = getDispatcher()->vkBindBufferMemory( static_cast<VkDevice>( m_device ),
11528 static_cast<VkBuffer>( m_buffer ),
11529 static_cast<VkDeviceMemory>( memory ),
11530 static_cast<VkDeviceSize>( memoryOffset ) );
11536 VkResult result = getDispatcher()->vkBindImageMemory(
11537 static_cast<VkDevice>( m_device ), static_cast<VkImage>( m_image ), static_cast<VkDeviceMemory>( memory ), static_cast<VkDeviceSize>( memoryOffset ) );
11544 getDispatcher()->vkGetBufferMemoryRequirements(
11545 static_cast<VkDevice>( m_device ), static_cast<VkBuffer>( m_buffer ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) );
11547 return memoryRequirements;
11553 getDispatcher()->vkGetImageMemoryRequirements(
11554 static_cast<VkDevice>( m_device ), static_cast<VkImage>( m_image ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) );
11556 return memoryRequirements;
11561 std::vector<VULKAN_HPP_NAMESPACE::SparseImageMemoryRequirements> sparseMemoryRequirements;
11562 uint32_t sparseMemoryRequirementCount;
11563 getDispatcher()->vkGetImageSparseMemoryRequirements(
11564 static_cast<VkDevice>( m_device ), static_cast<VkImage>( m_image ), &sparseMemoryRequirementCount,
nullptr );
11565 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
11566 getDispatcher()->vkGetImageSparseMemoryRequirements( static_cast<VkDevice>( m_device ),
11567 static_cast<VkImage>( m_image ),
11568 &sparseMemoryRequirementCount,
11569 reinterpret_cast<VkSparseImageMemoryRequirements *>( sparseMemoryRequirements.data() ) );
11571 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
11572 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
11574 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
11576 return sparseMemoryRequirements;
11586 std::vector<VULKAN_HPP_NAMESPACE::SparseImageFormatProperties> properties;
11587 uint32_t propertyCount;
11588 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
11589 static_cast<VkFormat>( format ),
11590 static_cast<VkImageType>( type ),
11591 static_cast<VkSampleCountFlagBits>( samples ),
11592 static_cast<VkImageUsageFlags>( usage ),
11593 static_cast<VkImageTiling>( tiling ),
11596 properties.resize( propertyCount );
11597 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
11598 static_cast<VkFormat>( format ),
11599 static_cast<VkImageType>( type ),
11600 static_cast<VkSampleCountFlagBits>( samples ),
11601 static_cast<VkImageUsageFlags>( usage ),
11602 static_cast<VkImageTiling>( tiling ),
11604 reinterpret_cast<VkSparseImageFormatProperties *>( properties.data() ) );
11607 if ( propertyCount < properties.size() )
11609 properties.resize( propertyCount );
11617 VkResult result = getDispatcher()->vkQueueBindSparse(
11618 static_cast<VkQueue>( m_queue ), bindInfo.
size(),
reinterpret_cast<const VkBindSparseInfo *
>( bindInfo.
data() ), static_cast<VkFence>( fence ) );
11631 VkResult result = getDispatcher()->vkResetFences( static_cast<VkDevice>( m_device ), fences.
size(),
reinterpret_cast<const VkFence *
>( fences.
data() ) );
11637 VkResult result = getDispatcher()->vkGetFenceStatus( static_cast<VkDevice>( m_device ), static_cast<VkFence>( m_fence ) );
11638 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
11648 VkResult result = getDispatcher()->vkWaitForFences(
11649 static_cast<VkDevice>( m_device ), fences.
size(),
reinterpret_cast<const VkFence *
>( fences.
data() ), static_cast<VkBool32>( waitAll ),
timeout );
11650 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
11673 VkResult result = getDispatcher()->vkGetEventStatus( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( m_event ) );
11674 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
11683 VkResult result = getDispatcher()->vkSetEvent( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( m_event ) );
11689 VkResult result = getDispatcher()->vkResetEvent( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( m_event ) );
11700 template <
typename DataType>
11705 std::vector<DataType>
data( dataSize /
sizeof(
DataType ) );
11706 VkResult result = getDispatcher()->vkGetQueryPoolResults( static_cast<VkDevice>( m_device ),
11707 static_cast<VkQueryPool>( m_queryPool ),
11711 reinterpret_cast<void *>( data.data() ),
11712 static_cast<VkDeviceSize>( stride ),
11714 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
11718 return std::make_pair( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), data );
11721 template <
typename DataType>
11726 VkResult result = getDispatcher()->vkGetQueryPoolResults( static_cast<VkDevice>( m_device ),
11727 static_cast<VkQueryPool>( m_queryPool ),
11731 reinterpret_cast<void *>( &data ),
11732 static_cast<VkDeviceSize>( stride ),
11733 static_cast<VkQueryResultFlags>( flags ) );
11734 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
11738 return std::make_pair( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), data );
11766 getDispatcher()->vkGetImageSubresourceLayout( static_cast<VkDevice>( m_device ),
11767 static_cast<VkImage>( m_image ),
11768 reinterpret_cast<const VkImageSubresource *>( &subresource ),
11769 reinterpret_cast<VkSubresourceLayout *>( &layout ) );
11797 std::vector<uint8_t>
data;
11803 getDispatcher()->vkGetPipelineCacheData( static_cast<VkDevice>( m_device ), static_cast<VkPipelineCache>( m_pipelineCache ), &dataSize,
nullptr );
11806 data.resize( dataSize );
11807 result = getDispatcher()->vkGetPipelineCacheData(
11808 static_cast<VkDevice>( m_device ), static_cast<VkPipelineCache>( m_pipelineCache ), &dataSize, reinterpret_cast<void *>( data.data() ) );
11813 if ( dataSize < data.size() )
11815 data.resize( dataSize );
11822 VkResult result = getDispatcher()->vkMergePipelineCaches( static_cast<VkDevice>( m_device ),
11823 static_cast<VkPipelineCache>( m_pipelineCache ),
11825 reinterpret_cast<const VkPipelineCache *
>( srcCaches.
data() ) );
11891 getDispatcher()->vkResetDescriptorPool(
11892 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorPool>( m_descriptorPool ), static_cast<VkDescriptorPoolResetFlags>(
flags ) );
11905 getDispatcher()->vkUpdateDescriptorSets( static_cast<VkDevice>( m_device ),
11906 descriptorWrites.size(),
11908 descriptorCopies.size(),
11929 getDispatcher()->vkGetRenderAreaGranularity(
11930 static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( m_renderPass ), reinterpret_cast<VkExtent2D *>( &granularity ) );
11932 return granularity;
11944 VkResult result = getDispatcher()->vkResetCommandPool(
11945 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( m_commandPool ), static_cast<VkCommandPoolResetFlags>( flags ) );
11957 VkResult result = getDispatcher()->vkBeginCommandBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
11958 reinterpret_cast<const VkCommandBufferBeginInfo *>( &beginInfo ) );
11964 VkResult result = getDispatcher()->vkEndCommandBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ) );
11971 getDispatcher()->vkResetCommandBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCommandBufferResetFlags>( flags ) );
11978 getDispatcher()->vkCmdBindPipeline(
11979 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipeline>( pipeline ) );
11983 CommandBuffer::setViewport( uint32_t firstViewport,
11986 getDispatcher()->vkCmdSetViewport(
11987 static_cast<VkCommandBuffer>( m_commandBuffer ), firstViewport, viewports.size(),
reinterpret_cast<const VkViewport *
>( viewports.data() ) );
11991 CommandBuffer::setScissor( uint32_t firstScissor,
11994 getDispatcher()->vkCmdSetScissor(
11995 static_cast<VkCommandBuffer>( m_commandBuffer ), firstScissor, scissors.size(),
reinterpret_cast<const VkRect2D *
>( scissors.data() ) );
12000 getDispatcher()->vkCmdSetLineWidth( static_cast<VkCommandBuffer>( m_commandBuffer ), lineWidth );
12004 CommandBuffer::setDepthBias(
float depthBiasConstantFactor,
float depthBiasClamp,
float depthBiasSlopeFactor )
const VULKAN_HPP_NOEXCEPT
12006 getDispatcher()->vkCmdSetDepthBias( static_cast<VkCommandBuffer>( m_commandBuffer ), depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor );
12009 VULKAN_HPP_INLINE void CommandBuffer::setBlendConstants(
const float blendConstants[4] )
const VULKAN_HPP_NOEXCEPT
12011 getDispatcher()->vkCmdSetBlendConstants( static_cast<VkCommandBuffer>( m_commandBuffer ), blendConstants );
12014 VULKAN_HPP_INLINE void CommandBuffer::setDepthBounds(
float minDepthBounds,
float maxDepthBounds )
const VULKAN_HPP_NOEXCEPT
12016 getDispatcher()->vkCmdSetDepthBounds( static_cast<VkCommandBuffer>( m_commandBuffer ), minDepthBounds, maxDepthBounds );
12020 uint32_t compareMask )
const VULKAN_HPP_NOEXCEPT
12022 getDispatcher()->vkCmdSetStencilCompareMask( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ), compareMask );
12027 getDispatcher()->vkCmdSetStencilWriteMask( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ), writeMask );
12032 getDispatcher()->vkCmdSetStencilReference( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ),
reference );
12042 getDispatcher()->vkCmdBindDescriptorSets( static_cast<VkCommandBuffer>( m_commandBuffer ),
12043 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
12044 static_cast<VkPipelineLayout>( layout ),
12046 descriptorSets.size(),
12047 reinterpret_cast<const VkDescriptorSet *
>( descriptorSets.data() ),
12048 dynamicOffsets.size(),
12049 dynamicOffsets.data() );
12056 getDispatcher()->vkCmdBindIndexBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
12057 static_cast<VkBuffer>(
buffer ),
12058 static_cast<VkDeviceSize>(
offset ),
12059 static_cast<VkIndexType>( indexType ) );
12066 if ( buffers.
size() != offsets.
size() )
12071 getDispatcher()->vkCmdBindVertexBuffers( static_cast<VkCommandBuffer>( m_commandBuffer ),
12074 reinterpret_cast<const VkBuffer *
>( buffers.
data() ),
12075 reinterpret_cast<const VkDeviceSize *>( offsets.
data() ) );
12079 CommandBuffer::draw( uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance )
const VULKAN_HPP_NOEXCEPT
12081 getDispatcher()->vkCmdDraw( static_cast<VkCommandBuffer>( m_commandBuffer ), vertexCount, instanceCount, firstVertex, firstInstance );
12085 uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance )
const VULKAN_HPP_NOEXCEPT
12087 getDispatcher()->vkCmdDrawIndexed( static_cast<VkCommandBuffer>( m_commandBuffer ), indexCount, instanceCount, firstIndex, vertexOffset, firstInstance );
12092 uint32_t drawCount,
12093 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
12095 getDispatcher()->vkCmdDrawIndirect(
12096 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>(
buffer ), static_cast<VkDeviceSize>(
offset ), drawCount,
stride );
12101 uint32_t drawCount,
12102 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
12104 getDispatcher()->vkCmdDrawIndexedIndirect(
12105 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>(
buffer ), static_cast<VkDeviceSize>(
offset ), drawCount,
stride );
12108 VULKAN_HPP_INLINE void CommandBuffer::dispatch( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ )
const VULKAN_HPP_NOEXCEPT
12110 getDispatcher()->vkCmdDispatch( static_cast<VkCommandBuffer>( m_commandBuffer ), groupCountX, groupCountY, groupCountZ );
12116 getDispatcher()->vkCmdDispatchIndirect(
12117 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>(
buffer ), static_cast<VkDeviceSize>(
offset ) );
12125 getDispatcher()->vkCmdCopyBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
12126 static_cast<VkBuffer>( srcBuffer ),
12127 static_cast<VkBuffer>( dstBuffer ),
12129 reinterpret_cast<const VkBufferCopy *
>( regions.data() ) );
12139 getDispatcher()->vkCmdCopyImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
12140 static_cast<VkImage>( srcImage ),
12141 static_cast<VkImageLayout>( srcImageLayout ),
12142 static_cast<VkImage>( dstImage ),
12143 static_cast<VkImageLayout>( dstImageLayout ),
12145 reinterpret_cast<const VkImageCopy *
>( regions.data() ) );
12155 getDispatcher()->vkCmdBlitImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
12156 static_cast<VkImage>( srcImage ),
12157 static_cast<VkImageLayout>( srcImageLayout ),
12158 static_cast<VkImage>( dstImage ),
12159 static_cast<VkImageLayout>( dstImageLayout ),
12161 reinterpret_cast<const VkImageBlit *
>( regions.data() ),
12162 static_cast<VkFilter>(
filter ) );
12171 getDispatcher()->vkCmdCopyBufferToImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
12172 static_cast<VkBuffer>( srcBuffer ),
12173 static_cast<VkImage>( dstImage ),
12174 static_cast<VkImageLayout>( dstImageLayout ),
12185 getDispatcher()->vkCmdCopyImageToBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
12186 static_cast<VkImage>( srcImage ),
12187 static_cast<VkImageLayout>( srcImageLayout ),
12188 static_cast<VkBuffer>( dstBuffer ),
12193 template <
typename DataType>
12198 getDispatcher()->vkCmdUpdateBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
12199 static_cast<VkBuffer>( dstBuffer ),
12200 static_cast<VkDeviceSize>( dstOffset ),
12202 reinterpret_cast<const void *>(
data.data() ) );
12208 uint32_t
data )
const VULKAN_HPP_NOEXCEPT
12210 getDispatcher()->vkCmdFillBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
12211 static_cast<VkBuffer>( dstBuffer ),
12212 static_cast<VkDeviceSize>( dstOffset ),
12213 static_cast<VkDeviceSize>(
size ),
12223 getDispatcher()->vkCmdClearColorImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
12224 static_cast<VkImage>(
image ),
12225 static_cast<VkImageLayout>( imageLayout ),
12226 reinterpret_cast<const VkClearColorValue *>( &
color ),
12237 getDispatcher()->vkCmdClearDepthStencilImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
12238 static_cast<VkImage>(
image ),
12239 static_cast<VkImageLayout>( imageLayout ),
12240 reinterpret_cast<const VkClearDepthStencilValue *>( &depthStencil ),
12249 getDispatcher()->vkCmdClearAttachments( static_cast<VkCommandBuffer>( m_commandBuffer ),
12253 reinterpret_cast<const VkClearRect *
>( rects.data() ) );
12263 getDispatcher()->vkCmdResolveImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
12264 static_cast<VkImage>( srcImage ),
12265 static_cast<VkImageLayout>( srcImageLayout ),
12266 static_cast<VkImage>( dstImage ),
12267 static_cast<VkImageLayout>( dstImageLayout ),
12275 getDispatcher()->vkCmdSetEvent(
12276 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>(
event ), static_cast<VkPipelineStageFlags>( stageMask ) );
12282 getDispatcher()->vkCmdResetEvent(
12283 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>(
event ), static_cast<VkPipelineStageFlags>( stageMask ) );
12294 getDispatcher()->vkCmdWaitEvents( static_cast<VkCommandBuffer>( m_commandBuffer ),
12296 reinterpret_cast<const VkEvent *
>( events.data() ),
12297 static_cast<VkPipelineStageFlags>( srcStageMask ),
12299 memoryBarriers.size(),
12301 bufferMemoryBarriers.size(),
12303 imageMemoryBarriers.
size(),
12315 getDispatcher()->vkCmdPipelineBarrier( static_cast<VkCommandBuffer>( m_commandBuffer ),
12316 static_cast<VkPipelineStageFlags>( srcStageMask ),
12317 static_cast<VkPipelineStageFlags>( dstStageMask ),
12318 static_cast<VkDependencyFlags>( dependencyFlags ),
12319 memoryBarriers.size(),
12321 bufferMemoryBarriers.size(),
12323 imageMemoryBarriers.
size(),
12331 getDispatcher()->vkCmdBeginQuery(
12332 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ),
query, static_cast<VkQueryControlFlags>(
flags ) );
12337 getDispatcher()->vkCmdEndQuery( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ),
query );
12343 getDispatcher()->vkCmdResetQueryPool( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), firstQuery, queryCount );
12348 uint32_t
query )
const VULKAN_HPP_NOEXCEPT
12350 getDispatcher()->vkCmdWriteTimestamp(
12351 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineStageFlagBits>( pipelineStage ), static_cast<VkQueryPool>( queryPool ),
query );
12355 uint32_t firstQuery,
12356 uint32_t queryCount,
12362 getDispatcher()->vkCmdCopyQueryPoolResults( static_cast<VkCommandBuffer>( m_commandBuffer ),
12363 static_cast<VkQueryPool>( queryPool ),
12366 static_cast<VkBuffer>( dstBuffer ),
12367 static_cast<VkDeviceSize>( dstOffset ),
12368 static_cast<VkDeviceSize>(
stride ),
12369 static_cast<VkQueryResultFlags>(
flags ) );
12372 template <
typename ValuesType>
12378 getDispatcher()->vkCmdPushConstants( static_cast<VkCommandBuffer>( m_commandBuffer ),
12379 static_cast<VkPipelineLayout>( layout ),
12380 static_cast<VkShaderStageFlags>( stageFlags ),
12382 values.size() *
sizeof( ValuesType ),
12383 reinterpret_cast<const void *>(
values.data() ) );
12389 getDispatcher()->vkCmdBeginRenderPass( static_cast<VkCommandBuffer>( m_commandBuffer ),
12390 reinterpret_cast<const VkRenderPassBeginInfo *>( &renderPassBegin ),
12391 static_cast<VkSubpassContents>( contents ) );
12396 getDispatcher()->vkCmdNextSubpass( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkSubpassContents>( contents ) );
12401 getDispatcher()->vkCmdEndRenderPass( static_cast<VkCommandBuffer>( m_commandBuffer ) );
12407 getDispatcher()->vkCmdExecuteCommands(
12408 static_cast<VkCommandBuffer>( m_commandBuffer ), commandBuffers.size(),
reinterpret_cast<const VkCommandBuffer *
>( commandBuffers.data() ) );
12415 uint32_t apiVersion;
12416 VkResult result = getDispatcher()->vkEnumerateInstanceVersion( &apiVersion );
12425 VkResult result = getDispatcher()->vkBindBufferMemory2(
12432 VkResult result = getDispatcher()->vkBindImageMemory2(
12438 Device::getGroupPeerMemoryFeatures( uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex )
const VULKAN_HPP_NOEXCEPT
12441 getDispatcher()->vkGetDeviceGroupPeerMemoryFeatures( static_cast<VkDevice>( m_device ),
12445 reinterpret_cast<VkPeerMemoryFeatureFlags *>( &peerMemoryFeatures ) );
12447 return peerMemoryFeatures;
12452 getDispatcher()->vkCmdSetDeviceMask( static_cast<VkCommandBuffer>( m_commandBuffer ), deviceMask );
12456 uint32_t baseGroupY,
12457 uint32_t baseGroupZ,
12458 uint32_t groupCountX,
12459 uint32_t groupCountY,
12460 uint32_t groupCountZ )
const VULKAN_HPP_NOEXCEPT
12462 getDispatcher()->vkCmdDispatchBase(
12463 static_cast<VkCommandBuffer>( m_commandBuffer ), baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ );
12468 std::vector<VULKAN_HPP_NAMESPACE::PhysicalDeviceGroupProperties> physicalDeviceGroupProperties;
12469 uint32_t physicalDeviceGroupCount;
12473 result = getDispatcher()->vkEnumeratePhysicalDeviceGroups( static_cast<VkInstance>( m_instance ), &physicalDeviceGroupCount,
nullptr );
12474 if ( ( result ==
VK_SUCCESS ) && physicalDeviceGroupCount )
12476 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
12478 getDispatcher()->vkEnumeratePhysicalDeviceGroups( static_cast<VkInstance>( m_instance ),
12479 &physicalDeviceGroupCount,
12480 reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) );
12484 VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
12485 if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
12487 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
12489 return physicalDeviceGroupProperties;
12496 getDispatcher()->vkGetImageMemoryRequirements2( static_cast<VkDevice>( m_device ),
12497 reinterpret_cast<const VkImageMemoryRequirementsInfo2 *>( &info ),
12498 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
12500 return memoryRequirements;
12503 template <
typename X,
typename Y,
typename...
Z>
12509 getDispatcher()->vkGetImageMemoryRequirements2( static_cast<VkDevice>( m_device ),
12510 reinterpret_cast<const VkImageMemoryRequirementsInfo2 *>( &info ),
12511 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
12513 return structureChain;
12520 getDispatcher()->vkGetBufferMemoryRequirements2( static_cast<VkDevice>( m_device ),
12521 reinterpret_cast<const VkBufferMemoryRequirementsInfo2 *>( &info ),
12522 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
12524 return memoryRequirements;
12527 template <
typename X,
typename Y,
typename...
Z>
12533 getDispatcher()->vkGetBufferMemoryRequirements2( static_cast<VkDevice>( m_device ),
12534 reinterpret_cast<const VkBufferMemoryRequirementsInfo2 *>( &info ),
12535 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
12537 return structureChain;
12543 std::vector<VULKAN_HPP_NAMESPACE::SparseImageMemoryRequirements2> sparseMemoryRequirements;
12544 uint32_t sparseMemoryRequirementCount;
12545 getDispatcher()->vkGetImageSparseMemoryRequirements2(
12546 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( &info ), &sparseMemoryRequirementCount,
nullptr );
12547 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
12548 getDispatcher()->vkGetImageSparseMemoryRequirements2( static_cast<VkDevice>( m_device ),
12549 reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( &info ),
12550 &sparseMemoryRequirementCount,
12551 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
12553 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
12554 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
12556 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
12558 return sparseMemoryRequirements;
12564 getDispatcher()->vkGetPhysicalDeviceFeatures2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12565 reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
12570 template <
typename X,
typename Y,
typename...
Z>
12575 getDispatcher()->vkGetPhysicalDeviceFeatures2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12576 reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
12578 return structureChain;
12584 getDispatcher()->vkGetPhysicalDeviceProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12585 reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
12590 template <
typename X,
typename Y,
typename...
Z>
12595 getDispatcher()->vkGetPhysicalDeviceProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12596 reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
12598 return structureChain;
12605 getDispatcher()->vkGetPhysicalDeviceFormatProperties2(
12606 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>(
format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
12608 return formatProperties;
12611 template <
typename X,
typename Y,
typename...
Z>
12617 getDispatcher()->vkGetPhysicalDeviceFormatProperties2(
12618 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>(
format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
12620 return structureChain;
12628 getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12629 reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2 *>( &imageFormatInfo ),
12630 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) );
12633 return imageFormatProperties;
12636 template <
typename X,
typename Y,
typename...
Z>
12643 getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12644 reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2 *>( &imageFormatInfo ),
12645 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) );
12648 return structureChain;
12653 std::vector<VULKAN_HPP_NAMESPACE::QueueFamilyProperties2> queueFamilyProperties;
12654 uint32_t queueFamilyPropertyCount;
12655 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ), &queueFamilyPropertyCount,
nullptr );
12656 queueFamilyProperties.resize( queueFamilyPropertyCount );
12657 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12658 &queueFamilyPropertyCount,
12659 reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
12662 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
12664 queueFamilyProperties.resize( queueFamilyPropertyCount );
12666 return queueFamilyProperties;
12669 template <
typename StructureChain>
12672 std::vector<StructureChain> structureChains;
12673 std::vector<VULKAN_HPP_NAMESPACE::QueueFamilyProperties2> queueFamilyProperties;
12674 uint32_t queueFamilyPropertyCount;
12675 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ), &queueFamilyPropertyCount,
nullptr );
12676 structureChains.resize( queueFamilyPropertyCount );
12677 queueFamilyProperties.resize( queueFamilyPropertyCount );
12678 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
12680 queueFamilyProperties[i].pNext = structureChains[i].template get<VULKAN_HPP_NAMESPACE::QueueFamilyProperties2>().pNext;
12682 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12683 &queueFamilyPropertyCount,
12684 reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
12687 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
12689 structureChains.resize( queueFamilyPropertyCount );
12691 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
12693 structureChains[i].template get<VULKAN_HPP_NAMESPACE::QueueFamilyProperties2>() = queueFamilyProperties[i];
12695 return structureChains;
12699 PhysicalDevice::getMemoryProperties2() const VULKAN_HPP_NOEXCEPT
12702 getDispatcher()->vkGetPhysicalDeviceMemoryProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12703 reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
12705 return memoryProperties;
12708 template <
typename X,
typename Y,
typename...
Z>
12713 structureChain.template get<VULKAN_HPP_NAMESPACE::PhysicalDeviceMemoryProperties2>();
12714 getDispatcher()->vkGetPhysicalDeviceMemoryProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12715 reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
12717 return structureChain;
12723 std::vector<VULKAN_HPP_NAMESPACE::SparseImageFormatProperties2> properties;
12724 uint32_t propertyCount;
12725 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12726 reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( &formatInfo ),
12729 properties.resize( propertyCount );
12730 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12731 reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( &formatInfo ),
12733 reinterpret_cast<VkSparseImageFormatProperties2 *>( properties.data() ) );
12736 if ( propertyCount < properties.size() )
12738 properties.resize( propertyCount );
12745 getDispatcher()->vkTrimCommandPool(
12746 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( m_commandPool ), static_cast<VkCommandPoolTrimFlags>(
flags ) );
12768 template <
typename DataType>
12772 getDispatcher()->vkUpdateDescriptorSetWithTemplate( static_cast<VkDevice>( m_device ),
12773 static_cast<VkDescriptorSet>( m_descriptorSet ),
12774 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
12775 reinterpret_cast<const void *>( &
data ) );
12782 getDispatcher()->vkGetPhysicalDeviceExternalBufferProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12783 reinterpret_cast<const VkPhysicalDeviceExternalBufferInfo *>( &externalBufferInfo ),
12784 reinterpret_cast<VkExternalBufferProperties *>( &externalBufferProperties ) );
12786 return externalBufferProperties;
12793 getDispatcher()->vkGetPhysicalDeviceExternalFenceProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12794 reinterpret_cast<const VkPhysicalDeviceExternalFenceInfo *>( &externalFenceInfo ),
12795 reinterpret_cast<VkExternalFenceProperties *>( &externalFenceProperties ) );
12797 return externalFenceProperties;
12804 getDispatcher()->vkGetPhysicalDeviceExternalSemaphoreProperties(
12805 static_cast<VkPhysicalDevice>( m_physicalDevice ),
12806 reinterpret_cast<const VkPhysicalDeviceExternalSemaphoreInfo *>( &externalSemaphoreInfo ),
12807 reinterpret_cast<VkExternalSemaphoreProperties *>( &externalSemaphoreProperties ) );
12809 return externalSemaphoreProperties;
12816 getDispatcher()->vkGetDescriptorSetLayoutSupport( static_cast<VkDevice>( m_device ),
12817 reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( &createInfo ),
12818 reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
12823 template <
typename X,
typename Y,
typename...
Z>
12829 getDispatcher()->vkGetDescriptorSetLayoutSupport( static_cast<VkDevice>( m_device ),
12830 reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( &createInfo ),
12831 reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
12833 return structureChain;
12842 uint32_t maxDrawCount,
12843 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
12845 getDispatcher()->vkCmdDrawIndirectCount( static_cast<VkCommandBuffer>( m_commandBuffer ),
12846 static_cast<VkBuffer>(
buffer ),
12847 static_cast<VkDeviceSize>(
offset ),
12848 static_cast<VkBuffer>( countBuffer ),
12849 static_cast<VkDeviceSize>( countBufferOffset ),
12858 uint32_t maxDrawCount,
12859 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
12861 getDispatcher()->vkCmdDrawIndexedIndirectCount( static_cast<VkCommandBuffer>( m_commandBuffer ),
12862 static_cast<VkBuffer>(
buffer ),
12863 static_cast<VkDeviceSize>(
offset ),
12864 static_cast<VkBuffer>( countBuffer ),
12865 static_cast<VkDeviceSize>( countBufferOffset ),
12880 getDispatcher()->vkCmdBeginRenderPass2( static_cast<VkCommandBuffer>( m_commandBuffer ),
12881 reinterpret_cast<const VkRenderPassBeginInfo *>( &renderPassBegin ),
12882 reinterpret_cast<const VkSubpassBeginInfo *>( &subpassBeginInfo ) );
12888 getDispatcher()->vkCmdNextSubpass2( static_cast<VkCommandBuffer>( m_commandBuffer ),
12889 reinterpret_cast<const VkSubpassBeginInfo *>( &subpassBeginInfo ),
12890 reinterpret_cast<const VkSubpassEndInfo *>( &subpassEndInfo ) );
12895 getDispatcher()->vkCmdEndRenderPass2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkSubpassEndInfo *>( &subpassEndInfo ) );
12900 getDispatcher()->vkResetQueryPool( static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( m_queryPool ), firstQuery, queryCount );
12906 VkResult result = getDispatcher()->vkGetSemaphoreCounterValue( static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( m_semaphore ), &value );
12916 getDispatcher()->vkWaitSemaphores( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreWaitInfo *>( &waitInfo ), timeout );
12917 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
12926 VkResult result = getDispatcher()->vkSignalSemaphore( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreSignalInfo *>( &signalInfo ) );
12934 getDispatcher()->vkGetBufferDeviceAddress( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkBufferDeviceAddressInfo *>( &info ) );
12943 getDispatcher()->vkGetBufferOpaqueCaptureAddress( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkBufferDeviceAddressInfo *>( &info ) );
12951 uint64_t result = getDispatcher()->vkGetDeviceMemoryOpaqueCaptureAddress( static_cast<VkDevice>( m_device ),
12952 reinterpret_cast<const VkDeviceMemoryOpaqueCaptureAddressInfo *>( &info ) );
12961 std::vector<VULKAN_HPP_NAMESPACE::PhysicalDeviceToolProperties> toolProperties;
12962 uint32_t toolCount;
12966 result = getDispatcher()->vkGetPhysicalDeviceToolProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ), &toolCount,
nullptr );
12967 if ( ( result ==
VK_SUCCESS ) && toolCount )
12969 toolProperties.resize( toolCount );
12970 result = getDispatcher()->vkGetPhysicalDeviceToolProperties(
12971 static_cast<VkPhysicalDevice>( m_physicalDevice ), &toolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( toolProperties.data() ) );
12976 if ( toolCount < toolProperties.size() )
12978 toolProperties.resize( toolCount );
12980 return toolProperties;
12991 uint64_t objectHandle,
12993 uint64_t
data )
const
12995 VkResult result = getDispatcher()->vkSetPrivateData(
12996 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), data );
13001 uint64_t objectHandle,
13005 getDispatcher()->vkGetPrivateData(
13006 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), &data );
13014 getDispatcher()->vkCmdSetEvent2(
13015 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>(
event ), reinterpret_cast<const VkDependencyInfo *>( &dependencyInfo ) );
13021 getDispatcher()->vkCmdResetEvent2(
13022 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>(
event ), static_cast<VkPipelineStageFlags2>( stageMask ) );
13029 if ( events.
size() != dependencyInfos.
size() )
13034 getDispatcher()->vkCmdWaitEvents2( static_cast<VkCommandBuffer>( m_commandBuffer ),
13036 reinterpret_cast<const VkEvent *
>( events.
data() ),
13037 reinterpret_cast<const VkDependencyInfo *>( dependencyInfos.
data() ) );
13042 getDispatcher()->vkCmdPipelineBarrier2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkDependencyInfo *>( &dependencyInfo ) );
13047 uint32_t
query )
const VULKAN_HPP_NOEXCEPT
13049 getDispatcher()->vkCmdWriteTimestamp2(
13050 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineStageFlags2>( stage ), static_cast<VkQueryPool>( queryPool ),
query );
13056 VkResult result = getDispatcher()->vkQueueSubmit2(
13057 static_cast<VkQueue>( m_queue ), submits.
size(),
reinterpret_cast<const VkSubmitInfo2 *
>( submits.
data() ), static_cast<VkFence>( fence ) );
13063 getDispatcher()->vkCmdCopyBuffer2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyBufferInfo2 *>( ©BufferInfo ) );
13068 getDispatcher()->vkCmdCopyImage2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyImageInfo2 *>( ©ImageInfo ) );
13074 getDispatcher()->vkCmdCopyBufferToImage2( static_cast<VkCommandBuffer>( m_commandBuffer ),
13075 reinterpret_cast<const VkCopyBufferToImageInfo2 *>( ©BufferToImageInfo ) );
13081 getDispatcher()->vkCmdCopyImageToBuffer2( static_cast<VkCommandBuffer>( m_commandBuffer ),
13082 reinterpret_cast<const VkCopyImageToBufferInfo2 *>( ©ImageToBufferInfo ) );
13087 getDispatcher()->vkCmdBlitImage2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkBlitImageInfo2 *>( &blitImageInfo ) );
13092 getDispatcher()->vkCmdResolveImage2( static_cast<VkCommandBuffer>( m_commandBuffer ),
13093 reinterpret_cast<const VkResolveImageInfo2 *>( &resolveImageInfo ) );
13098 getDispatcher()->vkCmdBeginRendering( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkRenderingInfo *>( &renderingInfo ) );
13103 getDispatcher()->vkCmdEndRendering( static_cast<VkCommandBuffer>( m_commandBuffer ) );
13108 getDispatcher()->vkCmdSetCullMode( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCullModeFlags>( cullMode ) );
13113 getDispatcher()->vkCmdSetFrontFace( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkFrontFace>( frontFace ) );
13118 getDispatcher()->vkCmdSetPrimitiveTopology( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPrimitiveTopology>( primitiveTopology ) );
13124 getDispatcher()->vkCmdSetViewportWithCount(
13125 static_cast<VkCommandBuffer>( m_commandBuffer ), viewports.size(),
reinterpret_cast<const VkViewport *
>( viewports.data() ) );
13131 getDispatcher()->vkCmdSetScissorWithCount(
13132 static_cast<VkCommandBuffer>( m_commandBuffer ), scissors.size(),
reinterpret_cast<const VkRect2D *
>( scissors.data() ) );
13135 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers2( uint32_t firstBinding,
13141 if ( buffers.
size() != offsets.
size() )
13149 if ( !strides.
empty() && buffers.
size() != strides.
size() )
13154 getDispatcher()->vkCmdBindVertexBuffers2( static_cast<VkCommandBuffer>( m_commandBuffer ),
13157 reinterpret_cast<const VkBuffer *
>( buffers.
data() ),
13158 reinterpret_cast<const VkDeviceSize *>( offsets.
data() ),
13159 reinterpret_cast<const VkDeviceSize *>( sizes.
data() ),
13160 reinterpret_cast<const VkDeviceSize *>( strides.
data() ) );
13165 getDispatcher()->vkCmdSetDepthTestEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthTestEnable ) );
13170 getDispatcher()->vkCmdSetDepthWriteEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthWriteEnable ) );
13175 getDispatcher()->vkCmdSetDepthCompareOp( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCompareOp>( depthCompareOp ) );
13180 getDispatcher()->vkCmdSetDepthBoundsTestEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBoundsTestEnable ) );
13185 getDispatcher()->vkCmdSetStencilTestEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( stencilTestEnable ) );
13194 getDispatcher()->vkCmdSetStencilOp( static_cast<VkCommandBuffer>( m_commandBuffer ),
13195 static_cast<VkStencilFaceFlags>( faceMask ),
13196 static_cast<VkStencilOp>( failOp ),
13197 static_cast<VkStencilOp>( passOp ),
13198 static_cast<VkStencilOp>( depthFailOp ),
13199 static_cast<VkCompareOp>( compareOp ) );
13204 getDispatcher()->vkCmdSetRasterizerDiscardEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( rasterizerDiscardEnable ) );
13209 getDispatcher()->vkCmdSetDepthBiasEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBiasEnable ) );
13214 getDispatcher()->vkCmdSetPrimitiveRestartEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( primitiveRestartEnable ) );
13221 getDispatcher()->vkGetDeviceBufferMemoryRequirements( static_cast<VkDevice>( m_device ),
13222 reinterpret_cast<const VkDeviceBufferMemoryRequirements *>( &info ),
13223 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
13225 return memoryRequirements;
13228 template <
typename X,
typename Y,
typename...
Z>
13234 getDispatcher()->vkGetDeviceBufferMemoryRequirements( static_cast<VkDevice>( m_device ),
13235 reinterpret_cast<const VkDeviceBufferMemoryRequirements *>( &info ),
13236 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
13238 return structureChain;
13245 getDispatcher()->vkGetDeviceImageMemoryRequirements( static_cast<VkDevice>( m_device ),
13246 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ),
13247 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
13249 return memoryRequirements;
13252 template <
typename X,
typename Y,
typename...
Z>
13258 getDispatcher()->vkGetDeviceImageMemoryRequirements( static_cast<VkDevice>( m_device ),
13259 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ),
13260 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
13262 return structureChain;
13268 std::vector<VULKAN_HPP_NAMESPACE::SparseImageMemoryRequirements2> sparseMemoryRequirements;
13269 uint32_t sparseMemoryRequirementCount;
13270 getDispatcher()->vkGetDeviceImageSparseMemoryRequirements(
13271 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ), &sparseMemoryRequirementCount,
nullptr );
13272 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
13273 getDispatcher()->vkGetDeviceImageSparseMemoryRequirements( static_cast<VkDevice>( m_device ),
13274 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ),
13275 &sparseMemoryRequirementCount,
13276 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
13278 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
13279 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
13281 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
13283 return sparseMemoryRequirements;
13292 "Function <vkGetPhysicalDeviceSurfaceSupportKHR> needs extension <VK_KHR_surface> enabled!" );
13295 VkResult result = getDispatcher()->vkGetPhysicalDeviceSurfaceSupportKHR(
13296 static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkBool32 *>( &supported ) );
13306 "Function <vkGetPhysicalDeviceSurfaceCapabilitiesKHR> needs extension <VK_KHR_surface> enabled!" );
13309 VkResult result = getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13310 static_cast<VkSurfaceKHR>( surface ),
13311 reinterpret_cast<VkSurfaceCapabilitiesKHR *>( &surfaceCapabilities ) );
13314 return surfaceCapabilities;
13321 "Function <vkGetPhysicalDeviceSurfaceFormatsKHR> needs extension <VK_KHR_surface> enabled!" );
13323 std::vector<VULKAN_HPP_NAMESPACE::SurfaceFormatKHR> surfaceFormats;
13324 uint32_t surfaceFormatCount;
13328 result = getDispatcher()->vkGetPhysicalDeviceSurfaceFormatsKHR(
13329 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkSurfaceKHR>( surface ), &surfaceFormatCount,
nullptr );
13330 if ( ( result ==
VK_SUCCESS ) && surfaceFormatCount )
13332 surfaceFormats.resize( surfaceFormatCount );
13333 result = getDispatcher()->vkGetPhysicalDeviceSurfaceFormatsKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13334 static_cast<VkSurfaceKHR>( surface ),
13335 &surfaceFormatCount,
13336 reinterpret_cast<VkSurfaceFormatKHR *>( surfaceFormats.data() ) );
13341 if ( surfaceFormatCount < surfaceFormats.size() )
13343 surfaceFormats.resize( surfaceFormatCount );
13345 return surfaceFormats;
13352 "Function <vkGetPhysicalDeviceSurfacePresentModesKHR> needs extension <VK_KHR_surface> enabled!" );
13354 std::vector<VULKAN_HPP_NAMESPACE::PresentModeKHR> presentModes;
13355 uint32_t presentModeCount;
13359 result = getDispatcher()->vkGetPhysicalDeviceSurfacePresentModesKHR(
13360 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkSurfaceKHR>( surface ), &presentModeCount,
nullptr );
13361 if ( ( result ==
VK_SUCCESS ) && presentModeCount )
13363 presentModes.resize( presentModeCount );
13364 result = getDispatcher()->vkGetPhysicalDeviceSurfacePresentModesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13365 static_cast<VkSurfaceKHR>( surface ),
13367 reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) );
13372 if ( presentModeCount < presentModes.size() )
13374 presentModes.resize( presentModeCount );
13376 return presentModes;
13392 std::vector<VULKAN_HPP_NAMESPACE::Image> swapchainImages;
13393 uint32_t swapchainImageCount;
13397 result = getDispatcher()->vkGetSwapchainImagesKHR(
13398 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchain ), &swapchainImageCount,
nullptr );
13399 if ( ( result ==
VK_SUCCESS ) && swapchainImageCount )
13401 swapchainImages.resize( swapchainImageCount );
13402 result = getDispatcher()->vkGetSwapchainImagesKHR( static_cast<VkDevice>( m_device ),
13403 static_cast<VkSwapchainKHR>( m_swapchain ),
13404 &swapchainImageCount,
13405 reinterpret_cast<VkImage *>( swapchainImages.data() ) );
13410 if ( swapchainImageCount < swapchainImages.size() )
13412 swapchainImages.resize( swapchainImageCount );
13414 return swapchainImages;
13422 uint32_t imageIndex;
13423 VkResult result = getDispatcher()->vkAcquireNextImageKHR( static_cast<VkDevice>( m_device ),
13424 static_cast<VkSwapchainKHR>( m_swapchain ),
13426 static_cast<VkSemaphore>( semaphore ),
13427 static_cast<VkFence>( fence ),
13429 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
13436 return std::make_pair( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), imageIndex );
13443 VkResult result = getDispatcher()->vkQueuePresentKHR( static_cast<VkQueue>( m_queue ), reinterpret_cast<const VkPresentInfoKHR *>( &presentInfo ) );
13444 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
13454 "Function <vkGetDeviceGroupPresentCapabilitiesKHR> needs extension <VK_KHR_swapchain> enabled!" );
13457 VkResult result = getDispatcher()->vkGetDeviceGroupPresentCapabilitiesKHR(
13458 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceGroupPresentCapabilitiesKHR *>( &deviceGroupPresentCapabilities ) );
13461 return deviceGroupPresentCapabilities;
13468 "Function <vkGetDeviceGroupSurfacePresentModesKHR> needs extension <VK_KHR_swapchain> enabled!" );
13471 VkResult result = getDispatcher()->vkGetDeviceGroupSurfacePresentModesKHR(
13472 static_cast<VkDevice>( m_device ), static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( &modes ) );
13482 "Function <vkGetPhysicalDevicePresentRectanglesKHR> needs extension <VK_KHR_swapchain> enabled!" );
13484 std::vector<VULKAN_HPP_NAMESPACE::Rect2D> rects;
13485 uint32_t rectCount;
13489 result = getDispatcher()->vkGetPhysicalDevicePresentRectanglesKHR(
13490 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkSurfaceKHR>( surface ), &rectCount,
nullptr );
13491 if ( ( result ==
VK_SUCCESS ) && rectCount )
13493 rects.resize( rectCount );
13494 result = getDispatcher()->vkGetPhysicalDevicePresentRectanglesKHR(
13495 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkSurfaceKHR>( surface ), &rectCount, reinterpret_cast<VkRect2D *>( rects.data() ) );
13500 if ( rectCount < rects.size() )
13502 rects.resize( rectCount );
13512 uint32_t imageIndex;
13513 VkResult result = getDispatcher()->vkAcquireNextImage2KHR(
13514 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkAcquireNextImageInfoKHR *>( &acquireInfo ), &imageIndex );
13515 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
13522 return std::make_pair( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), imageIndex );
13530 "Function <vkGetPhysicalDeviceDisplayPropertiesKHR> needs extension <VK_KHR_display> enabled!" );
13532 std::vector<VULKAN_HPP_NAMESPACE::DisplayPropertiesKHR> properties;
13533 uint32_t propertyCount;
13537 result = getDispatcher()->vkGetPhysicalDeviceDisplayPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount,
nullptr );
13538 if ( ( result ==
VK_SUCCESS ) && propertyCount )
13540 properties.resize( propertyCount );
13541 result = getDispatcher()->vkGetPhysicalDeviceDisplayPropertiesKHR(
13542 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkDisplayPropertiesKHR *>( properties.data() ) );
13547 if ( propertyCount < properties.size() )
13549 properties.resize( propertyCount );
13557 "Function <vkGetPhysicalDeviceDisplayPlanePropertiesKHR> needs extension <VK_KHR_display> enabled!" );
13559 std::vector<VULKAN_HPP_NAMESPACE::DisplayPlanePropertiesKHR> properties;
13560 uint32_t propertyCount;
13564 result = getDispatcher()->vkGetPhysicalDeviceDisplayPlanePropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount,
nullptr );
13565 if ( ( result ==
VK_SUCCESS ) && propertyCount )
13567 properties.resize( propertyCount );
13568 result = getDispatcher()->vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
13569 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkDisplayPlanePropertiesKHR *>( properties.data() ) );
13574 if ( propertyCount < properties.size() )
13576 properties.resize( propertyCount );
13582 PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR( uint32_t planeIndex )
const
13590 "Function <vkGetDisplayModePropertiesKHR> needs extension <VK_KHR_display> enabled!" );
13592 std::vector<VULKAN_HPP_NAMESPACE::DisplayModePropertiesKHR> properties;
13593 uint32_t propertyCount;
13597 result = getDispatcher()->vkGetDisplayModePropertiesKHR(
13598 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( m_display ), &propertyCount,
nullptr );
13599 if ( ( result ==
VK_SUCCESS ) && propertyCount )
13601 properties.resize( propertyCount );
13602 result = getDispatcher()->vkGetDisplayModePropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13603 static_cast<VkDisplayKHR>( m_display ),
13605 reinterpret_cast<VkDisplayModePropertiesKHR *>( properties.data() ) );
13610 if ( propertyCount < properties.size() )
13612 properties.resize( propertyCount );
13625 DisplayModeKHR::getDisplayPlaneCapabilities( uint32_t planeIndex )
const
13628 "Function <vkGetDisplayPlaneCapabilitiesKHR> needs extension <VK_KHR_display> enabled!" );
13631 VkResult result = getDispatcher()->vkGetDisplayPlaneCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13632 static_cast<VkDisplayModeKHR>( m_displayModeKHR ),
13634 reinterpret_cast<VkDisplayPlaneCapabilitiesKHR *>( &capabilities ) );
13637 return capabilities;
13663 # if defined( VK_USE_PLATFORM_XLIB_KHR )
13667 Instance::createXlibSurfaceKHR( VULKAN_HPP_NAMESPACE::XlibSurfaceCreateInfoKHR
const & createInfo,
13674 PhysicalDevice::getXlibPresentationSupportKHR( uint32_t queueFamilyIndex, Display & dpy, VisualID visualID )
const VULKAN_HPP_NOEXCEPT
13677 "Function <vkGetPhysicalDeviceXlibPresentationSupportKHR> needs extension <VK_KHR_xlib_surface> enabled!" );
13680 getDispatcher()->vkGetPhysicalDeviceXlibPresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &dpy, visualID );
13686 # if defined( VK_USE_PLATFORM_XCB_KHR )
13690 Instance::createXcbSurfaceKHR( VULKAN_HPP_NAMESPACE::XcbSurfaceCreateInfoKHR
const & createInfo,
13693 return VULKAN_HPP_RAII_NAMESPACE::SurfaceKHR( *
this, createInfo, allocator );
13697 uint32_t queueFamilyIndex, xcb_connection_t & connection, xcb_visualid_t visual_id )
const VULKAN_HPP_NOEXCEPT
13700 "Function <vkGetPhysicalDeviceXcbPresentationSupportKHR> needs extension <VK_KHR_xcb_surface> enabled!" );
13702 VkBool32 result = getDispatcher()->vkGetPhysicalDeviceXcbPresentationSupportKHR(
13703 static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &connection, visual_id );
13709 # if defined( VK_USE_PLATFORM_WAYLAND_KHR )
13713 Instance::createWaylandSurfaceKHR( VULKAN_HPP_NAMESPACE::WaylandSurfaceCreateInfoKHR
const & createInfo,
13716 return VULKAN_HPP_RAII_NAMESPACE::SurfaceKHR( *
this, createInfo, allocator );
13720 PhysicalDevice::getWaylandPresentationSupportKHR( uint32_t queueFamilyIndex,
struct wl_display & display )
const VULKAN_HPP_NOEXCEPT
13723 "Function <vkGetPhysicalDeviceWaylandPresentationSupportKHR> needs extension <VK_KHR_wayland_surface> enabled!" );
13726 getDispatcher()->vkGetPhysicalDeviceWaylandPresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &display );
13732 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
13736 Instance::createAndroidSurfaceKHR( VULKAN_HPP_NAMESPACE::AndroidSurfaceCreateInfoKHR
const & createInfo,
13739 return VULKAN_HPP_RAII_NAMESPACE::SurfaceKHR( *
this, createInfo, allocator );
13743 # if defined( VK_USE_PLATFORM_WIN32_KHR )
13747 Instance::createWin32SurfaceKHR( VULKAN_HPP_NAMESPACE::Win32SurfaceCreateInfoKHR
const & createInfo,
13750 return VULKAN_HPP_RAII_NAMESPACE::SurfaceKHR( *
this, createInfo, allocator );
13754 PhysicalDevice::getWin32PresentationSupportKHR( uint32_t queueFamilyIndex )
const VULKAN_HPP_NOEXCEPT
13757 "Function <vkGetPhysicalDeviceWin32PresentationSupportKHR> needs extension <VK_KHR_win32_surface> enabled!" );
13759 VkBool32 result = getDispatcher()->vkGetPhysicalDeviceWin32PresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex );
13778 int32_t messageCode,
13784 getDispatcher()->vkDebugReportMessageEXT( static_cast<VkInstance>( m_instance ),
13785 static_cast<VkDebugReportFlagsEXT>(
flags ),
13786 static_cast<VkDebugReportObjectTypeEXT>( objectType_ ),
13790 layerPrefix.c_str(),
13799 "Function <vkDebugMarkerSetObjectTagEXT> needs extension <VK_EXT_debug_marker> enabled!" );
13802 getDispatcher()->vkDebugMarkerSetObjectTagEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkDebugMarkerObjectTagInfoEXT *>( &tagInfo ) );
13809 "Function <vkDebugMarkerSetObjectNameEXT> needs extension <VK_EXT_debug_marker> enabled!" );
13811 VkResult result = getDispatcher()->vkDebugMarkerSetObjectNameEXT( static_cast<VkDevice>( m_device ),
13812 reinterpret_cast<const VkDebugMarkerObjectNameInfoEXT *>( &nameInfo ) );
13820 getDispatcher()->vkCmdDebugMarkerBeginEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
13821 reinterpret_cast<const VkDebugMarkerMarkerInfoEXT *>( &markerInfo ) );
13828 getDispatcher()->vkCmdDebugMarkerEndEXT( static_cast<VkCommandBuffer>( m_commandBuffer ) );
13835 getDispatcher()->vkCmdDebugMarkerInsertEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
13836 reinterpret_cast<const VkDebugMarkerMarkerInfoEXT *>( &markerInfo ) );
13839 # if defined( VK_ENABLE_BETA_EXTENSIONS )
13843 PhysicalDevice::getVideoCapabilitiesKHR(
const VULKAN_HPP_NAMESPACE::VideoProfileInfoKHR & videoProfile )
const
13846 "Function <vkGetPhysicalDeviceVideoCapabilitiesKHR> needs extension <VK_KHR_video_queue> enabled!" );
13848 VULKAN_HPP_NAMESPACE::VideoCapabilitiesKHR capabilities;
13849 VkResult result = getDispatcher()->vkGetPhysicalDeviceVideoCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13850 reinterpret_cast<const VkVideoProfileInfoKHR *>( &videoProfile ),
13851 reinterpret_cast<VkVideoCapabilitiesKHR *>( &capabilities ) );
13854 return capabilities;
13857 template <
typename X,
typename Y,
typename...
Z>
13859 PhysicalDevice::getVideoCapabilitiesKHR(
const VULKAN_HPP_NAMESPACE::VideoProfileInfoKHR & videoProfile )
const
13862 "Function <vkGetPhysicalDeviceVideoCapabilitiesKHR> needs extension <VK_KHR_video_queue> enabled!" );
13865 VULKAN_HPP_NAMESPACE::VideoCapabilitiesKHR & capabilities = structureChain.template get<VULKAN_HPP_NAMESPACE::VideoCapabilitiesKHR>();
13866 VkResult result = getDispatcher()->vkGetPhysicalDeviceVideoCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13867 reinterpret_cast<const VkVideoProfileInfoKHR *>( &videoProfile ),
13868 reinterpret_cast<VkVideoCapabilitiesKHR *>( &capabilities ) );
13871 return structureChain;
13875 PhysicalDevice::getVideoFormatPropertiesKHR(
const VULKAN_HPP_NAMESPACE::PhysicalDeviceVideoFormatInfoKHR & videoFormatInfo )
const
13878 "Function <vkGetPhysicalDeviceVideoFormatPropertiesKHR> needs extension <VK_KHR_video_queue> enabled!" );
13880 std::vector<VULKAN_HPP_NAMESPACE::VideoFormatPropertiesKHR> videoFormatProperties;
13881 uint32_t videoFormatPropertyCount;
13885 result = getDispatcher()->vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13886 reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ),
13887 &videoFormatPropertyCount,
13889 if ( ( result ==
VK_SUCCESS ) && videoFormatPropertyCount )
13891 videoFormatProperties.resize( videoFormatPropertyCount );
13893 getDispatcher()->vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13894 reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ),
13895 &videoFormatPropertyCount,
13896 reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) );
13901 if ( videoFormatPropertyCount < videoFormatProperties.size() )
13903 videoFormatProperties.resize( videoFormatPropertyCount );
13905 return videoFormatProperties;
13909 Device::createVideoSessionKHR( VULKAN_HPP_NAMESPACE::VideoSessionCreateInfoKHR
const & createInfo,
13912 return VULKAN_HPP_RAII_NAMESPACE::VideoSessionKHR( *
this, createInfo, allocator );
13918 "Function <vkGetVideoSessionMemoryRequirementsKHR> needs extension <VK_KHR_video_queue> enabled!" );
13920 std::vector<VULKAN_HPP_NAMESPACE::VideoSessionMemoryRequirementsKHR> memoryRequirements;
13921 uint32_t memoryRequirementsCount;
13925 result = getDispatcher()->vkGetVideoSessionMemoryRequirementsKHR(
13926 static_cast<VkDevice>( m_device ), static_cast<VkVideoSessionKHR>( m_videoSession ), &memoryRequirementsCount,
nullptr );
13927 if ( ( result ==
VK_SUCCESS ) && memoryRequirementsCount )
13929 memoryRequirements.resize( memoryRequirementsCount );
13931 getDispatcher()->vkGetVideoSessionMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
13932 static_cast<VkVideoSessionKHR>( m_videoSession ),
13933 &memoryRequirementsCount,
13934 reinterpret_cast<VkVideoSessionMemoryRequirementsKHR *>( memoryRequirements.data() ) );
13939 if ( memoryRequirementsCount < memoryRequirements.size() )
13941 memoryRequirements.resize( memoryRequirementsCount );
13943 return memoryRequirements;
13950 "Function <vkBindVideoSessionMemoryKHR> needs extension <VK_KHR_video_queue> enabled!" );
13953 getDispatcher()->vkBindVideoSessionMemoryKHR( static_cast<VkDevice>( m_device ),
13954 static_cast<VkVideoSessionKHR>( m_videoSession ),
13955 bindSessionMemoryInfos.
size(),
13961 Device::createVideoSessionParametersKHR( VULKAN_HPP_NAMESPACE::VideoSessionParametersCreateInfoKHR
const & createInfo,
13964 return VULKAN_HPP_RAII_NAMESPACE::VideoSessionParametersKHR( *
this, createInfo, allocator );
13967 VULKAN_HPP_INLINE void VideoSessionParametersKHR::update(
const VULKAN_HPP_NAMESPACE::VideoSessionParametersUpdateInfoKHR & updateInfo )
const
13970 "Function <vkUpdateVideoSessionParametersKHR> needs extension <VK_KHR_video_queue> enabled!" );
13972 VkResult result = getDispatcher()->vkUpdateVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
13973 static_cast<VkVideoSessionParametersKHR>( m_videoSessionParameters ),
13974 reinterpret_cast<const VkVideoSessionParametersUpdateInfoKHR *>( &updateInfo ) );
13978 VULKAN_HPP_INLINE void CommandBuffer::beginVideoCodingKHR(
const VULKAN_HPP_NAMESPACE::VideoBeginCodingInfoKHR & beginInfo )
const VULKAN_HPP_NOEXCEPT
13982 getDispatcher()->vkCmdBeginVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
13983 reinterpret_cast<const VkVideoBeginCodingInfoKHR *>( &beginInfo ) );
13986 VULKAN_HPP_INLINE void CommandBuffer::endVideoCodingKHR(
const VULKAN_HPP_NAMESPACE::VideoEndCodingInfoKHR & endCodingInfo )
const VULKAN_HPP_NOEXCEPT
13990 getDispatcher()->vkCmdEndVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
13991 reinterpret_cast<const VkVideoEndCodingInfoKHR *>( &endCodingInfo ) );
13995 CommandBuffer::controlVideoCodingKHR(
const VULKAN_HPP_NAMESPACE::VideoCodingControlInfoKHR & codingControlInfo )
const VULKAN_HPP_NOEXCEPT
13999 getDispatcher()->vkCmdControlVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
14000 reinterpret_cast<const VkVideoCodingControlInfoKHR *>( &codingControlInfo ) );
14004 # if defined( VK_ENABLE_BETA_EXTENSIONS )
14007 VULKAN_HPP_INLINE void CommandBuffer::decodeVideoKHR(
const VULKAN_HPP_NAMESPACE::VideoDecodeInfoKHR & decodeInfo )
const VULKAN_HPP_NOEXCEPT
14011 getDispatcher()->vkCmdDecodeVideoKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkVideoDecodeInfoKHR *>( &decodeInfo ) );
14018 CommandBuffer::bindTransformFeedbackBuffersEXT( uint32_t firstBinding,
14024 "Function <vkCmdBindTransformFeedbackBuffersEXT> needs extension <VK_EXT_transform_feedback> enabled!" );
14025 if ( buffers.
size() != offsets.
size() )
14027 throw LogicError(
VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindTransformFeedbackBuffersEXT: buffers.size() != offsets.size()" );
14031 throw LogicError(
VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindTransformFeedbackBuffersEXT: buffers.size() != sizes.size()" );
14034 getDispatcher()->vkCmdBindTransformFeedbackBuffersEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
14037 reinterpret_cast<const VkBuffer *
>( buffers.
data() ),
14038 reinterpret_cast<const VkDeviceSize *>( offsets.
data() ),
14039 reinterpret_cast<const VkDeviceSize *>( sizes.
data() ) );
14043 CommandBuffer::beginTransformFeedbackEXT( uint32_t firstCounterBuffer,
14048 "Function <vkCmdBeginTransformFeedbackEXT> needs extension <VK_EXT_transform_feedback> enabled!" );
14049 if ( !counterBufferOffsets.
empty() && counterBuffers.
size() != counterBufferOffsets.
size() )
14051 throw LogicError(
VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::beginTransformFeedbackEXT: counterBuffers.size() != counterBufferOffsets.size()" );
14054 getDispatcher()->vkCmdBeginTransformFeedbackEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
14055 firstCounterBuffer,
14056 counterBuffers.
size(),
14057 reinterpret_cast<const VkBuffer *
>( counterBuffers.
data() ),
14058 reinterpret_cast<const VkDeviceSize *>( counterBufferOffsets.
data() ) );
14062 CommandBuffer::endTransformFeedbackEXT( uint32_t firstCounterBuffer,
14067 "Function <vkCmdEndTransformFeedbackEXT> needs extension <VK_EXT_transform_feedback> enabled!" );
14068 if ( !counterBufferOffsets.
empty() && counterBuffers.
size() != counterBufferOffsets.
size() )
14070 throw LogicError(
VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::endTransformFeedbackEXT: counterBuffers.size() != counterBufferOffsets.size()" );
14073 getDispatcher()->vkCmdEndTransformFeedbackEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
14074 firstCounterBuffer,
14075 counterBuffers.
size(),
14076 reinterpret_cast<const VkBuffer *
>( counterBuffers.
data() ),
14077 reinterpret_cast<const VkDeviceSize *>( counterBufferOffsets.
data() ) );
14083 uint32_t
index )
const VULKAN_HPP_NOEXCEPT
14086 "Function <vkCmdBeginQueryIndexedEXT> needs extension <VK_EXT_transform_feedback> enabled!" );
14088 getDispatcher()->vkCmdBeginQueryIndexedEXT(
14089 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ),
query, static_cast<VkQueryControlFlags>(
flags ),
index );
14096 "Function <vkCmdEndQueryIndexedEXT> needs extension <VK_EXT_transform_feedback> enabled!" );
14098 getDispatcher()->vkCmdEndQueryIndexedEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ),
query,
index );
14102 uint32_t firstInstance,
14105 uint32_t counterOffset,
14106 uint32_t vertexStride )
const VULKAN_HPP_NOEXCEPT
14109 "Function <vkCmdDrawIndirectByteCountEXT> needs extension <VK_EXT_transform_feedback> enabled!" );
14111 getDispatcher()->vkCmdDrawIndirectByteCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
14114 static_cast<VkBuffer>( counterBuffer ),
14115 static_cast<VkDeviceSize>( counterBufferOffset ),
14140 getDispatcher()->vkCmdCuLaunchKernelNVX( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCuLaunchInfoNVX *>( &launchInfo ) );
14151 getDispatcher()->vkGetImageViewHandleNVX( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImageViewHandleInfoNVX *>( &info ) );
14159 "Function <vkGetImageViewAddressNVX> needs extension <VK_NVX_image_view_handle> enabled!" );
14162 VkResult result = getDispatcher()->vkGetImageViewAddressNVX(
14163 static_cast<VkDevice>( m_device ), static_cast<VkImageView>( m_imageView ), reinterpret_cast<VkImageViewAddressPropertiesNVX *>( &properties ) );
14175 uint32_t maxDrawCount,
14176 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
14179 "Function <vkCmdDrawIndirectCountAMD> needs extension <VK_AMD_draw_indirect_count> enabled!" );
14181 getDispatcher()->vkCmdDrawIndirectCountAMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
14182 static_cast<VkBuffer>(
buffer ),
14183 static_cast<VkDeviceSize>(
offset ),
14184 static_cast<VkBuffer>( countBuffer ),
14185 static_cast<VkDeviceSize>( countBufferOffset ),
14194 uint32_t maxDrawCount,
14195 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
14198 "Function <vkCmdDrawIndexedIndirectCountAMD> needs extension <VK_AMD_draw_indirect_count> enabled!" );
14200 getDispatcher()->vkCmdDrawIndexedIndirectCountAMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
14201 static_cast<VkBuffer>(
buffer ),
14202 static_cast<VkDeviceSize>(
offset ),
14203 static_cast<VkBuffer>( countBuffer ),
14204 static_cast<VkDeviceSize>( countBufferOffset ),
14216 std::vector<uint8_t> info;
14221 result = getDispatcher()->vkGetShaderInfoAMD( static_cast<VkDevice>( m_device ),
14222 static_cast<VkPipeline>( m_pipeline ),
14223 static_cast<VkShaderStageFlagBits>( shaderStage ),
14224 static_cast<VkShaderInfoTypeAMD>( infoType ),
14229 info.resize( infoSize );
14230 result = getDispatcher()->vkGetShaderInfoAMD( static_cast<VkDevice>( m_device ),
14231 static_cast<VkPipeline>( m_pipeline ),
14232 static_cast<VkShaderStageFlagBits>( shaderStage ),
14233 static_cast<VkShaderInfoTypeAMD>( infoType ),
14235 reinterpret_cast<void *>( info.data() ) );
14240 if ( infoSize < info.size() )
14242 info.resize( infoSize );
14253 getDispatcher()->vkCmdBeginRenderingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkRenderingInfo *>( &renderingInfo ) );
14260 getDispatcher()->vkCmdEndRenderingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ) );
14263 # if defined( VK_USE_PLATFORM_GGP )
14267 Instance::createStreamDescriptorSurfaceGGP( VULKAN_HPP_NAMESPACE::StreamDescriptorSurfaceCreateInfoGGP
const & createInfo,
14285 "Function <vkGetPhysicalDeviceExternalImageFormatPropertiesNV> needs extension <VK_NV_external_memory_capabilities> enabled!" );
14288 VkResult result = getDispatcher()->vkGetPhysicalDeviceExternalImageFormatPropertiesNV(
14289 static_cast<VkPhysicalDevice>( m_physicalDevice ),
14290 static_cast<VkFormat>( format ),
14291 static_cast<VkImageType>( type ),
14292 static_cast<VkImageTiling>( tiling ),
14293 static_cast<VkImageUsageFlags>( usage ),
14294 static_cast<VkImageCreateFlags>( flags ),
14295 static_cast<VkExternalMemoryHandleTypeFlagsNV>( externalHandleType ),
14296 reinterpret_cast<VkExternalImageFormatPropertiesNV *>( &externalImageFormatProperties ) );
14299 return externalImageFormatProperties;
14302 # if defined( VK_USE_PLATFORM_WIN32_KHR )
14308 "Function <vkGetMemoryWin32HandleNV> needs extension <VK_NV_external_memory_win32> enabled!" );
14311 VkResult result = getDispatcher()->vkGetMemoryWin32HandleNV(
14312 static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( m_memory ), static_cast<VkExternalMemoryHandleTypeFlagsNV>( handleType ), &handle );
14324 "Function <vkGetPhysicalDeviceFeatures2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14327 getDispatcher()->vkGetPhysicalDeviceFeatures2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14328 reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
14333 template <
typename X,
typename Y,
typename...
Z>
14337 "Function <vkGetPhysicalDeviceFeatures2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14341 getDispatcher()->vkGetPhysicalDeviceFeatures2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14342 reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
14344 return structureChain;
14350 "Function <vkGetPhysicalDeviceProperties2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14353 getDispatcher()->vkGetPhysicalDeviceProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14354 reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
14359 template <
typename X,
typename Y,
typename...
Z>
14363 "Function <vkGetPhysicalDeviceProperties2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14367 getDispatcher()->vkGetPhysicalDeviceProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14368 reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
14370 return structureChain;
14377 "Function <vkGetPhysicalDeviceFormatProperties2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14380 getDispatcher()->vkGetPhysicalDeviceFormatProperties2KHR(
14381 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>(
format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
14383 return formatProperties;
14386 template <
typename X,
typename Y,
typename...
Z>
14391 "Function <vkGetPhysicalDeviceFormatProperties2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14395 getDispatcher()->vkGetPhysicalDeviceFormatProperties2KHR(
14396 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>(
format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
14398 return structureChain;
14405 "Function <vkGetPhysicalDeviceImageFormatProperties2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14409 getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14410 reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2 *>( &imageFormatInfo ),
14411 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) );
14414 return imageFormatProperties;
14417 template <
typename X,
typename Y,
typename...
Z>
14422 "Function <vkGetPhysicalDeviceImageFormatProperties2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14427 getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14428 reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2 *>( &imageFormatInfo ),
14429 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) );
14432 return structureChain;
14438 "Function <vkGetPhysicalDeviceQueueFamilyProperties2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14440 std::vector<VULKAN_HPP_NAMESPACE::QueueFamilyProperties2> queueFamilyProperties;
14441 uint32_t queueFamilyPropertyCount;
14442 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &queueFamilyPropertyCount,
nullptr );
14443 queueFamilyProperties.resize( queueFamilyPropertyCount );
14444 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14445 &queueFamilyPropertyCount,
14446 reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
14449 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
14451 queueFamilyProperties.resize( queueFamilyPropertyCount );
14453 return queueFamilyProperties;
14456 template <
typename StructureChain>
14460 "Function <vkGetPhysicalDeviceQueueFamilyProperties2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14462 std::vector<StructureChain> structureChains;
14463 std::vector<VULKAN_HPP_NAMESPACE::QueueFamilyProperties2> queueFamilyProperties;
14464 uint32_t queueFamilyPropertyCount;
14465 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &queueFamilyPropertyCount,
nullptr );
14466 structureChains.resize( queueFamilyPropertyCount );
14467 queueFamilyProperties.resize( queueFamilyPropertyCount );
14468 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
14470 queueFamilyProperties[i].pNext = structureChains[i].template get<VULKAN_HPP_NAMESPACE::QueueFamilyProperties2>().pNext;
14472 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14473 &queueFamilyPropertyCount,
14474 reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
14477 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
14479 structureChains.resize( queueFamilyPropertyCount );
14481 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
14483 structureChains[i].template get<VULKAN_HPP_NAMESPACE::QueueFamilyProperties2>() = queueFamilyProperties[i];
14485 return structureChains;
14489 PhysicalDevice::getMemoryProperties2KHR() const VULKAN_HPP_NOEXCEPT
14492 "Function <vkGetPhysicalDeviceMemoryProperties2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14495 getDispatcher()->vkGetPhysicalDeviceMemoryProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14496 reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
14498 return memoryProperties;
14501 template <
typename X,
typename Y,
typename...
Z>
14505 "Function <vkGetPhysicalDeviceMemoryProperties2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14509 structureChain.template get<VULKAN_HPP_NAMESPACE::PhysicalDeviceMemoryProperties2>();
14510 getDispatcher()->vkGetPhysicalDeviceMemoryProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14511 reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
14513 return structureChain;
14520 "Function <vkGetPhysicalDeviceSparseImageFormatProperties2KHR> needs extension <VK_KHR_get_physical_device_properties2> enabled!" );
14522 std::vector<VULKAN_HPP_NAMESPACE::SparseImageFormatProperties2> properties;
14523 uint32_t propertyCount;
14524 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14525 reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( &formatInfo ),
14528 properties.resize( propertyCount );
14529 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14530 reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( &formatInfo ),
14532 reinterpret_cast<VkSparseImageFormatProperties2 *>( properties.data() ) );
14535 if ( propertyCount < properties.size() )
14537 properties.resize( propertyCount );
14545 Device::getGroupPeerMemoryFeaturesKHR( uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex )
const VULKAN_HPP_NOEXCEPT
14548 "Function <vkGetDeviceGroupPeerMemoryFeaturesKHR> needs extension <VK_KHR_device_group> enabled!" );
14551 getDispatcher()->vkGetDeviceGroupPeerMemoryFeaturesKHR( static_cast<VkDevice>( m_device ),
14555 reinterpret_cast<VkPeerMemoryFeatureFlags *>( &peerMemoryFeatures ) );
14557 return peerMemoryFeatures;
14564 getDispatcher()->vkCmdSetDeviceMaskKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), deviceMask );
14568 uint32_t baseGroupY,
14569 uint32_t baseGroupZ,
14570 uint32_t groupCountX,
14571 uint32_t groupCountY,
14572 uint32_t groupCountZ )
const VULKAN_HPP_NOEXCEPT
14576 getDispatcher()->vkCmdDispatchBaseKHR(
14577 static_cast<VkCommandBuffer>( m_commandBuffer ), baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ );
14580 # if defined( VK_USE_PLATFORM_VI_NN )
14584 Instance::createViSurfaceNN( VULKAN_HPP_NAMESPACE::ViSurfaceCreateInfoNN
const & createInfo,
14597 getDispatcher()->vkTrimCommandPoolKHR(
14598 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( m_commandPool ), static_cast<VkCommandPoolTrimFlags>(
flags ) );
14606 "Function <vkEnumeratePhysicalDeviceGroupsKHR> needs extension <VK_KHR_device_group_creation> enabled!" );
14608 std::vector<VULKAN_HPP_NAMESPACE::PhysicalDeviceGroupProperties> physicalDeviceGroupProperties;
14609 uint32_t physicalDeviceGroupCount;
14613 result = getDispatcher()->vkEnumeratePhysicalDeviceGroupsKHR( static_cast<VkInstance>( m_instance ), &physicalDeviceGroupCount,
nullptr );
14614 if ( ( result ==
VK_SUCCESS ) && physicalDeviceGroupCount )
14616 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
14618 getDispatcher()->vkEnumeratePhysicalDeviceGroupsKHR( static_cast<VkInstance>( m_instance ),
14619 &physicalDeviceGroupCount,
14620 reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) );
14624 VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
14625 if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
14627 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
14629 return physicalDeviceGroupProperties;
14638 "Function <vkGetPhysicalDeviceExternalBufferPropertiesKHR> needs extension <VK_KHR_external_memory_capabilities> enabled!" );
14641 getDispatcher()->vkGetPhysicalDeviceExternalBufferPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14642 reinterpret_cast<const VkPhysicalDeviceExternalBufferInfo *>( &externalBufferInfo ),
14643 reinterpret_cast<VkExternalBufferProperties *>( &externalBufferProperties ) );
14645 return externalBufferProperties;
14648 # if defined( VK_USE_PLATFORM_WIN32_KHR )
14652 Device::getMemoryWin32HandleKHR(
const VULKAN_HPP_NAMESPACE::MemoryGetWin32HandleInfoKHR & getWin32HandleInfo )
const
14655 "Function <vkGetMemoryWin32HandleKHR> needs extension <VK_KHR_external_memory_win32> enabled!" );
14658 VkResult result = getDispatcher()->vkGetMemoryWin32HandleKHR(
14659 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryGetWin32HandleInfoKHR *>( &getWin32HandleInfo ), &handle );
14669 "Function <vkGetMemoryWin32HandlePropertiesKHR> needs extension <VK_KHR_external_memory_win32> enabled!" );
14671 VULKAN_HPP_NAMESPACE::MemoryWin32HandlePropertiesKHR memoryWin32HandleProperties;
14673 getDispatcher()->vkGetMemoryWin32HandlePropertiesKHR( static_cast<VkDevice>( m_device ),
14674 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
14676 reinterpret_cast<VkMemoryWin32HandlePropertiesKHR *>( &memoryWin32HandleProperties ) );
14679 return memoryWin32HandleProperties;
14691 getDispatcher()->vkGetMemoryFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryGetFdInfoKHR *>( &getFdInfo ), &fd );
14701 "Function <vkGetMemoryFdPropertiesKHR> needs extension <VK_KHR_external_memory_fd> enabled!" );
14704 VkResult result = getDispatcher()->vkGetMemoryFdPropertiesKHR( static_cast<VkDevice>( m_device ),
14705 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
14707 reinterpret_cast<VkMemoryFdPropertiesKHR *>( &memoryFdProperties ) );
14710 return memoryFdProperties;
14719 "Function <vkGetPhysicalDeviceExternalSemaphorePropertiesKHR> needs extension <VK_KHR_external_semaphore_capabilities> enabled!" );
14722 getDispatcher()->vkGetPhysicalDeviceExternalSemaphorePropertiesKHR(
14723 static_cast<VkPhysicalDevice>( m_physicalDevice ),
14724 reinterpret_cast<const VkPhysicalDeviceExternalSemaphoreInfo *>( &externalSemaphoreInfo ),
14725 reinterpret_cast<VkExternalSemaphoreProperties *>( &externalSemaphoreProperties ) );
14727 return externalSemaphoreProperties;
14730 # if defined( VK_USE_PLATFORM_WIN32_KHR )
14734 Device::importSemaphoreWin32HandleKHR(
const VULKAN_HPP_NAMESPACE::ImportSemaphoreWin32HandleInfoKHR & importSemaphoreWin32HandleInfo )
const
14737 "Function <vkImportSemaphoreWin32HandleKHR> needs extension <VK_KHR_external_semaphore_win32> enabled!" );
14739 VkResult result = getDispatcher()->vkImportSemaphoreWin32HandleKHR(
14740 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImportSemaphoreWin32HandleInfoKHR *>( &importSemaphoreWin32HandleInfo ) );
14745 Device::getSemaphoreWin32HandleKHR(
const VULKAN_HPP_NAMESPACE::SemaphoreGetWin32HandleInfoKHR & getWin32HandleInfo )
const
14748 "Function <vkGetSemaphoreWin32HandleKHR> needs extension <VK_KHR_external_semaphore_win32> enabled!" );
14751 VkResult result = getDispatcher()->vkGetSemaphoreWin32HandleKHR(
14752 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreGetWin32HandleInfoKHR *>( &getWin32HandleInfo ), &handle );
14764 "Function <vkImportSemaphoreFdKHR> needs extension <VK_KHR_external_semaphore_fd> enabled!" );
14766 VkResult result = getDispatcher()->vkImportSemaphoreFdKHR( static_cast<VkDevice>( m_device ),
14767 reinterpret_cast<const VkImportSemaphoreFdInfoKHR *>( &importSemaphoreFdInfo ) );
14777 getDispatcher()->vkGetSemaphoreFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreGetFdInfoKHR *>( &getFdInfo ), &fd );
14792 "Function <vkCmdPushDescriptorSetKHR> needs extension <VK_KHR_push_descriptor> enabled!" );
14794 getDispatcher()->vkCmdPushDescriptorSetKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
14795 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
14796 static_cast<VkPipelineLayout>( layout ),
14798 descriptorWrites.size(),
14802 template <
typename DataType>
14809 "Function <vkCmdPushDescriptorSetWithTemplateKHR> needs extension <VK_KHR_push_descriptor> enabled!" );
14811 getDispatcher()->vkCmdPushDescriptorSetWithTemplateKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
14812 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
14813 static_cast<VkPipelineLayout>( layout ),
14815 reinterpret_cast<const void *>( &
data ) );
14824 "Function <vkCmdBeginConditionalRenderingEXT> needs extension <VK_EXT_conditional_rendering> enabled!" );
14826 getDispatcher()->vkCmdBeginConditionalRenderingEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
14827 reinterpret_cast<const VkConditionalRenderingBeginInfoEXT *>( &conditionalRenderingBegin ) );
14833 "Function <vkCmdEndConditionalRenderingEXT> needs extension <VK_EXT_conditional_rendering> enabled!" );
14835 getDispatcher()->vkCmdEndConditionalRenderingEXT( static_cast<VkCommandBuffer>( m_commandBuffer ) );
14852 "Function <vkDestroyDescriptorUpdateTemplateKHR> needs extension <VK_KHR_descriptor_update_template> enabled!" );
14854 getDispatcher()->vkDestroyDescriptorUpdateTemplateKHR(
14855 static_cast<VkDevice>( m_device ),
14856 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
14857 reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ) );
14860 template <
typename DataType>
14865 "Function <vkUpdateDescriptorSetWithTemplateKHR> needs extension <VK_KHR_descriptor_update_template> enabled!" );
14867 getDispatcher()->vkUpdateDescriptorSetWithTemplateKHR( static_cast<VkDevice>( m_device ),
14868 static_cast<VkDescriptorSet>( m_descriptorSet ),
14869 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
14870 reinterpret_cast<const void *>( &
data ) );
14876 uint32_t firstViewport,
14880 "Function <vkCmdSetViewportWScalingNV> needs extension <VK_NV_clip_space_w_scaling> enabled!" );
14882 getDispatcher()->vkCmdSetViewportWScalingNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
14884 viewportWScalings.size(),
14888 # if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT )
14894 "Function <vkAcquireXlibDisplayEXT> needs extension <VK_EXT_acquire_xlib_display> enabled!" );
14897 getDispatcher()->vkAcquireXlibDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), &dpy, static_cast<VkDisplayKHR>( display ) );
14902 RROutput rrOutput )
const
14914 "Function <vkGetPhysicalDeviceSurfaceCapabilities2EXT> needs extension <VK_EXT_display_surface_counter> enabled!" );
14917 VkResult result = getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilities2EXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14918 static_cast<VkSurfaceKHR>( surface ),
14919 reinterpret_cast<VkSurfaceCapabilities2EXT *>( &surfaceCapabilities ) );
14922 return surfaceCapabilities;
14932 VkResult result = getDispatcher()->vkDisplayPowerControlEXT(
14933 static_cast<VkDevice>( m_device ), static_cast<VkDisplayKHR>( display ), reinterpret_cast<const VkDisplayPowerInfoEXT *>( &displayPowerInfo ) );
14956 uint64_t counterValue;
14957 VkResult result = getDispatcher()->vkGetSwapchainCounterEXT(
14958 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchain ), static_cast<VkSurfaceCounterFlagBitsEXT>( counter ), &counterValue );
14961 return counterValue;
14969 "Function <vkGetRefreshCycleDurationGOOGLE> needs extension <VK_GOOGLE_display_timing> enabled!" );
14972 VkResult result = getDispatcher()->vkGetRefreshCycleDurationGOOGLE( static_cast<VkDevice>( m_device ),
14973 static_cast<VkSwapchainKHR>( m_swapchain ),
14974 reinterpret_cast<VkRefreshCycleDurationGOOGLE *>( &displayTimingProperties ) );
14977 return displayTimingProperties;
14983 "Function <vkGetPastPresentationTimingGOOGLE> needs extension <VK_GOOGLE_display_timing> enabled!" );
14985 std::vector<VULKAN_HPP_NAMESPACE::PastPresentationTimingGOOGLE> presentationTimings;
14986 uint32_t presentationTimingCount;
14990 result = getDispatcher()->vkGetPastPresentationTimingGOOGLE(
14991 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchain ), &presentationTimingCount,
nullptr );
14992 if ( ( result ==
VK_SUCCESS ) && presentationTimingCount )
14994 presentationTimings.resize( presentationTimingCount );
14995 result = getDispatcher()->vkGetPastPresentationTimingGOOGLE( static_cast<VkDevice>( m_device ),
14996 static_cast<VkSwapchainKHR>( m_swapchain ),
14997 &presentationTimingCount,
14998 reinterpret_cast<VkPastPresentationTimingGOOGLE *>( presentationTimings.data() ) );
15003 if ( presentationTimingCount < presentationTimings.size() )
15005 presentationTimings.resize( presentationTimingCount );
15007 return presentationTimings;
15016 "Function <vkCmdSetDiscardRectangleEXT> needs extension <VK_EXT_discard_rectangles> enabled!" );
15018 getDispatcher()->vkCmdSetDiscardRectangleEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
15019 firstDiscardRectangle,
15020 discardRectangles.size(),
15021 reinterpret_cast<const VkRect2D *
>( discardRectangles.data() ) );
15030 if ( swapchains.
size() != metadata.
size() )
15035 getDispatcher()->vkSetHdrMetadataEXT( static_cast<VkDevice>( m_device ),
15037 reinterpret_cast<const VkSwapchainKHR *
>( swapchains.
data() ),
15038 reinterpret_cast<const VkHdrMetadataEXT *>( metadata.
data() ) );
15054 "Function <vkCmdBeginRenderPass2KHR> needs extension <VK_KHR_create_renderpass2> enabled!" );
15056 getDispatcher()->vkCmdBeginRenderPass2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
15057 reinterpret_cast<const VkRenderPassBeginInfo *>( &renderPassBegin ),
15058 reinterpret_cast<const VkSubpassBeginInfo *>( &subpassBeginInfo ) );
15066 getDispatcher()->vkCmdNextSubpass2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
15067 reinterpret_cast<const VkSubpassBeginInfo *>( &subpassBeginInfo ),
15068 reinterpret_cast<const VkSubpassEndInfo *>( &subpassEndInfo ) );
15075 getDispatcher()->vkCmdEndRenderPass2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkSubpassEndInfo *>( &subpassEndInfo ) );
15083 "Function <vkGetSwapchainStatusKHR> needs extension <VK_KHR_shared_presentable_image> enabled!" );
15085 VkResult result = getDispatcher()->vkGetSwapchainStatusKHR( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchain ) );
15086 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
15099 "Function <vkGetPhysicalDeviceExternalFencePropertiesKHR> needs extension <VK_KHR_external_fence_capabilities> enabled!" );
15102 getDispatcher()->vkGetPhysicalDeviceExternalFencePropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15103 reinterpret_cast<const VkPhysicalDeviceExternalFenceInfo *>( &externalFenceInfo ),
15104 reinterpret_cast<VkExternalFenceProperties *>( &externalFenceProperties ) );
15106 return externalFenceProperties;
15109 # if defined( VK_USE_PLATFORM_WIN32_KHR )
15112 VULKAN_HPP_INLINE void Device::importFenceWin32HandleKHR(
const VULKAN_HPP_NAMESPACE::ImportFenceWin32HandleInfoKHR & importFenceWin32HandleInfo )
const
15115 "Function <vkImportFenceWin32HandleKHR> needs extension <VK_KHR_external_fence_win32> enabled!" );
15117 VkResult result = getDispatcher()->vkImportFenceWin32HandleKHR(
15118 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImportFenceWin32HandleInfoKHR *>( &importFenceWin32HandleInfo ) );
15123 Device::getFenceWin32HandleKHR(
const VULKAN_HPP_NAMESPACE::FenceGetWin32HandleInfoKHR & getWin32HandleInfo )
const
15126 "Function <vkGetFenceWin32HandleKHR> needs extension <VK_KHR_external_fence_win32> enabled!" );
15129 VkResult result = getDispatcher()->vkGetFenceWin32HandleKHR(
15130 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkFenceGetWin32HandleInfoKHR *>( &getWin32HandleInfo ), &handle );
15144 getDispatcher()->vkImportFenceFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImportFenceFdInfoKHR *>( &importFenceFdInfo ) );
15153 VkResult result = getDispatcher()->vkGetFenceFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkFenceGetFdInfoKHR *>( &getFdInfo ), &fd );
15162 VULKAN_HPP_INLINE std::pair<std::vector<VULKAN_HPP_NAMESPACE::PerformanceCounterKHR>, std::vector<VULKAN_HPP_NAMESPACE::PerformanceCounterDescriptionKHR>>
15163 PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR( uint32_t queueFamilyIndex )
const
15166 "Function <vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR> needs extension <VK_KHR_performance_query> enabled!" );
15168 std::pair<std::vector<VULKAN_HPP_NAMESPACE::PerformanceCounterKHR>, std::vector<VULKAN_HPP_NAMESPACE::PerformanceCounterDescriptionKHR>>
data;
15169 std::vector<VULKAN_HPP_NAMESPACE::PerformanceCounterKHR> & counters = data.first;
15170 std::vector<VULKAN_HPP_NAMESPACE::PerformanceCounterDescriptionKHR> & counterDescriptions = data.second;
15171 uint32_t counterCount;
15175 result = getDispatcher()->vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(
15176 static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &counterCount,
nullptr,
nullptr );
15177 if ( ( result ==
VK_SUCCESS ) && counterCount )
15179 counters.resize( counterCount );
15180 counterDescriptions.resize( counterCount );
15181 result = getDispatcher()->vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(
15182 static_cast<VkPhysicalDevice>( m_physicalDevice ),
15185 reinterpret_cast<VkPerformanceCounterKHR *>( counters.data() ),
15186 reinterpret_cast<VkPerformanceCounterDescriptionKHR *>( counterDescriptions.data() ) );
15189 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
15192 if ( counterCount < counters.size() )
15194 counters.resize( counterCount );
15195 counterDescriptions.resize( counterCount );
15204 "Function <vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR> needs extension <VK_KHR_performance_query> enabled!" );
15206 uint32_t numPasses;
15207 getDispatcher()->vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR(
15208 static_cast<VkPhysicalDevice>( m_physicalDevice ),
15209 reinterpret_cast<const VkQueryPoolPerformanceCreateInfoKHR *>( &performanceQueryCreateInfo ),
15218 "Function <vkAcquireProfilingLockKHR> needs extension <VK_KHR_performance_query> enabled!" );
15221 getDispatcher()->vkAcquireProfilingLockKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkAcquireProfilingLockInfoKHR *>( &info ) );
15228 "Function <vkReleaseProfilingLockKHR> needs extension <VK_KHR_performance_query> enabled!" );
15230 getDispatcher()->vkReleaseProfilingLockKHR( static_cast<VkDevice>( m_device ) );
15239 "Function <vkGetPhysicalDeviceSurfaceCapabilities2KHR> needs extension <VK_KHR_get_surface_capabilities2> enabled!" );
15242 VkResult result = getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilities2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15243 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
15244 reinterpret_cast<VkSurfaceCapabilities2KHR *>( &surfaceCapabilities ) );
15247 return surfaceCapabilities;
15250 template <
typename X,
typename Y,
typename...
Z>
15255 "Function <vkGetPhysicalDeviceSurfaceCapabilities2KHR> needs extension <VK_KHR_get_surface_capabilities2> enabled!" );
15259 VkResult result = getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilities2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15260 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
15261 reinterpret_cast<VkSurfaceCapabilities2KHR *>( &surfaceCapabilities ) );
15264 return structureChain;
15271 "Function <vkGetPhysicalDeviceSurfaceFormats2KHR> needs extension <VK_KHR_get_surface_capabilities2> enabled!" );
15273 std::vector<VULKAN_HPP_NAMESPACE::SurfaceFormat2KHR> surfaceFormats;
15274 uint32_t surfaceFormatCount;
15278 result = getDispatcher()->vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15279 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
15280 &surfaceFormatCount,
15282 if ( ( result ==
VK_SUCCESS ) && surfaceFormatCount )
15284 surfaceFormats.resize( surfaceFormatCount );
15285 result = getDispatcher()->vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15286 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
15287 &surfaceFormatCount,
15288 reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) );
15293 if ( surfaceFormatCount < surfaceFormats.size() )
15295 surfaceFormats.resize( surfaceFormatCount );
15297 return surfaceFormats;
15300 template <
typename StructureChain>
15305 "Function <vkGetPhysicalDeviceSurfaceFormats2KHR> needs extension <VK_KHR_get_surface_capabilities2> enabled!" );
15307 std::vector<StructureChain> structureChains;
15308 std::vector<VULKAN_HPP_NAMESPACE::SurfaceFormat2KHR> surfaceFormats;
15309 uint32_t surfaceFormatCount;
15313 result = getDispatcher()->vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15314 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
15315 &surfaceFormatCount,
15317 if ( ( result ==
VK_SUCCESS ) && surfaceFormatCount )
15319 structureChains.resize( surfaceFormatCount );
15320 surfaceFormats.resize( surfaceFormatCount );
15321 for ( uint32_t i = 0; i < surfaceFormatCount; i++ )
15323 surfaceFormats[i].pNext = structureChains[i].template get<VULKAN_HPP_NAMESPACE::SurfaceFormat2KHR>().pNext;
15325 result = getDispatcher()->vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15326 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
15327 &surfaceFormatCount,
15328 reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) );
15333 if ( surfaceFormatCount < surfaceFormats.size() )
15335 structureChains.resize( surfaceFormatCount );
15337 for ( uint32_t i = 0; i < surfaceFormatCount; i++ )
15339 structureChains[i].template get<VULKAN_HPP_NAMESPACE::SurfaceFormat2KHR>() = surfaceFormats[i];
15341 return structureChains;
15349 "Function <vkGetPhysicalDeviceDisplayProperties2KHR> needs extension <VK_KHR_get_display_properties2> enabled!" );
15351 std::vector<VULKAN_HPP_NAMESPACE::DisplayProperties2KHR> properties;
15352 uint32_t propertyCount;
15356 result = getDispatcher()->vkGetPhysicalDeviceDisplayProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount,
nullptr );
15357 if ( ( result ==
VK_SUCCESS ) && propertyCount )
15359 properties.resize( propertyCount );
15360 result = getDispatcher()->vkGetPhysicalDeviceDisplayProperties2KHR(
15361 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkDisplayProperties2KHR *>( properties.data() ) );
15366 if ( propertyCount < properties.size() )
15368 properties.resize( propertyCount );
15376 "Function <vkGetPhysicalDeviceDisplayPlaneProperties2KHR> needs extension <VK_KHR_get_display_properties2> enabled!" );
15378 std::vector<VULKAN_HPP_NAMESPACE::DisplayPlaneProperties2KHR> properties;
15379 uint32_t propertyCount;
15383 result = getDispatcher()->vkGetPhysicalDeviceDisplayPlaneProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount,
nullptr );
15384 if ( ( result ==
VK_SUCCESS ) && propertyCount )
15386 properties.resize( propertyCount );
15387 result = getDispatcher()->vkGetPhysicalDeviceDisplayPlaneProperties2KHR(
15388 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkDisplayPlaneProperties2KHR *>( properties.data() ) );
15393 if ( propertyCount < properties.size() )
15395 properties.resize( propertyCount );
15403 "Function <vkGetDisplayModeProperties2KHR> needs extension <VK_KHR_get_display_properties2> enabled!" );
15405 std::vector<VULKAN_HPP_NAMESPACE::DisplayModeProperties2KHR> properties;
15406 uint32_t propertyCount;
15410 result = getDispatcher()->vkGetDisplayModeProperties2KHR(
15411 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( m_display ), &propertyCount,
nullptr );
15412 if ( ( result ==
VK_SUCCESS ) && propertyCount )
15414 properties.resize( propertyCount );
15415 result = getDispatcher()->vkGetDisplayModeProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15416 static_cast<VkDisplayKHR>( m_display ),
15418 reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) );
15423 if ( propertyCount < properties.size() )
15425 properties.resize( propertyCount );
15434 "Function <vkGetDisplayPlaneCapabilities2KHR> needs extension <VK_KHR_get_display_properties2> enabled!" );
15437 VkResult result = getDispatcher()->vkGetDisplayPlaneCapabilities2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15438 reinterpret_cast<const VkDisplayPlaneInfo2KHR *>( &displayPlaneInfo ),
15439 reinterpret_cast<VkDisplayPlaneCapabilities2KHR *>( &capabilities ) );
15442 return capabilities;
15445 # if defined( VK_USE_PLATFORM_IOS_MVK )
15449 Instance::createIOSSurfaceMVK( VULKAN_HPP_NAMESPACE::IOSSurfaceCreateInfoMVK
const & createInfo,
15456 # if defined( VK_USE_PLATFORM_MACOS_MVK )
15460 Instance::createMacOSSurfaceMVK( VULKAN_HPP_NAMESPACE::MacOSSurfaceCreateInfoMVK
const & createInfo,
15472 "Function <vkSetDebugUtilsObjectNameEXT> needs extension <VK_EXT_debug_utils> enabled!" );
15474 VkResult result = getDispatcher()->vkSetDebugUtilsObjectNameEXT( static_cast<VkDevice>( m_device ),
15475 reinterpret_cast<const VkDebugUtilsObjectNameInfoEXT *>( &nameInfo ) );
15482 "Function <vkSetDebugUtilsObjectTagEXT> needs extension <VK_EXT_debug_utils> enabled!" );
15485 getDispatcher()->vkSetDebugUtilsObjectTagEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkDebugUtilsObjectTagInfoEXT *>( &tagInfo ) );
15492 "Function <vkQueueBeginDebugUtilsLabelEXT> needs extension <VK_EXT_debug_utils> enabled!" );
15494 getDispatcher()->vkQueueBeginDebugUtilsLabelEXT( static_cast<VkQueue>( m_queue ), reinterpret_cast<const VkDebugUtilsLabelEXT *>( &labelInfo ) );
15500 "Function <vkQueueEndDebugUtilsLabelEXT> needs extension <VK_EXT_debug_utils> enabled!" );
15502 getDispatcher()->vkQueueEndDebugUtilsLabelEXT( static_cast<VkQueue>( m_queue ) );
15508 "Function <vkQueueInsertDebugUtilsLabelEXT> needs extension <VK_EXT_debug_utils> enabled!" );
15510 getDispatcher()->vkQueueInsertDebugUtilsLabelEXT( static_cast<VkQueue>( m_queue ), reinterpret_cast<const VkDebugUtilsLabelEXT *>( &labelInfo ) );
15516 "Function <vkCmdBeginDebugUtilsLabelEXT> needs extension <VK_EXT_debug_utils> enabled!" );
15518 getDispatcher()->vkCmdBeginDebugUtilsLabelEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
15519 reinterpret_cast<const VkDebugUtilsLabelEXT *>( &labelInfo ) );
15526 getDispatcher()->vkCmdEndDebugUtilsLabelEXT( static_cast<VkCommandBuffer>( m_commandBuffer ) );
15532 "Function <vkCmdInsertDebugUtilsLabelEXT> needs extension <VK_EXT_debug_utils> enabled!" );
15534 getDispatcher()->vkCmdInsertDebugUtilsLabelEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
15535 reinterpret_cast<const VkDebugUtilsLabelEXT *>( &labelInfo ) );
15551 "Function <vkSubmitDebugUtilsMessageEXT> needs extension <VK_EXT_debug_utils> enabled!" );
15553 getDispatcher()->vkSubmitDebugUtilsMessageEXT( static_cast<VkInstance>( m_instance ),
15554 static_cast<VkDebugUtilsMessageSeverityFlagBitsEXT>( messageSeverity ),
15555 static_cast<VkDebugUtilsMessageTypeFlagsEXT>( messageTypes ),
15556 reinterpret_cast<const VkDebugUtilsMessengerCallbackDataEXT *>( &callbackData ) );
15559 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
15563 Device::getAndroidHardwareBufferPropertiesANDROID(
const struct AHardwareBuffer &
buffer )
const
15567 "Function <vkGetAndroidHardwareBufferPropertiesANDROID> needs extension <VK_ANDROID_external_memory_android_hardware_buffer> enabled!" );
15569 VULKAN_HPP_NAMESPACE::AndroidHardwareBufferPropertiesANDROID properties;
15570 VkResult result = getDispatcher()->vkGetAndroidHardwareBufferPropertiesANDROID(
15571 static_cast<VkDevice>( m_device ), &buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID *>( &properties ) );
15577 template <
typename X,
typename Y,
typename...
Z>
15579 Device::getAndroidHardwareBufferPropertiesANDROID(
const struct AHardwareBuffer & buffer )
const
15583 "Function <vkGetAndroidHardwareBufferPropertiesANDROID> needs extension <VK_ANDROID_external_memory_android_hardware_buffer> enabled!" );
15586 VULKAN_HPP_NAMESPACE::AndroidHardwareBufferPropertiesANDROID & properties =
15587 structureChain.template get<VULKAN_HPP_NAMESPACE::AndroidHardwareBufferPropertiesANDROID>();
15588 VkResult result = getDispatcher()->vkGetAndroidHardwareBufferPropertiesANDROID(
15589 static_cast<VkDevice>( m_device ), &buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID *>( &properties ) );
15592 return structureChain;
15596 Device::getMemoryAndroidHardwareBufferANDROID(
const VULKAN_HPP_NAMESPACE::MemoryGetAndroidHardwareBufferInfoANDROID & info )
const
15599 "Function <vkGetMemoryAndroidHardwareBufferANDROID> needs extension <VK_ANDROID_external_memory_android_hardware_buffer> enabled!" );
15601 struct AHardwareBuffer *
buffer;
15602 VkResult result = getDispatcher()->vkGetMemoryAndroidHardwareBufferANDROID(
15603 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryGetAndroidHardwareBufferInfoANDROID *>( &info ), &buffer );
15616 "Function <vkCmdSetSampleLocationsEXT> needs extension <VK_EXT_sample_locations> enabled!" );
15618 getDispatcher()->vkCmdSetSampleLocationsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
15619 reinterpret_cast<const VkSampleLocationsInfoEXT *>( &sampleLocationsInfo ) );
15626 "Function <vkGetPhysicalDeviceMultisamplePropertiesEXT> needs extension <VK_EXT_sample_locations> enabled!" );
15629 getDispatcher()->vkGetPhysicalDeviceMultisamplePropertiesEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15630 static_cast<VkSampleCountFlagBits>(
samples ),
15631 reinterpret_cast<VkMultisamplePropertiesEXT *>( &multisampleProperties ) );
15633 return multisampleProperties;
15642 "Function <vkGetImageMemoryRequirements2KHR> needs extension <VK_KHR_get_memory_requirements2> enabled!" );
15645 getDispatcher()->vkGetImageMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
15646 reinterpret_cast<const VkImageMemoryRequirementsInfo2 *>( &info ),
15647 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
15649 return memoryRequirements;
15652 template <
typename X,
typename Y,
typename...
Z>
15657 "Function <vkGetImageMemoryRequirements2KHR> needs extension <VK_KHR_get_memory_requirements2> enabled!" );
15661 getDispatcher()->vkGetImageMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
15662 reinterpret_cast<const VkImageMemoryRequirementsInfo2 *>( &info ),
15663 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
15665 return structureChain;
15672 "Function <vkGetBufferMemoryRequirements2KHR> needs extension <VK_KHR_get_memory_requirements2> enabled!" );
15675 getDispatcher()->vkGetBufferMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
15676 reinterpret_cast<const VkBufferMemoryRequirementsInfo2 *>( &info ),
15677 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
15679 return memoryRequirements;
15682 template <
typename X,
typename Y,
typename...
Z>
15687 "Function <vkGetBufferMemoryRequirements2KHR> needs extension <VK_KHR_get_memory_requirements2> enabled!" );
15691 getDispatcher()->vkGetBufferMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
15692 reinterpret_cast<const VkBufferMemoryRequirementsInfo2 *>( &info ),
15693 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
15695 return structureChain;
15702 "Function <vkGetImageSparseMemoryRequirements2KHR> needs extension <VK_KHR_get_memory_requirements2> enabled!" );
15704 std::vector<VULKAN_HPP_NAMESPACE::SparseImageMemoryRequirements2> sparseMemoryRequirements;
15705 uint32_t sparseMemoryRequirementCount;
15706 getDispatcher()->vkGetImageSparseMemoryRequirements2KHR(
15707 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( &info ), &sparseMemoryRequirementCount,
nullptr );
15708 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
15709 getDispatcher()->vkGetImageSparseMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
15710 reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( &info ),
15711 &sparseMemoryRequirementCount,
15712 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
15714 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
15715 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
15717 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
15719 return sparseMemoryRequirements;
15736 "Function <vkCmdBuildAccelerationStructuresKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15737 if ( infos.
size() != pBuildRangeInfos.
size() )
15742 getDispatcher()->vkCmdBuildAccelerationStructuresKHR(
15743 static_cast<VkCommandBuffer>( m_commandBuffer ),
15746 reinterpret_cast<const VkAccelerationStructureBuildRangeInfoKHR * const *>( pBuildRangeInfos.
data() ) );
15756 "Function <vkCmdBuildAccelerationStructuresIndirectKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15757 if ( infos.
size() != indirectDeviceAddresses.
size() )
15760 "::CommandBuffer::buildAccelerationStructuresIndirectKHR: infos.size() != indirectDeviceAddresses.size()" );
15762 if ( infos.
size() != indirectStrides.
size() )
15766 if ( infos.
size() != pMaxPrimitiveCounts.
size() )
15771 getDispatcher()->vkCmdBuildAccelerationStructuresIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
15774 reinterpret_cast<const VkDeviceAddress *>( indirectDeviceAddresses.
data() ),
15775 indirectStrides.
data(),
15776 pMaxPrimitiveCounts.
data() );
15785 "Function <vkBuildAccelerationStructuresKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15786 if ( infos.
size() != pBuildRangeInfos.
size() )
15791 VkResult result = getDispatcher()->vkBuildAccelerationStructuresKHR(
15792 static_cast<VkDevice>( m_device ),
15793 static_cast<VkDeferredOperationKHR>( deferredOperation ),
15796 reinterpret_cast<const VkAccelerationStructureBuildRangeInfoKHR * const *>( pBuildRangeInfos.
data() ) );
15797 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
15811 "Function <vkCopyAccelerationStructureKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15813 VkResult result = getDispatcher()->vkCopyAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
15814 static_cast<VkDeferredOperationKHR>( deferredOperation ),
15815 reinterpret_cast<const VkCopyAccelerationStructureInfoKHR *>( &info ) );
15816 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
15830 "Function <vkCopyAccelerationStructureToMemoryKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15833 getDispatcher()->vkCopyAccelerationStructureToMemoryKHR( static_cast<VkDevice>( m_device ),
15834 static_cast<VkDeferredOperationKHR>( deferredOperation ),
15835 reinterpret_cast<const VkCopyAccelerationStructureToMemoryInfoKHR *>( &info ) );
15836 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
15850 "Function <vkCopyMemoryToAccelerationStructureKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15853 getDispatcher()->vkCopyMemoryToAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
15854 static_cast<VkDeferredOperationKHR>( deferredOperation ),
15855 reinterpret_cast<const VkCopyMemoryToAccelerationStructureInfoKHR *>( &info ) );
15856 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
15865 template <
typename DataType>
15873 "Function <vkWriteAccelerationStructuresPropertiesKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15876 std::vector<DataType>
data( dataSize /
sizeof(
DataType ) );
15878 getDispatcher()->vkWriteAccelerationStructuresPropertiesKHR( static_cast<VkDevice>( m_device ),
15879 accelerationStructures.
size(),
15880 reinterpret_cast<const VkAccelerationStructureKHR *
>( accelerationStructures.
data() ),
15881 static_cast<VkQueryType>( queryType ),
15883 reinterpret_cast<void *>( data.data() ),
15890 template <
typename DataType>
15897 "Function <vkWriteAccelerationStructuresPropertiesKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15901 getDispatcher()->vkWriteAccelerationStructuresPropertiesKHR( static_cast<VkDevice>( m_device ),
15902 accelerationStructures.
size(),
15903 reinterpret_cast<const VkAccelerationStructureKHR *
>( accelerationStructures.
data() ),
15904 static_cast<VkQueryType>( queryType ),
15906 reinterpret_cast<void *>( &data ),
15917 "Function <vkCmdCopyAccelerationStructureKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15919 getDispatcher()->vkCmdCopyAccelerationStructureKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
15920 reinterpret_cast<const VkCopyAccelerationStructureInfoKHR *>( &info ) );
15927 "Function <vkCmdCopyAccelerationStructureToMemoryKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15929 getDispatcher()->vkCmdCopyAccelerationStructureToMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
15930 reinterpret_cast<const VkCopyAccelerationStructureToMemoryInfoKHR *>( &info ) );
15937 "Function <vkCmdCopyMemoryToAccelerationStructureKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15939 getDispatcher()->vkCmdCopyMemoryToAccelerationStructureKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
15940 reinterpret_cast<const VkCopyMemoryToAccelerationStructureInfoKHR *>( &info ) );
15947 "Function <vkGetAccelerationStructureDeviceAddressKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15949 VkDeviceAddress result = getDispatcher()->vkGetAccelerationStructureDeviceAddressKHR(
15950 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkAccelerationStructureDeviceAddressInfoKHR *>( &info ) );
15959 uint32_t firstQuery )
const VULKAN_HPP_NOEXCEPT
15962 "Function <vkCmdWriteAccelerationStructuresPropertiesKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15964 getDispatcher()->vkCmdWriteAccelerationStructuresPropertiesKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
15965 accelerationStructures.size(),
15966 reinterpret_cast<const VkAccelerationStructureKHR *
>( accelerationStructures.data() ),
15967 static_cast<VkQueryType>( queryType ),
15968 static_cast<VkQueryPool
>( queryPool ),
15976 "Function <vkGetDeviceAccelerationStructureCompatibilityKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15979 getDispatcher()->vkGetDeviceAccelerationStructureCompatibilityKHR( static_cast<VkDevice>( m_device ),
15980 reinterpret_cast<const VkAccelerationStructureVersionInfoKHR *>( &versionInfo ),
15981 reinterpret_cast<VkAccelerationStructureCompatibilityKHR *>( &compatibility ) );
15983 return compatibility;
15992 "Function <vkGetAccelerationStructureBuildSizesKHR> needs extension <VK_KHR_acceleration_structure> enabled!" );
15999 getDispatcher()->vkGetAccelerationStructureBuildSizesKHR( static_cast<VkDevice>( m_device ),
16000 static_cast<VkAccelerationStructureBuildTypeKHR>( buildType ),
16001 reinterpret_cast<const VkAccelerationStructureBuildGeometryInfoKHR *>( &buildInfo ),
16002 maxPrimitiveCounts.
data(),
16022 "Function <vkDestroySamplerYcbcrConversionKHR> needs extension <VK_KHR_sampler_ycbcr_conversion> enabled!" );
16024 getDispatcher()->vkDestroySamplerYcbcrConversionKHR(
16025 static_cast<VkDevice>( m_device ),
16026 static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ),
16027 reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ) );
16037 VkResult result = getDispatcher()->vkBindBufferMemory2KHR(
16047 VkResult result = getDispatcher()->vkBindImageMemory2KHR(
16057 "Function <vkGetImageDrmFormatModifierPropertiesEXT> needs extension <VK_EXT_image_drm_format_modifier> enabled!" );
16060 VkResult result = getDispatcher()->vkGetImageDrmFormatModifierPropertiesEXT(
16061 static_cast<VkDevice>( m_device ), static_cast<VkImage>( m_image ), reinterpret_cast<VkImageDrmFormatModifierPropertiesEXT *>( &properties ) );
16079 "Function <vkMergeValidationCachesEXT> needs extension <VK_EXT_validation_cache> enabled!" );
16081 VkResult result = getDispatcher()->vkMergeValidationCachesEXT( static_cast<VkDevice>( m_device ),
16082 static_cast<VkValidationCacheEXT>( m_validationCache ),
16084 reinterpret_cast<const VkValidationCacheEXT *
>( srcCaches.
data() ) );
16091 "Function <vkGetValidationCacheDataEXT> needs extension <VK_EXT_validation_cache> enabled!" );
16093 std::vector<uint8_t>
data;
16098 result = getDispatcher()->vkGetValidationCacheDataEXT(
16099 static_cast<VkDevice>( m_device ), static_cast<VkValidationCacheEXT>( m_validationCache ), &dataSize,
nullptr );
16102 data.resize( dataSize );
16103 result = getDispatcher()->vkGetValidationCacheDataEXT(
16104 static_cast<VkDevice>( m_device ), static_cast<VkValidationCacheEXT>( m_validationCache ), &dataSize, reinterpret_cast<void *>( data.data() ) );
16109 if ( dataSize < data.size() )
16111 data.resize( dataSize );
16122 "Function <vkCmdBindShadingRateImageNV> needs extension <VK_NV_shading_rate_image> enabled!" );
16124 getDispatcher()->vkCmdBindShadingRateImageNV(
16125 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkImageView>( imageView ), static_cast<VkImageLayout>( imageLayout ) );
16129 uint32_t firstViewport,
16133 "Function <vkCmdSetViewportShadingRatePaletteNV> needs extension <VK_NV_shading_rate_image> enabled!" );
16135 getDispatcher()->vkCmdSetViewportShadingRatePaletteNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
16137 shadingRatePalettes.size(),
16146 "Function <vkCmdSetCoarseSampleOrderNV> needs extension <VK_NV_shading_rate_image> enabled!" );
16148 getDispatcher()->vkCmdSetCoarseSampleOrderNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
16149 static_cast<VkCoarseSampleOrderTypeNV>( sampleOrderType ),
16150 customSampleOrders.size(),
16167 "Function <vkGetAccelerationStructureMemoryRequirementsNV> needs extension <VK_NV_ray_tracing> enabled!" );
16170 getDispatcher()->vkGetAccelerationStructureMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
16171 reinterpret_cast<const VkAccelerationStructureMemoryRequirementsInfoNV *>( &info ),
16172 reinterpret_cast<VkMemoryRequirements2KHR *>( &memoryRequirements ) );
16174 return memoryRequirements;
16177 template <
typename X,
typename Y,
typename...
Z>
16182 "Function <vkGetAccelerationStructureMemoryRequirementsNV> needs extension <VK_NV_ray_tracing> enabled!" );
16186 getDispatcher()->vkGetAccelerationStructureMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
16187 reinterpret_cast<const VkAccelerationStructureMemoryRequirementsInfoNV *>( &info ),
16188 reinterpret_cast<VkMemoryRequirements2KHR *>( &memoryRequirements ) );
16190 return structureChain;
16197 "Function <vkBindAccelerationStructureMemoryNV> needs extension <VK_NV_ray_tracing> enabled!" );
16199 VkResult result = getDispatcher()->vkBindAccelerationStructureMemoryNV(
16214 "Function <vkCmdBuildAccelerationStructureNV> needs extension <VK_NV_ray_tracing> enabled!" );
16216 getDispatcher()->vkCmdBuildAccelerationStructureNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
16217 reinterpret_cast<const VkAccelerationStructureInfoNV *>( &info ),
16218 static_cast<VkBuffer>( instanceData ),
16219 static_cast<VkDeviceSize>( instanceOffset ),
16220 static_cast<VkBool32>( update ),
16221 static_cast<VkAccelerationStructureNV>(
dst ),
16222 static_cast<VkAccelerationStructureNV>(
src ),
16223 static_cast<VkBuffer>( scratch ),
16224 static_cast<VkDeviceSize>( scratchOffset ) );
16232 "Function <vkCmdCopyAccelerationStructureNV> needs extension <VK_NV_ray_tracing> enabled!" );
16234 getDispatcher()->vkCmdCopyAccelerationStructureNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
16235 static_cast<VkAccelerationStructureNV>(
dst ),
16236 static_cast<VkAccelerationStructureNV>(
src ),
16237 static_cast<VkCopyAccelerationStructureModeKHR>(
mode ) );
16253 uint32_t
depth )
const VULKAN_HPP_NOEXCEPT
16257 getDispatcher()->vkCmdTraceRaysNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
16258 static_cast<VkBuffer>( raygenShaderBindingTableBuffer ),
16259 static_cast<VkDeviceSize>( raygenShaderBindingOffset ),
16260 static_cast<VkBuffer>( missShaderBindingTableBuffer ),
16261 static_cast<VkDeviceSize>( missShaderBindingOffset ),
16262 static_cast<VkDeviceSize>( missShaderBindingStride ),
16263 static_cast<VkBuffer>( hitShaderBindingTableBuffer ),
16264 static_cast<VkDeviceSize>( hitShaderBindingOffset ),
16265 static_cast<VkDeviceSize>( hitShaderBindingStride ),
16266 static_cast<VkBuffer>( callableShaderBindingTableBuffer ),
16267 static_cast<VkDeviceSize>( callableShaderBindingOffset ),
16268 static_cast<VkDeviceSize>( callableShaderBindingStride ),
16290 template <
typename DataType>
16292 Pipeline::getRayTracingShaderGroupHandlesNV( uint32_t firstGroup, uint32_t groupCount,
size_t dataSize )
const
16295 "Function <vkGetRayTracingShaderGroupHandlesNV> needs extension <VK_NV_ray_tracing> enabled!" );
16298 std::vector<DataType>
data( dataSize /
sizeof(
DataType ) );
16299 VkResult result = getDispatcher()->vkGetRayTracingShaderGroupHandlesNV( static_cast<VkDevice>( m_device ),
16300 static_cast<VkPipeline>( m_pipeline ),
16304 reinterpret_cast<void *>( data.data() ) );
16310 template <
typename DataType>
16314 "Function <vkGetRayTracingShaderGroupHandlesNV> needs extension <VK_NV_ray_tracing> enabled!" );
16317 VkResult result = getDispatcher()->vkGetRayTracingShaderGroupHandlesNV( static_cast<VkDevice>( m_device ),
16318 static_cast<VkPipeline>( m_pipeline ),
16322 reinterpret_cast<void *>( &data ) );
16328 template <
typename DataType>
16332 "Function <vkGetAccelerationStructureHandleNV> needs extension <VK_NV_ray_tracing> enabled!" );
16335 std::vector<DataType>
data( dataSize /
sizeof(
DataType ) );
16336 VkResult result = getDispatcher()->vkGetAccelerationStructureHandleNV( static_cast<VkDevice>( m_device ),
16337 static_cast<VkAccelerationStructureNV>( m_accelerationStructure ),
16339 reinterpret_cast<void *>( data.data() ) );
16345 template <
typename DataType>
16349 "Function <vkGetAccelerationStructureHandleNV> needs extension <VK_NV_ray_tracing> enabled!" );
16352 VkResult result = getDispatcher()->vkGetAccelerationStructureHandleNV( static_cast<VkDevice>( m_device ),
16353 static_cast<VkAccelerationStructureNV>( m_accelerationStructure ),
16355 reinterpret_cast<void *>( &data ) );
16365 uint32_t firstQuery )
const VULKAN_HPP_NOEXCEPT
16368 "Function <vkCmdWriteAccelerationStructuresPropertiesNV> needs extension <VK_NV_ray_tracing> enabled!" );
16370 getDispatcher()->vkCmdWriteAccelerationStructuresPropertiesNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
16371 accelerationStructures.size(),
16372 reinterpret_cast<const VkAccelerationStructureNV *
>( accelerationStructures.data() ),
16373 static_cast<VkQueryType>( queryType ),
16374 static_cast<VkQueryPool
>( queryPool ),
16382 VkResult result = getDispatcher()->vkCompileDeferredNV( static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( m_pipeline ), shader );
16392 "Function <vkGetDescriptorSetLayoutSupportKHR> needs extension <VK_KHR_maintenance3> enabled!" );
16395 getDispatcher()->vkGetDescriptorSetLayoutSupportKHR( static_cast<VkDevice>( m_device ),
16396 reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( &createInfo ),
16397 reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
16402 template <
typename X,
typename Y,
typename...
Z>
16407 "Function <vkGetDescriptorSetLayoutSupportKHR> needs extension <VK_KHR_maintenance3> enabled!" );
16411 getDispatcher()->vkGetDescriptorSetLayoutSupportKHR( static_cast<VkDevice>( m_device ),
16412 reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( &createInfo ),
16413 reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
16415 return structureChain;
16424 uint32_t maxDrawCount,
16425 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
16428 "Function <vkCmdDrawIndirectCountKHR> needs extension <VK_KHR_draw_indirect_count> enabled!" );
16430 getDispatcher()->vkCmdDrawIndirectCountKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
16431 static_cast<VkBuffer>( buffer ),
16432 static_cast<VkDeviceSize>(
offset ),
16433 static_cast<VkBuffer>( countBuffer ),
16434 static_cast<VkDeviceSize>( countBufferOffset ),
16443 uint32_t maxDrawCount,
16444 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
16447 "Function <vkCmdDrawIndexedIndirectCountKHR> needs extension <VK_KHR_draw_indirect_count> enabled!" );
16449 getDispatcher()->vkCmdDrawIndexedIndirectCountKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
16450 static_cast<VkBuffer>( buffer ),
16451 static_cast<VkDeviceSize>(
offset ),
16452 static_cast<VkBuffer>( countBuffer ),
16453 static_cast<VkDeviceSize>( countBufferOffset ),
16464 "Function <vkGetMemoryHostPointerPropertiesEXT> needs extension <VK_EXT_external_memory_host> enabled!" );
16468 getDispatcher()->vkGetMemoryHostPointerPropertiesEXT( static_cast<VkDevice>( m_device ),
16469 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
16471 reinterpret_cast<VkMemoryHostPointerPropertiesEXT *>( &memoryHostPointerProperties ) );
16474 return memoryHostPointerProperties;
16482 uint32_t marker )
const VULKAN_HPP_NOEXCEPT
16486 getDispatcher()->vkCmdWriteBufferMarkerAMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
16487 static_cast<VkPipelineStageFlagBits>( pipelineStage ),
16488 static_cast<VkBuffer>( dstBuffer ),
16489 static_cast<VkDeviceSize>( dstOffset ),
16498 "Function <vkGetPhysicalDeviceCalibrateableTimeDomainsEXT> needs extension <VK_EXT_calibrated_timestamps> enabled!" );
16500 std::vector<VULKAN_HPP_NAMESPACE::TimeDomainEXT> timeDomains;
16501 uint32_t timeDomainCount;
16506 getDispatcher()->vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), &timeDomainCount,
nullptr );
16507 if ( ( result ==
VK_SUCCESS ) && timeDomainCount )
16509 timeDomains.resize( timeDomainCount );
16510 result = getDispatcher()->vkGetPhysicalDeviceCalibrateableTimeDomainsEXT(
16511 static_cast<VkPhysicalDevice>( m_physicalDevice ), &timeDomainCount, reinterpret_cast<VkTimeDomainEXT *>( timeDomains.data() ) );
16516 if ( timeDomainCount < timeDomains.size() )
16518 timeDomains.resize( timeDomainCount );
16520 return timeDomains;
16527 "Function <vkGetCalibratedTimestampsEXT> needs extension <VK_EXT_calibrated_timestamps> enabled!" );
16529 std::pair<std::vector<uint64_t>, uint64_t>
data( std::piecewise_construct, std::forward_as_tuple( timestampInfos.
size() ), std::forward_as_tuple( 0 ) );
16530 std::vector<uint64_t> & timestamps =
data.first;
16531 uint64_t & maxDeviation =
data.second;
16532 VkResult result = getDispatcher()->vkGetCalibratedTimestampsEXT( static_cast<VkDevice>( m_device ),
16533 timestampInfos.
size(),
16546 "Function <vkGetCalibratedTimestampsEXT> needs extension <VK_EXT_calibrated_timestamps> enabled!" );
16548 std::pair<uint64_t, uint64_t>
data;
16549 uint64_t & timestamp = data.first;
16550 uint64_t & maxDeviation = data.second;
16551 VkResult result = getDispatcher()->vkGetCalibratedTimestampsEXT(
16552 static_cast<VkDevice>( m_device ), 1, reinterpret_cast<const VkCalibratedTimestampInfoEXT *>( ×tampInfo ), ×tamp, &maxDeviation );
16560 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksNV( uint32_t taskCount, uint32_t firstTask )
const VULKAN_HPP_NOEXCEPT
16564 getDispatcher()->vkCmdDrawMeshTasksNV( static_cast<VkCommandBuffer>( m_commandBuffer ), taskCount, firstTask );
16569 uint32_t drawCount,
16570 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
16573 "Function <vkCmdDrawMeshTasksIndirectNV> needs extension <VK_NV_mesh_shader> enabled!" );
16575 getDispatcher()->vkCmdDrawMeshTasksIndirectNV(
16576 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>(
offset ), drawCount,
stride );
16583 uint32_t maxDrawCount,
16584 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
16587 "Function <vkCmdDrawMeshTasksIndirectCountNV> needs extension <VK_NV_mesh_shader> enabled!" );
16589 getDispatcher()->vkCmdDrawMeshTasksIndirectCountNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
16590 static_cast<VkBuffer>( buffer ),
16591 static_cast<VkDeviceSize>(
offset ),
16592 static_cast<VkBuffer>( countBuffer ),
16593 static_cast<VkDeviceSize>( countBufferOffset ),
16604 "Function <vkCmdSetExclusiveScissorNV> needs extension <VK_NV_scissor_exclusive> enabled!" );
16606 getDispatcher()->vkCmdSetExclusiveScissorNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
16607 firstExclusiveScissor,
16608 exclusiveScissors.size(),
16609 reinterpret_cast<const VkRect2D *
>( exclusiveScissors.data() ) );
16614 template <
typename Checkpo
intMarkerType>
16615 VULKAN_HPP_INLINE void CommandBuffer::setCheckpointNV( CheckpointMarkerType
const & checkpointMarker )
const VULKAN_HPP_NOEXCEPT
16618 "Function <vkCmdSetCheckpointNV> needs extension <VK_NV_device_diagnostic_checkpoints> enabled!" );
16620 getDispatcher()->vkCmdSetCheckpointNV( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const void *>( &checkpointMarker ) );
16626 "Function <vkGetQueueCheckpointDataNV> needs extension <VK_NV_device_diagnostic_checkpoints> enabled!" );
16628 std::vector<VULKAN_HPP_NAMESPACE::CheckpointDataNV> checkpointData;
16629 uint32_t checkpointDataCount;
16630 getDispatcher()->vkGetQueueCheckpointDataNV( static_cast<VkQueue>( m_queue ), &checkpointDataCount,
nullptr );
16631 checkpointData.resize( checkpointDataCount );
16632 getDispatcher()->vkGetQueueCheckpointDataNV(
16633 static_cast<VkQueue>( m_queue ), &checkpointDataCount, reinterpret_cast<VkCheckpointDataNV *>( checkpointData.data() ) );
16636 if ( checkpointDataCount < checkpointData.size() )
16638 checkpointData.resize( checkpointDataCount );
16640 return checkpointData;
16648 "Function <vkGetSemaphoreCounterValueKHR> needs extension <VK_KHR_timeline_semaphore> enabled!" );
16651 VkResult result = getDispatcher()->vkGetSemaphoreCounterValueKHR( static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( m_semaphore ), &value );
16663 getDispatcher()->vkWaitSemaphoresKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreWaitInfo *>( &waitInfo ), timeout );
16664 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
16676 getDispatcher()->vkSignalSemaphoreKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreSignalInfo *>( &signalInfo ) );
16685 "Function <vkInitializePerformanceApiINTEL> needs extension <VK_INTEL_performance_query> enabled!" );
16687 VkResult result = getDispatcher()->vkInitializePerformanceApiINTEL( static_cast<VkDevice>( m_device ),
16688 reinterpret_cast<const VkInitializePerformanceApiInfoINTEL *>( &initializeInfo ) );
16695 "Function <vkUninitializePerformanceApiINTEL> needs extension <VK_INTEL_performance_query> enabled!" );
16697 getDispatcher()->vkUninitializePerformanceApiINTEL( static_cast<VkDevice>( m_device ) );
16703 "Function <vkCmdSetPerformanceMarkerINTEL> needs extension <VK_INTEL_performance_query> enabled!" );
16705 VkResult result = getDispatcher()->vkCmdSetPerformanceMarkerINTEL( static_cast<VkCommandBuffer>( m_commandBuffer ),
16706 reinterpret_cast<const VkPerformanceMarkerInfoINTEL *>( &markerInfo ) );
16713 "Function <vkCmdSetPerformanceStreamMarkerINTEL> needs extension <VK_INTEL_performance_query> enabled!" );
16715 VkResult result = getDispatcher()->vkCmdSetPerformanceStreamMarkerINTEL( static_cast<VkCommandBuffer>( m_commandBuffer ),
16716 reinterpret_cast<const VkPerformanceStreamMarkerInfoINTEL *>( &markerInfo ) );
16723 "Function <vkCmdSetPerformanceOverrideINTEL> needs extension <VK_INTEL_performance_query> enabled!" );
16725 VkResult result = getDispatcher()->vkCmdSetPerformanceOverrideINTEL( static_cast<VkCommandBuffer>( m_commandBuffer ),
16726 reinterpret_cast<const VkPerformanceOverrideInfoINTEL *>( &overrideInfo ) );
16739 "Function <vkQueueSetPerformanceConfigurationINTEL> needs extension <VK_INTEL_performance_query> enabled!" );
16741 VkResult result = getDispatcher()->vkQueueSetPerformanceConfigurationINTEL( static_cast<VkQueue>( m_queue ),
16742 static_cast<VkPerformanceConfigurationINTEL>( configuration ) );
16750 "Function <vkGetPerformanceParameterINTEL> needs extension <VK_INTEL_performance_query> enabled!" );
16753 VkResult result = getDispatcher()->vkGetPerformanceParameterINTEL(
16754 static_cast<VkDevice>( m_device ), static_cast<VkPerformanceParameterTypeINTEL>( parameter ), reinterpret_cast<VkPerformanceValueINTEL *>( &value ) );
16766 getDispatcher()->vkSetLocalDimmingAMD(
16767 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchain ), static_cast<VkBool32>( localDimmingEnable ) );
16770 # if defined( VK_USE_PLATFORM_FUCHSIA )
16774 Instance::createImagePipeSurfaceFUCHSIA( VULKAN_HPP_NAMESPACE::ImagePipeSurfaceCreateInfoFUCHSIA
const & createInfo,
16781 # if defined( VK_USE_PLATFORM_METAL_EXT )
16785 Instance::createMetalSurfaceEXT( VULKAN_HPP_NAMESPACE::MetalSurfaceCreateInfoEXT
const & createInfo,
16795 PhysicalDevice::getFragmentShadingRatesKHR()
const
16798 "Function <vkGetPhysicalDeviceFragmentShadingRatesKHR> needs extension <VK_KHR_fragment_shading_rate> enabled!" );
16800 std::vector<VULKAN_HPP_NAMESPACE::PhysicalDeviceFragmentShadingRateKHR> fragmentShadingRates;
16801 uint32_t fragmentShadingRateCount;
16806 getDispatcher()->vkGetPhysicalDeviceFragmentShadingRatesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &fragmentShadingRateCount,
nullptr );
16807 if ( ( result ==
VK_SUCCESS ) && fragmentShadingRateCount )
16809 fragmentShadingRates.resize( fragmentShadingRateCount );
16810 result = getDispatcher()->vkGetPhysicalDeviceFragmentShadingRatesKHR(
16811 static_cast<VkPhysicalDevice>( m_physicalDevice ),
16812 &fragmentShadingRateCount,
16813 reinterpret_cast<VkPhysicalDeviceFragmentShadingRateKHR *>( fragmentShadingRates.data() ) );
16818 if ( fragmentShadingRateCount < fragmentShadingRates.size() )
16820 fragmentShadingRates.resize( fragmentShadingRateCount );
16822 return fragmentShadingRates;
16830 "Function <vkCmdSetFragmentShadingRateKHR> needs extension <VK_KHR_fragment_shading_rate> enabled!" );
16832 getDispatcher()->vkCmdSetFragmentShadingRateKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
16833 reinterpret_cast<const VkExtent2D *>( &fragmentSize ),
16834 reinterpret_cast<const VkFragmentShadingRateCombinerOpKHR *>( combinerOps ) );
16843 "Function <vkGetBufferDeviceAddressEXT> needs extension <VK_EXT_buffer_device_address> enabled!" );
16846 getDispatcher()->vkGetBufferDeviceAddressEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkBufferDeviceAddressInfo *>( &info ) );
16856 "Function <vkGetPhysicalDeviceToolPropertiesEXT> needs extension <VK_EXT_tooling_info> enabled!" );
16858 std::vector<VULKAN_HPP_NAMESPACE::PhysicalDeviceToolProperties> toolProperties;
16859 uint32_t toolCount;
16863 result = getDispatcher()->vkGetPhysicalDeviceToolPropertiesEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), &toolCount,
nullptr );
16864 if ( ( result ==
VK_SUCCESS ) && toolCount )
16866 toolProperties.resize( toolCount );
16867 result = getDispatcher()->vkGetPhysicalDeviceToolPropertiesEXT(
16868 static_cast<VkPhysicalDevice>( m_physicalDevice ), &toolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( toolProperties.data() ) );
16873 if ( toolCount < toolProperties.size() )
16875 toolProperties.resize( toolCount );
16877 return toolProperties;
16887 getDispatcher()->vkWaitForPresentKHR( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchain ), presentId, timeout );
16888 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
16898 PhysicalDevice::getCooperativeMatrixPropertiesNV()
const
16901 "Function <vkGetPhysicalDeviceCooperativeMatrixPropertiesNV> needs extension <VK_NV_cooperative_matrix> enabled!" );
16903 std::vector<VULKAN_HPP_NAMESPACE::CooperativeMatrixPropertiesNV> properties;
16904 uint32_t propertyCount;
16909 getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount,
nullptr );
16910 if ( ( result ==
VK_SUCCESS ) && propertyCount )
16912 properties.resize( propertyCount );
16913 result = getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixPropertiesNV(
16914 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesNV *>( properties.data() ) );
16919 if ( propertyCount < properties.size() )
16921 properties.resize( propertyCount );
16929 PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV()
const
16933 "Function <vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV> needs extension <VK_NV_coverage_reduction_mode> enabled!" );
16935 std::vector<VULKAN_HPP_NAMESPACE::FramebufferMixedSamplesCombinationNV> combinations;
16936 uint32_t combinationCount;
16940 result = getDispatcher()->vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
16941 static_cast<VkPhysicalDevice>( m_physicalDevice ), &combinationCount,
nullptr );
16942 if ( ( result ==
VK_SUCCESS ) && combinationCount )
16944 combinations.resize( combinationCount );
16945 result = getDispatcher()->vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
16946 static_cast<VkPhysicalDevice>( m_physicalDevice ),
16948 reinterpret_cast<VkFramebufferMixedSamplesCombinationNV *>( combinations.data() ) );
16951 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
16954 if ( combinationCount < combinations.size() )
16956 combinations.resize( combinationCount );
16958 return combinations;
16961 # if defined( VK_USE_PLATFORM_WIN32_KHR )
16968 "Function <vkGetPhysicalDeviceSurfacePresentModes2EXT> needs extension <VK_EXT_full_screen_exclusive> enabled!" );
16970 std::vector<VULKAN_HPP_NAMESPACE::PresentModeKHR> presentModes;
16971 uint32_t presentModeCount;
16975 result = getDispatcher()->vkGetPhysicalDeviceSurfacePresentModes2EXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
16976 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
16979 if ( ( result ==
VK_SUCCESS ) && presentModeCount )
16981 presentModes.resize( presentModeCount );
16982 result = getDispatcher()->vkGetPhysicalDeviceSurfacePresentModes2EXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
16983 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
16985 reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) );
16990 if ( presentModeCount < presentModes.size() )
16992 presentModes.resize( presentModeCount );
16994 return presentModes;
17000 "Function <vkAcquireFullScreenExclusiveModeEXT> needs extension <VK_EXT_full_screen_exclusive> enabled!" );
17002 VkResult result = getDispatcher()->vkAcquireFullScreenExclusiveModeEXT( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchain ) );
17009 "Function <vkReleaseFullScreenExclusiveModeEXT> needs extension <VK_EXT_full_screen_exclusive> enabled!" );
17011 VkResult result = getDispatcher()->vkReleaseFullScreenExclusiveModeEXT( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchain ) );
17019 "Function <vkGetDeviceGroupSurfacePresentModes2EXT> needs extension <VK_EXT_full_screen_exclusive> enabled!" );
17022 VkResult result = getDispatcher()->vkGetDeviceGroupSurfacePresentModes2EXT( static_cast<VkDevice>( m_device ),
17023 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
17024 reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( &modes ) );
17046 "Function <vkGetBufferDeviceAddressKHR> needs extension <VK_KHR_buffer_device_address> enabled!" );
17049 getDispatcher()->vkGetBufferDeviceAddressKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkBufferDeviceAddressInfo *>( &info ) );
17058 "Function <vkGetBufferOpaqueCaptureAddressKHR> needs extension <VK_KHR_buffer_device_address> enabled!" );
17061 getDispatcher()->vkGetBufferOpaqueCaptureAddressKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkBufferDeviceAddressInfo *>( &info ) );
17070 "Function <vkGetDeviceMemoryOpaqueCaptureAddressKHR> needs extension <VK_KHR_buffer_device_address> enabled!" );
17072 uint64_t result = getDispatcher()->vkGetDeviceMemoryOpaqueCaptureAddressKHR( static_cast<VkDevice>( m_device ),
17073 reinterpret_cast<const VkDeviceMemoryOpaqueCaptureAddressInfo *>( &info ) );
17080 VULKAN_HPP_INLINE void CommandBuffer::setLineStippleEXT( uint32_t lineStippleFactor, uint16_t lineStipplePattern )
const VULKAN_HPP_NOEXCEPT
17084 getDispatcher()->vkCmdSetLineStippleEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), lineStippleFactor, lineStipplePattern );
17089 VULKAN_HPP_INLINE void QueryPool::resetEXT( uint32_t firstQuery, uint32_t queryCount )
const VULKAN_HPP_NOEXCEPT
17093 getDispatcher()->vkResetQueryPoolEXT( static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( m_queryPool ), firstQuery, queryCount );
17102 getDispatcher()->vkCmdSetCullModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCullModeFlags>( cullMode ) );
17109 getDispatcher()->vkCmdSetFrontFaceEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkFrontFace>( frontFace ) );
17115 "Function <vkCmdSetPrimitiveTopologyEXT> needs extension <VK_EXT_extended_dynamic_state> enabled!" );
17117 getDispatcher()->vkCmdSetPrimitiveTopologyEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPrimitiveTopology>( primitiveTopology ) );
17124 "Function <vkCmdSetViewportWithCountEXT> needs extension <VK_EXT_extended_dynamic_state> enabled!" );
17126 getDispatcher()->vkCmdSetViewportWithCountEXT(
17127 static_cast<VkCommandBuffer>( m_commandBuffer ), viewports.size(),
reinterpret_cast<const VkViewport *
>( viewports.data() ) );
17134 "Function <vkCmdSetScissorWithCountEXT> needs extension <VK_EXT_extended_dynamic_state> enabled!" );
17136 getDispatcher()->vkCmdSetScissorWithCountEXT(
17137 static_cast<VkCommandBuffer>( m_commandBuffer ), scissors.size(),
reinterpret_cast<const VkRect2D *
>( scissors.data() ) );
17141 CommandBuffer::bindVertexBuffers2EXT( uint32_t firstBinding,
17148 "Function <vkCmdBindVertexBuffers2EXT> needs extension <VK_EXT_extended_dynamic_state> enabled!" );
17149 if ( buffers.
size() != offsets.
size() )
17157 if ( !strides.
empty() && buffers.
size() != strides.
size() )
17162 getDispatcher()->vkCmdBindVertexBuffers2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
17165 reinterpret_cast<const VkBuffer *
>( buffers.
data() ),
17166 reinterpret_cast<const VkDeviceSize *>( offsets.
data() ),
17167 reinterpret_cast<const VkDeviceSize *>( sizes.
data() ),
17168 reinterpret_cast<const VkDeviceSize *>( strides.
data() ) );
17174 "Function <vkCmdSetDepthTestEnableEXT> needs extension <VK_EXT_extended_dynamic_state> enabled!" );
17176 getDispatcher()->vkCmdSetDepthTestEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthTestEnable ) );
17182 "Function <vkCmdSetDepthWriteEnableEXT> needs extension <VK_EXT_extended_dynamic_state> enabled!" );
17184 getDispatcher()->vkCmdSetDepthWriteEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthWriteEnable ) );
17190 "Function <vkCmdSetDepthCompareOpEXT> needs extension <VK_EXT_extended_dynamic_state> enabled!" );
17192 getDispatcher()->vkCmdSetDepthCompareOpEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCompareOp>( depthCompareOp ) );
17198 "Function <vkCmdSetDepthBoundsTestEnableEXT> needs extension <VK_EXT_extended_dynamic_state> enabled!" );
17200 getDispatcher()->vkCmdSetDepthBoundsTestEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBoundsTestEnable ) );
17206 "Function <vkCmdSetStencilTestEnableEXT> needs extension <VK_EXT_extended_dynamic_state> enabled!" );
17208 getDispatcher()->vkCmdSetStencilTestEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( stencilTestEnable ) );
17219 getDispatcher()->vkCmdSetStencilOpEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
17220 static_cast<VkStencilFaceFlags>( faceMask ),
17221 static_cast<VkStencilOp>( failOp ),
17222 static_cast<VkStencilOp>( passOp ),
17223 static_cast<VkStencilOp>( depthFailOp ),
17224 static_cast<VkCompareOp>( compareOp ) );
17238 "Function <vkGetDeferredOperationMaxConcurrencyKHR> needs extension <VK_KHR_deferred_host_operations> enabled!" );
17241 getDispatcher()->vkGetDeferredOperationMaxConcurrencyKHR( static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( m_operation ) );
17249 "Function <vkGetDeferredOperationResultKHR> needs extension <VK_KHR_deferred_host_operations> enabled!" );
17252 getDispatcher()->vkGetDeferredOperationResultKHR( static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( m_operation ) );
17260 "Function <vkDeferredOperationJoinKHR> needs extension <VK_KHR_deferred_host_operations> enabled!" );
17262 VkResult result = getDispatcher()->vkDeferredOperationJoinKHR( static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( m_operation ) );
17263 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
17276 "Function <vkGetPipelineExecutablePropertiesKHR> needs extension <VK_KHR_pipeline_executable_properties> enabled!" );
17278 std::vector<VULKAN_HPP_NAMESPACE::PipelineExecutablePropertiesKHR> properties;
17279 uint32_t executableCount;
17283 result = getDispatcher()->vkGetPipelineExecutablePropertiesKHR(
17284 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkPipelineInfoKHR *>( &pipelineInfo ), &executableCount,
nullptr );
17285 if ( ( result ==
VK_SUCCESS ) && executableCount )
17287 properties.resize( executableCount );
17288 result = getDispatcher()->vkGetPipelineExecutablePropertiesKHR( static_cast<VkDevice>( m_device ),
17289 reinterpret_cast<const VkPipelineInfoKHR *>( &pipelineInfo ),
17291 reinterpret_cast<VkPipelineExecutablePropertiesKHR *>( properties.data() ) );
17296 if ( executableCount < properties.size() )
17298 properties.resize( executableCount );
17307 "Function <vkGetPipelineExecutableStatisticsKHR> needs extension <VK_KHR_pipeline_executable_properties> enabled!" );
17309 std::vector<VULKAN_HPP_NAMESPACE::PipelineExecutableStatisticKHR>
statistics;
17310 uint32_t statisticCount;
17314 result = getDispatcher()->vkGetPipelineExecutableStatisticsKHR(
17315 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ), &statisticCount,
nullptr );
17316 if ( ( result ==
VK_SUCCESS ) && statisticCount )
17318 statistics.resize( statisticCount );
17319 result = getDispatcher()->vkGetPipelineExecutableStatisticsKHR( static_cast<VkDevice>( m_device ),
17320 reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ),
17322 reinterpret_cast<VkPipelineExecutableStatisticKHR *>( statistics.data() ) );
17327 if ( statisticCount < statistics.size() )
17329 statistics.resize( statisticCount );
17338 "Function <vkGetPipelineExecutableInternalRepresentationsKHR> needs extension <VK_KHR_pipeline_executable_properties> enabled!" );
17340 std::vector<VULKAN_HPP_NAMESPACE::PipelineExecutableInternalRepresentationKHR> internalRepresentations;
17341 uint32_t internalRepresentationCount;
17345 result = getDispatcher()->vkGetPipelineExecutableInternalRepresentationsKHR(
17346 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ), &internalRepresentationCount,
nullptr );
17347 if ( ( result ==
VK_SUCCESS ) && internalRepresentationCount )
17349 internalRepresentations.resize( internalRepresentationCount );
17350 result = getDispatcher()->vkGetPipelineExecutableInternalRepresentationsKHR(
17351 static_cast<VkDevice>( m_device ),
17352 reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ),
17353 &internalRepresentationCount,
17354 reinterpret_cast<VkPipelineExecutableInternalRepresentationKHR *>( internalRepresentations.data() ) );
17357 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
17359 VULKAN_HPP_ASSERT( internalRepresentationCount <= internalRepresentations.size() );
17360 if ( internalRepresentationCount < internalRepresentations.size() )
17362 internalRepresentations.resize( internalRepresentationCount );
17364 return internalRepresentations;
17373 "Function <vkGetGeneratedCommandsMemoryRequirementsNV> needs extension <VK_NV_device_generated_commands> enabled!" );
17376 getDispatcher()->vkGetGeneratedCommandsMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
17377 reinterpret_cast<const VkGeneratedCommandsMemoryRequirementsInfoNV *>( &info ),
17378 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17380 return memoryRequirements;
17383 template <
typename X,
typename Y,
typename...
Z>
17388 "Function <vkGetGeneratedCommandsMemoryRequirementsNV> needs extension <VK_NV_device_generated_commands> enabled!" );
17392 getDispatcher()->vkGetGeneratedCommandsMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
17393 reinterpret_cast<const VkGeneratedCommandsMemoryRequirementsInfoNV *>( &info ),
17394 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17396 return structureChain;
17403 "Function <vkCmdPreprocessGeneratedCommandsNV> needs extension <VK_NV_device_generated_commands> enabled!" );
17405 getDispatcher()->vkCmdPreprocessGeneratedCommandsNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
17406 reinterpret_cast<const VkGeneratedCommandsInfoNV *>( &generatedCommandsInfo ) );
17414 "Function <vkCmdExecuteGeneratedCommandsNV> needs extension <VK_NV_device_generated_commands> enabled!" );
17416 getDispatcher()->vkCmdExecuteGeneratedCommandsNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
17417 static_cast<VkBool32>( isPreprocessed ),
17418 reinterpret_cast<const VkGeneratedCommandsInfoNV *>( &generatedCommandsInfo ) );
17423 uint32_t groupIndex )
const VULKAN_HPP_NOEXCEPT
17426 "Function <vkCmdBindPipelineShaderGroupNV> needs extension <VK_NV_device_generated_commands> enabled!" );
17428 getDispatcher()->vkCmdBindPipelineShaderGroupNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
17429 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
17430 static_cast<VkPipeline>( pipeline ),
17448 getDispatcher()->vkAcquireDrmDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), drmFd, static_cast<VkDisplayKHR>( display ) );
17470 "Function <vkDestroyPrivateDataSlotEXT> needs extension <VK_EXT_private_data> enabled!" );
17472 getDispatcher()->vkDestroyPrivateDataSlotEXT(
17473 static_cast<VkDevice>( m_device ),
17474 static_cast<VkPrivateDataSlot>( privateDataSlot ),
17475 reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ) );
17479 uint64_t objectHandle,
17481 uint64_t
data )
const
17485 VkResult result = getDispatcher()->vkSetPrivateDataEXT(
17486 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), data );
17491 uint64_t objectHandle,
17497 getDispatcher()->vkGetPrivateDataEXT(
17498 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), &data );
17503 # if defined( VK_ENABLE_BETA_EXTENSIONS )
17506 VULKAN_HPP_INLINE void CommandBuffer::encodeVideoKHR(
const VULKAN_HPP_NAMESPACE::VideoEncodeInfoKHR & encodeInfo )
const VULKAN_HPP_NOEXCEPT
17510 getDispatcher()->vkCmdEncodeVideoKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkVideoEncodeInfoKHR *>( &encodeInfo ) );
17514 # if defined( VK_USE_PLATFORM_METAL_EXT )
17521 VULKAN_HPP_NAMESPACE::ExportMetalObjectsInfoEXT metalObjectsInfo;
17522 getDispatcher()->vkExportMetalObjectsEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkExportMetalObjectsInfoEXT *>( &metalObjectsInfo ) );
17524 return metalObjectsInfo;
17527 template <
typename X,
typename Y,
typename...
Z>
17532 StructureChain<
X,
Y,
Z...> structureChain;
17533 VULKAN_HPP_NAMESPACE::ExportMetalObjectsInfoEXT & metalObjectsInfo = structureChain.template get<VULKAN_HPP_NAMESPACE::ExportMetalObjectsInfoEXT>();
17534 getDispatcher()->vkExportMetalObjectsEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkExportMetalObjectsInfoEXT *>( &metalObjectsInfo ) );
17536 return structureChain;
17547 getDispatcher()->vkCmdSetEvent2KHR(
17548 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>(
event ), reinterpret_cast<const VkDependencyInfo *>( &dependencyInfo ) );
17556 getDispatcher()->vkCmdResetEvent2KHR(
17557 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>(
event ), static_cast<VkPipelineStageFlags2>( stageMask ) );
17565 if ( events.
size() != dependencyInfos.
size() )
17570 getDispatcher()->vkCmdWaitEvents2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17572 reinterpret_cast<const VkEvent *
>( events.
data() ),
17573 reinterpret_cast<const VkDependencyInfo *>( dependencyInfos.
data() ) );
17579 "Function <vkCmdPipelineBarrier2KHR> needs extension <VK_KHR_synchronization2> enabled!" );
17581 getDispatcher()->vkCmdPipelineBarrier2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17582 reinterpret_cast<const VkDependencyInfo *>( &dependencyInfo ) );
17587 uint32_t
query )
const VULKAN_HPP_NOEXCEPT
17591 getDispatcher()->vkCmdWriteTimestamp2KHR(
17592 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineStageFlags2>( stage ), static_cast<VkQueryPool>( queryPool ),
query );
17600 VkResult result = getDispatcher()->vkQueueSubmit2KHR(
17601 static_cast<VkQueue>( m_queue ), submits.
size(),
reinterpret_cast<const VkSubmitInfo2 *
>( submits.
data() ), static_cast<VkFence>( fence ) );
17608 uint32_t marker )
const VULKAN_HPP_NOEXCEPT
17611 "Function <vkCmdWriteBufferMarker2AMD> needs extension <VK_KHR_synchronization2> enabled!" );
17613 getDispatcher()->vkCmdWriteBufferMarker2AMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
17614 static_cast<VkPipelineStageFlags2>( stage ),
17615 static_cast<VkBuffer>( dstBuffer ),
17616 static_cast<VkDeviceSize>( dstOffset ),
17623 "Function <vkGetQueueCheckpointData2NV> needs extension <VK_KHR_synchronization2> enabled!" );
17625 std::vector<VULKAN_HPP_NAMESPACE::CheckpointData2NV> checkpointData;
17626 uint32_t checkpointDataCount;
17627 getDispatcher()->vkGetQueueCheckpointData2NV( static_cast<VkQueue>( m_queue ), &checkpointDataCount,
nullptr );
17628 checkpointData.resize( checkpointDataCount );
17629 getDispatcher()->vkGetQueueCheckpointData2NV(
17630 static_cast<VkQueue>( m_queue ), &checkpointDataCount, reinterpret_cast<VkCheckpointData2NV *>( checkpointData.data() ) );
17633 if ( checkpointDataCount < checkpointData.size() )
17635 checkpointData.resize( checkpointDataCount );
17637 return checkpointData;
17645 "Function <vkGetDescriptorSetLayoutSizeEXT> needs extension <VK_EXT_descriptor_buffer> enabled!" );
17648 getDispatcher()->vkGetDescriptorSetLayoutSizeEXT( static_cast<VkDevice>( m_device ),
17649 static_cast<VkDescriptorSetLayout>( m_descriptorSetLayout ),
17650 reinterpret_cast<VkDeviceSize *>( &layoutSizeInBytes ) );
17652 return layoutSizeInBytes;
17656 DescriptorSetLayout::getBindingOffsetEXT( uint32_t binding )
const VULKAN_HPP_NOEXCEPT
17659 "Function <vkGetDescriptorSetLayoutBindingOffsetEXT> needs extension <VK_EXT_descriptor_buffer> enabled!" );
17662 getDispatcher()->vkGetDescriptorSetLayoutBindingOffsetEXT(
17663 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorSetLayout>( m_descriptorSetLayout ), binding, reinterpret_cast<VkDeviceSize *>( &offset ) );
17668 template <
typename DescriptorType>
17675 getDispatcher()->vkGetDescriptorEXT( static_cast<VkDevice>( m_device ),
17676 reinterpret_cast<const VkDescriptorGetInfoEXT *>( &descriptorInfo ),
17678 reinterpret_cast<void *>( &descriptor ) );
17687 "Function <vkCmdBindDescriptorBuffersEXT> needs extension <VK_EXT_descriptor_buffer> enabled!" );
17689 getDispatcher()->vkCmdBindDescriptorBuffersEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
17690 bindingInfos.size(),
17702 "Function <vkCmdSetDescriptorBufferOffsetsEXT> needs extension <VK_EXT_descriptor_buffer> enabled!" );
17703 if ( bufferIndices.
size() != offsets.
size() )
17708 getDispatcher()->vkCmdSetDescriptorBufferOffsetsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
17709 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
17710 static_cast<VkPipelineLayout>( layout ),
17712 bufferIndices.
size(),
17713 bufferIndices.
data(),
17719 uint32_t set )
const VULKAN_HPP_NOEXCEPT
17722 "Function <vkCmdBindDescriptorBufferEmbeddedSamplersEXT> needs extension <VK_EXT_descriptor_buffer> enabled!" );
17724 getDispatcher()->vkCmdBindDescriptorBufferEmbeddedSamplersEXT(
17725 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipelineLayout>( layout ), set );
17728 template <
typename DataType>
17733 "Function <vkGetBufferOpaqueCaptureDescriptorDataEXT> needs extension <VK_EXT_descriptor_buffer> enabled!" );
17736 VkResult result = getDispatcher()->vkGetBufferOpaqueCaptureDescriptorDataEXT(
17737 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkBufferCaptureDescriptorDataInfoEXT *>( &info ), &data );
17743 template <
typename DataType>
17748 "Function <vkGetImageOpaqueCaptureDescriptorDataEXT> needs extension <VK_EXT_descriptor_buffer> enabled!" );
17751 VkResult result = getDispatcher()->vkGetImageOpaqueCaptureDescriptorDataEXT(
17752 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImageCaptureDescriptorDataInfoEXT *>( &info ), &data );
17758 template <
typename DataType>
17763 "Function <vkGetImageViewOpaqueCaptureDescriptorDataEXT> needs extension <VK_EXT_descriptor_buffer> enabled!" );
17766 VkResult result = getDispatcher()->vkGetImageViewOpaqueCaptureDescriptorDataEXT(
17767 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImageViewCaptureDescriptorDataInfoEXT *>( &info ), &data );
17773 template <
typename DataType>
17778 "Function <vkGetSamplerOpaqueCaptureDescriptorDataEXT> needs extension <VK_EXT_descriptor_buffer> enabled!" );
17781 VkResult result = getDispatcher()->vkGetSamplerOpaqueCaptureDescriptorDataEXT(
17782 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSamplerCaptureDescriptorDataInfoEXT *>( &info ), &data );
17788 template <
typename DataType>
17793 "Function <vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT> needs extension <VK_EXT_descriptor_buffer> enabled!" );
17796 VkResult result = getDispatcher()->vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT(
17797 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkAccelerationStructureCaptureDescriptorDataInfoEXT *>( &info ), &data );
17798 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
17811 "Function <vkCmdSetFragmentShadingRateEnumNV> needs extension <VK_NV_fragment_shading_rate_enums> enabled!" );
17813 getDispatcher()->vkCmdSetFragmentShadingRateEnumNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
17814 static_cast<VkFragmentShadingRateNV>( shadingRate ),
17815 reinterpret_cast<const VkFragmentShadingRateCombinerOpKHR *>( combinerOps ) );
17820 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksEXT( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ )
const VULKAN_HPP_NOEXCEPT
17824 getDispatcher()->vkCmdDrawMeshTasksEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), groupCountX, groupCountY, groupCountZ );
17829 uint32_t drawCount,
17830 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
17833 "Function <vkCmdDrawMeshTasksIndirectEXT> needs extension <VK_EXT_mesh_shader> enabled!" );
17835 getDispatcher()->vkCmdDrawMeshTasksIndirectEXT(
17836 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>(
offset ), drawCount,
stride );
17843 uint32_t maxDrawCount,
17844 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
17847 "Function <vkCmdDrawMeshTasksIndirectCountEXT> needs extension <VK_EXT_mesh_shader> enabled!" );
17849 getDispatcher()->vkCmdDrawMeshTasksIndirectCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
17850 static_cast<VkBuffer>( buffer ),
17851 static_cast<VkDeviceSize>(
offset ),
17852 static_cast<VkBuffer>( countBuffer ),
17853 static_cast<VkDeviceSize>( countBufferOffset ),
17864 getDispatcher()->vkCmdCopyBuffer2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyBufferInfo2 *>( ©BufferInfo ) );
17871 getDispatcher()->vkCmdCopyImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyImageInfo2 *>( ©ImageInfo ) );
17878 "Function <vkCmdCopyBufferToImage2KHR> needs extension <VK_KHR_copy_commands2> enabled!" );
17880 getDispatcher()->vkCmdCopyBufferToImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17881 reinterpret_cast<const VkCopyBufferToImageInfo2 *>( ©BufferToImageInfo ) );
17888 "Function <vkCmdCopyImageToBuffer2KHR> needs extension <VK_KHR_copy_commands2> enabled!" );
17890 getDispatcher()->vkCmdCopyImageToBuffer2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17891 reinterpret_cast<const VkCopyImageToBufferInfo2 *>( ©ImageToBufferInfo ) );
17898 getDispatcher()->vkCmdBlitImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkBlitImageInfo2 *>( &blitImageInfo ) );
17905 getDispatcher()->vkCmdResolveImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17906 reinterpret_cast<const VkResolveImageInfo2 *>( &resolveImageInfo ) );
17915 "Function <vkGetImageSubresourceLayout2EXT> needs extension <VK_EXT_image_compression_control> enabled!" );
17918 getDispatcher()->vkGetImageSubresourceLayout2EXT( static_cast<VkDevice>( m_device ),
17919 static_cast<VkImage>( m_image ),
17920 reinterpret_cast<const VkImageSubresource2EXT *>( &subresource ),
17921 reinterpret_cast<VkSubresourceLayout2EXT *>( &layout ) );
17926 template <
typename X,
typename Y,
typename...
Z>
17931 "Function <vkGetImageSubresourceLayout2EXT> needs extension <VK_EXT_image_compression_control> enabled!" );
17935 getDispatcher()->vkGetImageSubresourceLayout2EXT( static_cast<VkDevice>( m_device ),
17936 static_cast<VkImage>( m_image ),
17937 reinterpret_cast<const VkImageSubresource2EXT *>( &subresource ),
17938 reinterpret_cast<VkSubresourceLayout2EXT *>( &layout ) );
17940 return structureChain;
17946 VULKAN_HPP_INLINE std::pair<VULKAN_HPP_NAMESPACE::Result, std::pair<VULKAN_HPP_NAMESPACE::DeviceFaultCountsEXT, VULKAN_HPP_NAMESPACE::DeviceFaultInfoEXT>>
17947 Device::getFaultInfoEXT()
const
17951 std::pair<VULKAN_HPP_NAMESPACE::DeviceFaultCountsEXT, VULKAN_HPP_NAMESPACE::DeviceFaultInfoEXT>
data;
17954 VkResult result = getDispatcher()->vkGetDeviceFaultInfoEXT(
17955 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceFaultCountsEXT *>( &faultCounts ), reinterpret_cast<VkDeviceFaultInfoEXT *>( &faultInfo ) );
17956 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
17960 return std::make_pair( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), data );
17963 # if defined( VK_USE_PLATFORM_WIN32_KHR )
17969 "Function <vkAcquireWinrtDisplayNV> needs extension <VK_NV_acquire_winrt_display> enabled!" );
17971 VkResult result = getDispatcher()->vkAcquireWinrtDisplayNV( static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( m_display ) );
17981 # if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
17985 Instance::createDirectFBSurfaceEXT( VULKAN_HPP_NAMESPACE::DirectFBSurfaceCreateInfoEXT
const & createInfo,
17988 return VULKAN_HPP_RAII_NAMESPACE::SurfaceKHR( *
this, createInfo, allocator );
17992 PhysicalDevice::getDirectFBPresentationSupportEXT( uint32_t queueFamilyIndex, IDirectFB & dfb )
const VULKAN_HPP_NOEXCEPT
17995 "Function <vkGetPhysicalDeviceDirectFBPresentationSupportEXT> needs extension <VK_EXT_directfb_surface> enabled!" );
17998 getDispatcher()->vkGetPhysicalDeviceDirectFBPresentationSupportEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &dfb );
18012 uint32_t
depth )
const VULKAN_HPP_NOEXCEPT
18016 getDispatcher()->vkCmdTraceRaysKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
18017 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &raygenShaderBindingTable ),
18018 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &missShaderBindingTable ),
18019 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &hitShaderBindingTable ),
18020 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &callableShaderBindingTable ),
18044 template <
typename DataType>
18046 Pipeline::getRayTracingShaderGroupHandlesKHR( uint32_t firstGroup, uint32_t groupCount,
size_t dataSize )
const
18049 "Function <vkGetRayTracingShaderGroupHandlesKHR> needs extension <VK_KHR_ray_tracing_pipeline> enabled!" );
18052 std::vector<DataType>
data( dataSize /
sizeof(
DataType ) );
18053 VkResult result = getDispatcher()->vkGetRayTracingShaderGroupHandlesKHR( static_cast<VkDevice>( m_device ),
18054 static_cast<VkPipeline>( m_pipeline ),
18058 reinterpret_cast<void *>( data.data() ) );
18064 template <
typename DataType>
18068 "Function <vkGetRayTracingShaderGroupHandlesKHR> needs extension <VK_KHR_ray_tracing_pipeline> enabled!" );
18071 VkResult result = getDispatcher()->vkGetRayTracingShaderGroupHandlesKHR( static_cast<VkDevice>( m_device ),
18072 static_cast<VkPipeline>( m_pipeline ),
18076 reinterpret_cast<void *>( &data ) );
18082 template <
typename DataType>
18084 Pipeline::getRayTracingCaptureReplayShaderGroupHandlesKHR( uint32_t firstGroup, uint32_t groupCount,
size_t dataSize )
const
18087 "Function <vkGetRayTracingCaptureReplayShaderGroupHandlesKHR> needs extension <VK_KHR_ray_tracing_pipeline> enabled!" );
18090 std::vector<DataType>
data( dataSize /
sizeof(
DataType ) );
18091 VkResult result = getDispatcher()->vkGetRayTracingCaptureReplayShaderGroupHandlesKHR( static_cast<VkDevice>( m_device ),
18092 static_cast<VkPipeline>( m_pipeline ),
18096 reinterpret_cast<void *>( data.data() ) );
18097 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
18103 template <
typename DataType>
18107 "Function <vkGetRayTracingCaptureReplayShaderGroupHandlesKHR> needs extension <VK_KHR_ray_tracing_pipeline> enabled!" );
18110 VkResult result = getDispatcher()->vkGetRayTracingCaptureReplayShaderGroupHandlesKHR( static_cast<VkDevice>( m_device ),
18111 static_cast<VkPipeline>( m_pipeline ),
18115 reinterpret_cast<void *>( &data ) );
18116 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
18129 "Function <vkCmdTraceRaysIndirectKHR> needs extension <VK_KHR_ray_tracing_pipeline> enabled!" );
18131 getDispatcher()->vkCmdTraceRaysIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
18132 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &raygenShaderBindingTable ),
18133 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &missShaderBindingTable ),
18134 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &hitShaderBindingTable ),
18135 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &callableShaderBindingTable ),
18136 static_cast<VkDeviceAddress>( indirectDeviceAddress ) );
18143 "Function <vkGetRayTracingShaderGroupStackSizeKHR> needs extension <VK_KHR_ray_tracing_pipeline> enabled!" );
18145 VkDeviceSize result = getDispatcher()->vkGetRayTracingShaderGroupStackSizeKHR(
18146 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( m_pipeline ), group, static_cast<VkShaderGroupShaderKHR>( groupShader ) );
18151 VULKAN_HPP_INLINE void CommandBuffer::setRayTracingPipelineStackSizeKHR( uint32_t pipelineStackSize )
const VULKAN_HPP_NOEXCEPT
18154 "Function <vkCmdSetRayTracingPipelineStackSizeKHR> needs extension <VK_KHR_ray_tracing_pipeline> enabled!" );
18156 getDispatcher()->vkCmdSetRayTracingPipelineStackSizeKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), pipelineStackSize );
18164 VULKAN_HPP_NOEXCEPT
18167 "Function <vkCmdSetVertexInputEXT> needs extension <VK_EXT_vertex_input_dynamic_state> enabled!" );
18169 getDispatcher()->vkCmdSetVertexInputEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18170 vertexBindingDescriptions.size(),
18172 vertexAttributeDescriptions.size(),
18176 # if defined( VK_USE_PLATFORM_FUCHSIA )
18180 Device::getMemoryZirconHandleFUCHSIA(
const VULKAN_HPP_NAMESPACE::MemoryGetZirconHandleInfoFUCHSIA & getZirconHandleInfo )
const
18183 "Function <vkGetMemoryZirconHandleFUCHSIA> needs extension <VK_FUCHSIA_external_memory> enabled!" );
18185 zx_handle_t zirconHandle;
18186 VkResult result = getDispatcher()->vkGetMemoryZirconHandleFUCHSIA(
18187 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryGetZirconHandleInfoFUCHSIA *>( &getZirconHandleInfo ), &zirconHandle );
18190 return zirconHandle;
18197 "Function <vkGetMemoryZirconHandlePropertiesFUCHSIA> needs extension <VK_FUCHSIA_external_memory> enabled!" );
18199 VULKAN_HPP_NAMESPACE::MemoryZirconHandlePropertiesFUCHSIA memoryZirconHandleProperties;
18201 getDispatcher()->vkGetMemoryZirconHandlePropertiesFUCHSIA( static_cast<VkDevice>( m_device ),
18202 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
18204 reinterpret_cast<VkMemoryZirconHandlePropertiesFUCHSIA *>( &memoryZirconHandleProperties ) );
18207 return memoryZirconHandleProperties;
18211 # if defined( VK_USE_PLATFORM_FUCHSIA )
18215 Device::importSemaphoreZirconHandleFUCHSIA(
const VULKAN_HPP_NAMESPACE::ImportSemaphoreZirconHandleInfoFUCHSIA & importSemaphoreZirconHandleInfo )
const
18218 "Function <vkImportSemaphoreZirconHandleFUCHSIA> needs extension <VK_FUCHSIA_external_semaphore> enabled!" );
18220 VkResult result = getDispatcher()->vkImportSemaphoreZirconHandleFUCHSIA(
18221 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImportSemaphoreZirconHandleInfoFUCHSIA *>( &importSemaphoreZirconHandleInfo ) );
18226 Device::getSemaphoreZirconHandleFUCHSIA(
const VULKAN_HPP_NAMESPACE::SemaphoreGetZirconHandleInfoFUCHSIA & getZirconHandleInfo )
const
18229 "Function <vkGetSemaphoreZirconHandleFUCHSIA> needs extension <VK_FUCHSIA_external_semaphore> enabled!" );
18231 zx_handle_t zirconHandle;
18232 VkResult result = getDispatcher()->vkGetSemaphoreZirconHandleFUCHSIA(
18233 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreGetZirconHandleInfoFUCHSIA *>( &getZirconHandleInfo ), &zirconHandle );
18236 return zirconHandle;
18240 # if defined( VK_USE_PLATFORM_FUCHSIA )
18244 Device::createBufferCollectionFUCHSIA( VULKAN_HPP_NAMESPACE::BufferCollectionCreateInfoFUCHSIA
const & createInfo,
18247 return VULKAN_HPP_RAII_NAMESPACE::BufferCollectionFUCHSIA( *
this, createInfo, allocator );
18250 VULKAN_HPP_INLINE void BufferCollectionFUCHSIA::setImageConstraints(
const VULKAN_HPP_NAMESPACE::ImageConstraintsInfoFUCHSIA & imageConstraintsInfo )
const
18253 "Function <vkSetBufferCollectionImageConstraintsFUCHSIA> needs extension <VK_FUCHSIA_buffer_collection> enabled!" );
18256 getDispatcher()->vkSetBufferCollectionImageConstraintsFUCHSIA( static_cast<VkDevice>( m_device ),
18257 static_cast<VkBufferCollectionFUCHSIA>( m_collection ),
18258 reinterpret_cast<const VkImageConstraintsInfoFUCHSIA *>( &imageConstraintsInfo ) );
18263 BufferCollectionFUCHSIA::setBufferConstraints(
const VULKAN_HPP_NAMESPACE::BufferConstraintsInfoFUCHSIA & bufferConstraintsInfo )
const
18266 "Function <vkSetBufferCollectionBufferConstraintsFUCHSIA> needs extension <VK_FUCHSIA_buffer_collection> enabled!" );
18269 getDispatcher()->vkSetBufferCollectionBufferConstraintsFUCHSIA( static_cast<VkDevice>( m_device ),
18270 static_cast<VkBufferCollectionFUCHSIA>( m_collection ),
18271 reinterpret_cast<const VkBufferConstraintsInfoFUCHSIA *>( &bufferConstraintsInfo ) );
18278 "Function <vkGetBufferCollectionPropertiesFUCHSIA> needs extension <VK_FUCHSIA_buffer_collection> enabled!" );
18280 VULKAN_HPP_NAMESPACE::BufferCollectionPropertiesFUCHSIA properties;
18281 VkResult result = getDispatcher()->vkGetBufferCollectionPropertiesFUCHSIA( static_cast<VkDevice>( m_device ),
18282 static_cast<VkBufferCollectionFUCHSIA>( m_collection ),
18283 reinterpret_cast<VkBufferCollectionPropertiesFUCHSIA *>( &properties ) );
18293 RenderPass::getSubpassShadingMaxWorkgroupSizeHUAWEI()
const
18296 "Function <vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI> needs extension <VK_HUAWEI_subpass_shading> enabled!" );
18299 VkResult result = getDispatcher()->vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI(
18300 static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( m_renderPass ), reinterpret_cast<VkExtent2D *>( &maxWorkgroupSize ) );
18301 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
18305 return std::make_pair( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), maxWorkgroupSize );
18311 "Function <vkCmdSubpassShadingHUAWEI> needs extension <VK_HUAWEI_subpass_shading> enabled!" );
18313 getDispatcher()->vkCmdSubpassShadingHUAWEI( static_cast<VkCommandBuffer>( m_commandBuffer ) );
18322 "Function <vkCmdBindInvocationMaskHUAWEI> needs extension <VK_HUAWEI_invocation_mask> enabled!" );
18324 getDispatcher()->vkCmdBindInvocationMaskHUAWEI(
18325 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkImageView>( imageView ), static_cast<VkImageLayout>( imageLayout ) );
18334 "Function <vkGetMemoryRemoteAddressNV> needs extension <VK_NV_external_memory_rdma> enabled!" );
18337 VkResult result = getDispatcher()->vkGetMemoryRemoteAddressNV( static_cast<VkDevice>( m_device ),
18338 reinterpret_cast<const VkMemoryGetRemoteAddressInfoNV *>( &memoryGetRemoteAddressInfo ),
18339 reinterpret_cast<VkRemoteAddressNV *>( &address ) );
18351 "Function <vkGetPipelinePropertiesEXT> needs extension <VK_EXT_pipeline_properties> enabled!" );
18354 VkResult result = getDispatcher()->vkGetPipelinePropertiesEXT( static_cast<VkDevice>( m_device ),
18355 reinterpret_cast<const VkPipelineInfoEXT *>( &pipelineInfo ),
18356 reinterpret_cast<VkBaseOutStructure *>( &pipelineProperties ) );
18359 return pipelineProperties;
18364 VULKAN_HPP_INLINE void CommandBuffer::setPatchControlPointsEXT( uint32_t patchControlPoints )
const VULKAN_HPP_NOEXCEPT
18367 "Function <vkCmdSetPatchControlPointsEXT> needs extension <VK_EXT_extended_dynamic_state2> enabled!" );
18369 getDispatcher()->vkCmdSetPatchControlPointsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), patchControlPoints );
18375 "Function <vkCmdSetRasterizerDiscardEnableEXT> needs extension <VK_EXT_extended_dynamic_state2> enabled!" );
18377 getDispatcher()->vkCmdSetRasterizerDiscardEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( rasterizerDiscardEnable ) );
18383 "Function <vkCmdSetDepthBiasEnableEXT> needs extension <VK_EXT_extended_dynamic_state2> enabled!" );
18385 getDispatcher()->vkCmdSetDepthBiasEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBiasEnable ) );
18392 getDispatcher()->vkCmdSetLogicOpEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkLogicOp>( logicOp ) );
18398 "Function <vkCmdSetPrimitiveRestartEnableEXT> needs extension <VK_EXT_extended_dynamic_state2> enabled!" );
18400 getDispatcher()->vkCmdSetPrimitiveRestartEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( primitiveRestartEnable ) );
18403 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
18407 Instance::createScreenSurfaceQNX( VULKAN_HPP_NAMESPACE::ScreenSurfaceCreateInfoQNX
const & createInfo,
18414 PhysicalDevice::getScreenPresentationSupportQNX( uint32_t queueFamilyIndex,
struct _screen_window & window )
const VULKAN_HPP_NOEXCEPT
18417 "Function <vkGetPhysicalDeviceScreenPresentationSupportQNX> needs extension <VK_QNX_screen_surface> enabled!" );
18420 getDispatcher()->vkGetPhysicalDeviceScreenPresentationSupportQNX( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &window );
18432 "Function <vkCmdSetColorWriteEnableEXT> needs extension <VK_EXT_color_write_enable> enabled!" );
18434 getDispatcher()->vkCmdSetColorWriteEnableEXT(
18435 static_cast<VkCommandBuffer>( m_commandBuffer ), colorWriteEnables.size(),
reinterpret_cast<const VkBool32 *
>( colorWriteEnables.data() ) );
18443 "Function <vkCmdTraceRaysIndirect2KHR> needs extension <VK_KHR_ray_tracing_maintenance1> enabled!" );
18445 getDispatcher()->vkCmdTraceRaysIndirect2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkDeviceAddress>( indirectDeviceAddress ) );
18452 uint32_t instanceCount,
18453 uint32_t firstInstance )
const VULKAN_HPP_NOEXCEPT
18457 getDispatcher()->vkCmdDrawMultiEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18462 vertexInfo.stride() );
18467 uint32_t instanceCount,
18468 uint32_t firstInstance,
18473 getDispatcher()->vkCmdDrawMultiIndexedEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18478 indexInfo.stride(),
18479 static_cast<const int32_t *
>( vertexOffset ) );
18496 getDispatcher()->vkCmdBuildMicromapsEXT(
18497 static_cast<VkCommandBuffer>( m_commandBuffer ), infos.size(),
reinterpret_cast<const VkMicromapBuildInfoEXT *
>( infos.data() ) );
18506 VkResult result = getDispatcher()->vkBuildMicromapsEXT( static_cast<VkDevice>( m_device ),
18507 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18510 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
18524 VkResult result = getDispatcher()->vkCopyMicromapEXT(
18525 static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<const VkCopyMicromapInfoEXT *>( &info ) );
18526 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
18540 "Function <vkCopyMicromapToMemoryEXT> needs extension <VK_EXT_opacity_micromap> enabled!" );
18542 VkResult result = getDispatcher()->vkCopyMicromapToMemoryEXT( static_cast<VkDevice>( m_device ),
18543 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18544 reinterpret_cast<const VkCopyMicromapToMemoryInfoEXT *>( &info ) );
18545 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
18559 "Function <vkCopyMemoryToMicromapEXT> needs extension <VK_EXT_opacity_micromap> enabled!" );
18561 VkResult result = getDispatcher()->vkCopyMemoryToMicromapEXT( static_cast<VkDevice>( m_device ),
18562 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18563 reinterpret_cast<const VkCopyMemoryToMicromapInfoEXT *>( &info ) );
18564 resultCheck( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ),
18573 template <
typename DataType>
18581 "Function <vkWriteMicromapsPropertiesEXT> needs extension <VK_EXT_opacity_micromap> enabled!" );
18584 std::vector<DataType>
data( dataSize /
sizeof(
DataType ) );
18585 VkResult result = getDispatcher()->vkWriteMicromapsPropertiesEXT( static_cast<VkDevice>( m_device ),
18587 reinterpret_cast<const VkMicromapEXT *
>( micromaps.
data() ),
18588 static_cast<VkQueryType>( queryType ),
18590 reinterpret_cast<void *>( data.data() ),
18597 template <
typename DataType>
18604 "Function <vkWriteMicromapsPropertiesEXT> needs extension <VK_EXT_opacity_micromap> enabled!" );
18607 VkResult result = getDispatcher()->vkWriteMicromapsPropertiesEXT( static_cast<VkDevice>( m_device ),
18609 reinterpret_cast<const VkMicromapEXT *
>( micromaps.
data() ),
18610 static_cast<VkQueryType>( queryType ),
18612 reinterpret_cast<void *>( &data ),
18623 getDispatcher()->vkCmdCopyMicromapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyMicromapInfoEXT *>( &info ) );
18629 "Function <vkCmdCopyMicromapToMemoryEXT> needs extension <VK_EXT_opacity_micromap> enabled!" );
18631 getDispatcher()->vkCmdCopyMicromapToMemoryEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18632 reinterpret_cast<const VkCopyMicromapToMemoryInfoEXT *>( &info ) );
18638 "Function <vkCmdCopyMemoryToMicromapEXT> needs extension <VK_EXT_opacity_micromap> enabled!" );
18640 getDispatcher()->vkCmdCopyMemoryToMicromapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18641 reinterpret_cast<const VkCopyMemoryToMicromapInfoEXT *>( &info ) );
18648 uint32_t firstQuery )
const VULKAN_HPP_NOEXCEPT
18651 "Function <vkCmdWriteMicromapsPropertiesEXT> needs extension <VK_EXT_opacity_micromap> enabled!" );
18653 getDispatcher()->vkCmdWriteMicromapsPropertiesEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18655 reinterpret_cast<const VkMicromapEXT *
>( micromaps.data() ),
18656 static_cast<VkQueryType>( queryType ),
18657 static_cast<VkQueryPool
>( queryPool ),
18665 "Function <vkGetDeviceMicromapCompatibilityEXT> needs extension <VK_EXT_opacity_micromap> enabled!" );
18668 getDispatcher()->vkGetDeviceMicromapCompatibilityEXT( static_cast<VkDevice>( m_device ),
18669 reinterpret_cast<const VkMicromapVersionInfoEXT *>( &versionInfo ),
18670 reinterpret_cast<VkAccelerationStructureCompatibilityKHR *>( &compatibility ) );
18672 return compatibility;
18680 "Function <vkGetMicromapBuildSizesEXT> needs extension <VK_EXT_opacity_micromap> enabled!" );
18683 getDispatcher()->vkGetMicromapBuildSizesEXT( static_cast<VkDevice>( m_device ),
18684 static_cast<VkAccelerationStructureBuildTypeKHR>( buildType ),
18685 reinterpret_cast<const VkMicromapBuildInfoEXT *>( &buildInfo ),
18686 reinterpret_cast<VkMicromapBuildSizesInfoEXT *>( &sizeInfo ) );
18696 "Function <vkSetDeviceMemoryPriorityEXT> needs extension <VK_EXT_pageable_device_local_memory> enabled!" );
18698 getDispatcher()->vkSetDeviceMemoryPriorityEXT( static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( m_memory ), priority );
18707 "Function <vkGetDeviceBufferMemoryRequirementsKHR> needs extension <VK_KHR_maintenance4> enabled!" );
18710 getDispatcher()->vkGetDeviceBufferMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
18711 reinterpret_cast<const VkDeviceBufferMemoryRequirements *>( &info ),
18712 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
18714 return memoryRequirements;
18717 template <
typename X,
typename Y,
typename...
Z>
18722 "Function <vkGetDeviceBufferMemoryRequirementsKHR> needs extension <VK_KHR_maintenance4> enabled!" );
18726 getDispatcher()->vkGetDeviceBufferMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
18727 reinterpret_cast<const VkDeviceBufferMemoryRequirements *>( &info ),
18728 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
18730 return structureChain;
18737 "Function <vkGetDeviceImageMemoryRequirementsKHR> needs extension <VK_KHR_maintenance4> enabled!" );
18740 getDispatcher()->vkGetDeviceImageMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
18741 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ),
18742 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
18744 return memoryRequirements;
18747 template <
typename X,
typename Y,
typename...
Z>
18752 "Function <vkGetDeviceImageMemoryRequirementsKHR> needs extension <VK_KHR_maintenance4> enabled!" );
18756 getDispatcher()->vkGetDeviceImageMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
18757 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ),
18758 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
18760 return structureChain;
18767 "Function <vkGetDeviceImageSparseMemoryRequirementsKHR> needs extension <VK_KHR_maintenance4> enabled!" );
18769 std::vector<VULKAN_HPP_NAMESPACE::SparseImageMemoryRequirements2> sparseMemoryRequirements;
18770 uint32_t sparseMemoryRequirementCount;
18771 getDispatcher()->vkGetDeviceImageSparseMemoryRequirementsKHR(
18772 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ), &sparseMemoryRequirementCount,
nullptr );
18773 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
18774 getDispatcher()->vkGetDeviceImageSparseMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
18775 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ),
18776 &sparseMemoryRequirementCount,
18777 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
18779 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
18780 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
18782 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
18784 return sparseMemoryRequirements;
18793 "Function <vkGetDescriptorSetLayoutHostMappingInfoVALVE> needs extension <VK_VALVE_descriptor_set_host_mapping> enabled!" );
18796 getDispatcher()->vkGetDescriptorSetLayoutHostMappingInfoVALVE( static_cast<VkDevice>( m_device ),
18797 reinterpret_cast<const VkDescriptorSetBindingReferenceVALVE *>( &bindingReference ),
18798 reinterpret_cast<VkDescriptorSetLayoutHostMappingInfoVALVE *>( &hostMapping ) );
18800 return hostMapping;
18806 "Function <vkGetDescriptorSetHostMappingVALVE> needs extension <VK_VALVE_descriptor_set_host_mapping> enabled!" );
18809 getDispatcher()->vkGetDescriptorSetHostMappingVALVE( static_cast<VkDevice>( m_device ), static_cast<VkDescriptorSet>( m_descriptorSet ), &pData );
18817 uint32_t copyCount,
18818 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
18821 "Function <vkCmdCopyMemoryIndirectNV> needs extension <VK_NV_copy_memory_indirect> enabled!" );
18823 getDispatcher()->vkCmdCopyMemoryIndirectNV(
18824 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkDeviceAddress>( copyBufferAddress ), copyCount,
stride );
18835 "Function <vkCmdCopyMemoryToImageIndirectNV> needs extension <VK_NV_copy_memory_indirect> enabled!" );
18837 getDispatcher()->vkCmdCopyMemoryToImageIndirectNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
18838 static_cast<VkDeviceAddress>( copyBufferAddress ),
18839 imageSubresources.size(),
18841 static_cast<VkImage
>( dstImage ),
18842 static_cast<VkImageLayout>( dstImageLayout ),
18852 "Function <vkCmdDecompressMemoryNV> needs extension <VK_NV_memory_decompression> enabled!" );
18854 getDispatcher()->vkCmdDecompressMemoryNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
18855 decompressMemoryRegions.size(),
18861 uint32_t
stride )
const VULKAN_HPP_NOEXCEPT
18864 "Function <vkCmdDecompressMemoryIndirectCountNV> needs extension <VK_NV_memory_decompression> enabled!" );
18866 getDispatcher()->vkCmdDecompressMemoryIndirectCountNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
18867 static_cast<VkDeviceAddress>( indirectCommandsAddress ),
18868 static_cast<VkDeviceAddress>( indirectCommandsCountAddress ),
18878 "Function <vkCmdSetTessellationDomainOriginEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18880 getDispatcher()->vkCmdSetTessellationDomainOriginEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18881 static_cast<VkTessellationDomainOrigin>( domainOrigin ) );
18887 "Function <vkCmdSetDepthClampEnableEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18889 getDispatcher()->vkCmdSetDepthClampEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthClampEnable ) );
18895 "Function <vkCmdSetPolygonModeEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18897 getDispatcher()->vkCmdSetPolygonModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPolygonMode>( polygonMode ) );
18903 "Function <vkCmdSetRasterizationSamplesEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18905 getDispatcher()->vkCmdSetRasterizationSamplesEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18906 static_cast<VkSampleCountFlagBits>( rasterizationSamples ) );
18914 "Function <vkCmdSetSampleMaskEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18916 getDispatcher()->vkCmdSetSampleMaskEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18917 static_cast<VkSampleCountFlagBits>(
samples ),
18918 reinterpret_cast<const VkSampleMask *>( sampleMask.data() ) );
18924 "Function <vkCmdSetAlphaToCoverageEnableEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18926 getDispatcher()->vkCmdSetAlphaToCoverageEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( alphaToCoverageEnable ) );
18932 "Function <vkCmdSetAlphaToOneEnableEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18934 getDispatcher()->vkCmdSetAlphaToOneEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( alphaToOneEnable ) );
18940 "Function <vkCmdSetLogicOpEnableEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18942 getDispatcher()->vkCmdSetLogicOpEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( logicOpEnable ) );
18949 "Function <vkCmdSetColorBlendEnableEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18951 getDispatcher()->vkCmdSetColorBlendEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18953 colorBlendEnables.size(),
18954 reinterpret_cast<const VkBool32 *
>( colorBlendEnables.data() ) );
18958 uint32_t firstAttachment,
18962 "Function <vkCmdSetColorBlendEquationEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18964 getDispatcher()->vkCmdSetColorBlendEquationEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18966 colorBlendEquations.size(),
18971 uint32_t firstAttachment,
18975 "Function <vkCmdSetColorWriteMaskEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18977 getDispatcher()->vkCmdSetColorWriteMaskEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18979 colorWriteMasks.size(),
18983 VULKAN_HPP_INLINE void CommandBuffer::setRasterizationStreamEXT( uint32_t rasterizationStream )
const VULKAN_HPP_NOEXCEPT
18986 "Function <vkCmdSetRasterizationStreamEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18988 getDispatcher()->vkCmdSetRasterizationStreamEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), rasterizationStream );
18995 "Function <vkCmdSetConservativeRasterizationModeEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
18997 getDispatcher()->vkCmdSetConservativeRasterizationModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
18998 static_cast<VkConservativeRasterizationModeEXT>( conservativeRasterizationMode ) );
19001 VULKAN_HPP_INLINE void CommandBuffer::setExtraPrimitiveOverestimationSizeEXT(
float extraPrimitiveOverestimationSize )
const VULKAN_HPP_NOEXCEPT
19004 "Function <vkCmdSetExtraPrimitiveOverestimationSizeEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19006 getDispatcher()->vkCmdSetExtraPrimitiveOverestimationSizeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), extraPrimitiveOverestimationSize );
19012 "Function <vkCmdSetDepthClipEnableEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19014 getDispatcher()->vkCmdSetDepthClipEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthClipEnable ) );
19020 "Function <vkCmdSetSampleLocationsEnableEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19022 getDispatcher()->vkCmdSetSampleLocationsEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( sampleLocationsEnable ) );
19026 uint32_t firstAttachment,
19030 "Function <vkCmdSetColorBlendAdvancedEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19032 getDispatcher()->vkCmdSetColorBlendAdvancedEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
19034 colorBlendAdvanced.size(),
19042 "Function <vkCmdSetProvokingVertexModeEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19044 getDispatcher()->vkCmdSetProvokingVertexModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
19045 static_cast<VkProvokingVertexModeEXT>( provokingVertexMode ) );
19052 "Function <vkCmdSetLineRasterizationModeEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19054 getDispatcher()->vkCmdSetLineRasterizationModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
19055 static_cast<VkLineRasterizationModeEXT>( lineRasterizationMode ) );
19061 "Function <vkCmdSetLineStippleEnableEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19063 getDispatcher()->vkCmdSetLineStippleEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( stippledLineEnable ) );
19069 "Function <vkCmdSetDepthClipNegativeOneToOneEXT> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19071 getDispatcher()->vkCmdSetDepthClipNegativeOneToOneEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( negativeOneToOne ) );
19077 "Function <vkCmdSetViewportWScalingEnableNV> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19079 getDispatcher()->vkCmdSetViewportWScalingEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( viewportWScalingEnable ) );
19083 uint32_t firstViewport,
19087 "Function <vkCmdSetViewportSwizzleNV> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19089 getDispatcher()->vkCmdSetViewportSwizzleNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19091 viewportSwizzles.size(),
19098 "Function <vkCmdSetCoverageToColorEnableNV> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19100 getDispatcher()->vkCmdSetCoverageToColorEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( coverageToColorEnable ) );
19103 VULKAN_HPP_INLINE void CommandBuffer::setCoverageToColorLocationNV( uint32_t coverageToColorLocation )
const VULKAN_HPP_NOEXCEPT
19106 "Function <vkCmdSetCoverageToColorLocationNV> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19108 getDispatcher()->vkCmdSetCoverageToColorLocationNV( static_cast<VkCommandBuffer>( m_commandBuffer ), coverageToColorLocation );
19115 "Function <vkCmdSetCoverageModulationModeNV> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19117 getDispatcher()->vkCmdSetCoverageModulationModeNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19118 static_cast<VkCoverageModulationModeNV>( coverageModulationMode ) );
19125 "Function <vkCmdSetCoverageModulationTableEnableNV> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19127 getDispatcher()->vkCmdSetCoverageModulationTableEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19128 static_cast<VkBool32>( coverageModulationTableEnable ) );
19135 "Function <vkCmdSetCoverageModulationTableNV> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19137 getDispatcher()->vkCmdSetCoverageModulationTableNV(
19138 static_cast<VkCommandBuffer>( m_commandBuffer ), coverageModulationTable.size(), coverageModulationTable.data() );
19144 "Function <vkCmdSetShadingRateImageEnableNV> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19146 getDispatcher()->vkCmdSetShadingRateImageEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( shadingRateImageEnable ) );
19153 "Function <vkCmdSetRepresentativeFragmentTestEnableNV> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19155 getDispatcher()->vkCmdSetRepresentativeFragmentTestEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19156 static_cast<VkBool32>( representativeFragmentTestEnable ) );
19163 "Function <vkCmdSetCoverageReductionModeNV> needs extension <VK_EXT_extended_dynamic_state3> enabled!" );
19165 getDispatcher()->vkCmdSetCoverageReductionModeNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19166 static_cast<VkCoverageReductionModeNV>( coverageReductionMode ) );
19174 "Function <vkGetShaderModuleIdentifierEXT> needs extension <VK_EXT_shader_module_identifier> enabled!" );
19177 getDispatcher()->vkGetShaderModuleIdentifierEXT(
19178 static_cast<VkDevice>( m_device ), static_cast<VkShaderModule>( m_shaderModule ), reinterpret_cast<VkShaderModuleIdentifierEXT *>( &identifier ) );
19187 "Function <vkGetShaderModuleCreateInfoIdentifierEXT> needs extension <VK_EXT_shader_module_identifier> enabled!" );
19190 getDispatcher()->vkGetShaderModuleCreateInfoIdentifierEXT( static_cast<VkDevice>( m_device ),
19191 reinterpret_cast<const VkShaderModuleCreateInfo *>( &createInfo ),
19192 reinterpret_cast<VkShaderModuleIdentifierEXT *>( &identifier ) );
19203 "Function <vkGetPhysicalDeviceOpticalFlowImageFormatsNV> needs extension <VK_NV_optical_flow> enabled!" );
19205 std::vector<VULKAN_HPP_NAMESPACE::OpticalFlowImageFormatPropertiesNV> imageFormatProperties;
19206 uint32_t formatCount;
19210 result = getDispatcher()->vkGetPhysicalDeviceOpticalFlowImageFormatsNV(
19211 static_cast<VkPhysicalDevice>( m_physicalDevice ),
19212 reinterpret_cast<const VkOpticalFlowImageFormatInfoNV *>( &opticalFlowImageFormatInfo ),
19215 if ( ( result ==
VK_SUCCESS ) && formatCount )
19217 imageFormatProperties.resize( formatCount );
19218 result = getDispatcher()->vkGetPhysicalDeviceOpticalFlowImageFormatsNV(
19219 static_cast<VkPhysicalDevice>( m_physicalDevice ),
19220 reinterpret_cast<const VkOpticalFlowImageFormatInfoNV *>( &opticalFlowImageFormatInfo ),
19222 reinterpret_cast<VkOpticalFlowImageFormatPropertiesNV *>( imageFormatProperties.data() ) );
19227 if ( formatCount < imageFormatProperties.size() )
19229 imageFormatProperties.resize( formatCount );
19231 return imageFormatProperties;
19246 "Function <vkBindOpticalFlowSessionImageNV> needs extension <VK_NV_optical_flow> enabled!" );
19248 VkResult result = getDispatcher()->vkBindOpticalFlowSessionImageNV( static_cast<VkDevice>( m_device ),
19249 static_cast<VkOpticalFlowSessionNV>( m_session ),
19250 static_cast<VkOpticalFlowSessionBindingPointNV>( bindingPoint ),
19251 static_cast<VkImageView>( view ),
19252 static_cast<VkImageLayout>( layout ) );
19261 getDispatcher()->vkCmdOpticalFlowExecuteNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19262 static_cast<VkOpticalFlowSessionNV>( session ),
19263 reinterpret_cast<const VkOpticalFlowExecuteInfoNV *>( &executeInfo ) );
19271 "Function <vkGetFramebufferTilePropertiesQCOM> needs extension <VK_QCOM_tile_properties> enabled!" );
19273 std::vector<VULKAN_HPP_NAMESPACE::TilePropertiesQCOM> properties;
19274 uint32_t propertiesCount;
19278 result = getDispatcher()->vkGetFramebufferTilePropertiesQCOM(
19279 static_cast<VkDevice>( m_device ), static_cast<VkFramebuffer>( m_framebuffer ), &propertiesCount,
nullptr );
19280 if ( ( result ==
VK_SUCCESS ) && propertiesCount )
19282 properties.resize( propertiesCount );
19283 result = getDispatcher()->vkGetFramebufferTilePropertiesQCOM( static_cast<VkDevice>( m_device ),
19284 static_cast<VkFramebuffer>( m_framebuffer ),
19286 reinterpret_cast<VkTilePropertiesQCOM *>( properties.data() ) );
19291 if ( propertiesCount < properties.size() )
19293 properties.resize( propertiesCount );
19302 "Function <vkGetDynamicRenderingTilePropertiesQCOM> needs extension <VK_QCOM_tile_properties> enabled!" );
19305 getDispatcher()->vkGetDynamicRenderingTilePropertiesQCOM( static_cast<VkDevice>( m_device ),
19306 reinterpret_cast<const VkRenderingInfo *>( &renderingInfo ),
19307 reinterpret_cast<VkTilePropertiesQCOM *>( &properties ) );
PFN_vkCmdBeginQueryIndexedEXT vkCmdBeginQueryIndexedEXT
void(VKAPI_PTR * PFN_vkCmdEndRenderPass2)(VkCommandBuffer commandBuffer, const VkSubpassEndInfo *pSubpassEndInfo)
VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorBufferEmbeddedSamplersEXT(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t set)
GLsizei GLenum GLsizei GLsizei GLuint memory
void(VKAPI_PTR * PFN_vkCmdSetScissorWithCountEXT)(VkCommandBuffer commandBuffer, uint32_t scissorCount, const VkRect2D *pScissors)
VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayModePropertiesKHR(VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t *pPropertyCount, VkDisplayModePropertiesKHR *pProperties)
VULKAN_HPP_NAMESPACE::ImageView release()
VkDeviceAddress(VKAPI_PTR * PFN_vkGetBufferDeviceAddress)(VkDevice device, const VkBufferDeviceAddressInfo *pInfo)
PFN_vkCmdBuildAccelerationStructureNV vkCmdBuildAccelerationStructureNV
PFN_dummy vkBindVideoSessionMemoryKHR_placeholder
size_t getVkHeaderVersion() const
void swap(ArAssetInfo &lhs, ArAssetInfo &rhs)
VKAPI_ATTR void VKAPI_CALL vkCmdDecompressMemoryNV(VkCommandBuffer commandBuffer, uint32_t decompressRegionCount, const VkDecompressMemoryRegionNV *pDecompressMemoryRegions)
VKAPI_ATTR void VKAPI_CALL vkCmdSetColorBlendAdvancedEXT(VkCommandBuffer commandBuffer, uint32_t firstAttachment, uint32_t attachmentCount, const VkColorBlendAdvancedEXT *pColorBlendAdvanced)
VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::DeviceDispatcher const * getDispatcher() const
PFN_vkGetPhysicalDeviceProperties2KHR vkGetPhysicalDeviceProperties2KHR
void(VKAPI_PTR * PFN_vkCmdCopyAccelerationStructureNV)(VkCommandBuffer commandBuffer, VkAccelerationStructureNV dst, VkAccelerationStructureNV src, VkCopyAccelerationStructureModeKHR mode)
VkResult(VKAPI_PTR * PFN_vkCreateComputePipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo *pCreateInfos, const VkAllocationCallbacks *pAllocator, VkPipeline *pPipelines)
void(VKAPI_PTR * PFN_vkDestroyAccelerationStructureKHR)(VkDevice device, VkAccelerationStructureKHR accelerationStructure, const VkAllocationCallbacks *pAllocator)
PFN_vkGetShaderModuleIdentifierEXT vkGetShaderModuleIdentifierEXT
PFN_dummy vkGetPhysicalDeviceScreenPresentationSupportQNX_placeholder
PFN_vkCmdWaitEvents vkCmdWaitEvents
GLuint GLsizei const GLuint const GLintptr const GLsizeiptr * sizes
PFN_vkSetLocalDimmingAMD vkSetLocalDimmingAMD
PFN_vkCmdPipelineBarrier2 vkCmdPipelineBarrier2
void(VKAPI_PTR * PFN_vkCmdCopyImageToBuffer2)(VkCommandBuffer commandBuffer, const VkCopyImageToBufferInfo2 *pCopyImageToBufferInfo)
PerformanceConfigurationINTEL(std::nullptr_t)
VkResult(VKAPI_PTR * PFN_vkGetRandROutputDisplayEXT)(VkPhysicalDevice physicalDevice, Display *dpy, RROutput rrOutput, VkDisplayKHR *pDisplay)
CommandBuffer(CommandBuffer &&rhs) VULKAN_HPP_NOEXCEPT
VULKAN_HPP_NAMESPACE::Device getDevice() const
PFN_vkBeginCommandBuffer vkBeginCommandBuffer
VkResult(VKAPI_PTR * PFN_vkAllocateMemory)(VkDevice device, const VkMemoryAllocateInfo *pAllocateInfo, const VkAllocationCallbacks *pAllocator, VkDeviceMemory *pMemory)
VKAPI_ATTR void VKAPI_CALL vkUninitializePerformanceApiINTEL(VkDevice device)
Pipeline(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const &device, VULKAN_HPP_NAMESPACE::Optional< const VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::PipelineCache > const &pipelineCache, VULKAN_HPP_NAMESPACE::GraphicsPipelineCreateInfo const &createInfo, VULKAN_HPP_NAMESPACE::Optional< const VULKAN_HPP_NAMESPACE::AllocationCallbacks > allocator=nullptr)
VkResult(VKAPI_PTR * PFN_vkAcquireXlibDisplayEXT)(VkPhysicalDevice physicalDevice, Display *dpy, VkDisplayKHR display)
SwapchainKHR(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const &device, VkSwapchainKHR swapchain, VULKAN_HPP_NAMESPACE::Optional< const VULKAN_HPP_NAMESPACE::AllocationCallbacks > allocator=nullptr)
PFN_vkGetPhysicalDevicePresentRectanglesKHR vkGetPhysicalDevicePresentRectanglesKHR
VkResult(VKAPI_PTR * PFN_vkGetPastPresentationTimingGOOGLE)(VkDevice device, VkSwapchainKHR swapchain, uint32_t *pPresentationTimingCount, VkPastPresentationTimingGOOGLE *pPresentationTimings)
m_dispatcher(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::exchange(rhs.m_dispatcher, nullptr))
void(VKAPI_PTR * PFN_vkCmdBlitImage2KHR)(VkCommandBuffer commandBuffer, const VkBlitImageInfo2 *pBlitImageInfo)
AccelerationStructureKHR(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const &device, VkAccelerationStructureKHR accelerationStructure, VULKAN_HPP_NAMESPACE::Optional< const VULKAN_HPP_NAMESPACE::AllocationCallbacks > allocator=nullptr)
DescriptorUpdateTemplate(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const &device, VkDescriptorUpdateTemplate descriptorUpdateTemplate, VULKAN_HPP_NAMESPACE::Optional< const VULKAN_HPP_NAMESPACE::AllocationCallbacks > allocator=nullptr)
PhysicalDevice(PhysicalDevice &&rhs) VULKAN_HPP_NOEXCEPT
VkResult(VKAPI_PTR * PFN_vkBindBufferMemory2KHR)(VkDevice device, uint32_t bindInfoCount, const VkBindBufferMemoryInfo *pBindInfos)
Pipeline(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const &device, VULKAN_HPP_NAMESPACE::Optional< const VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::PipelineCache > const &pipelineCache, VULKAN_HPP_NAMESPACE::RayTracingPipelineCreateInfoNV const &createInfo, VULKAN_HPP_NAMESPACE::Optional< const VULKAN_HPP_NAMESPACE::AllocationCallbacks > allocator=nullptr)
CuModuleNVX(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const &device, VULKAN_HPP_NAMESPACE::CuModuleCreateInfoNVX const &createInfo, VULKAN_HPP_NAMESPACE::Optional< const VULKAN_HPP_NAMESPACE::AllocationCallbacks > allocator=nullptr)
void(VKAPI_PTR * PFN_vkCmdSetBlendConstants)(VkCommandBuffer commandBuffer, const float blendConstants[4])
PFN_vkGetDeviceImageSparseMemoryRequirementsKHR vkGetDeviceImageSparseMemoryRequirementsKHR
DisplayKHR(DisplayKHR &&rhs) VULKAN_HPP_NOEXCEPT
VkResult(VKAPI_PTR * PFN_vkWaitSemaphoresKHR)(VkDevice device, const VkSemaphoreWaitInfo *pWaitInfo, uint64_t timeout)
VKAPI_ATTR void VKAPI_CALL vkCmdCopyAccelerationStructureKHR(VkCommandBuffer commandBuffer, const VkCopyAccelerationStructureInfoKHR *pInfo)
GLuint GLsizei const GLchar * message
PFN_vkCmdSetViewportWithCount vkCmdSetViewportWithCount
Mat3< typename promote< S, T >::type > operator*(S scalar, const Mat3< T > &m)
Multiply each element of the given matrix by scalar and return the result.
PFN_dummy vkGetSemaphoreZirconHandleFUCHSIA_placeholder
VKAPI_ATTR void VKAPI_CALL vkCmdBeginConditionalRenderingEXT(VkCommandBuffer commandBuffer, const VkConditionalRenderingBeginInfoEXT *pConditionalRenderingBegin)
ILMTHREAD_EXPORT Semaphore(unsigned int value=0)
VULKAN_HPP_NAMESPACE::MicromapEXT release()
VkDeviceAddress(VKAPI_PTR * PFN_vkGetBufferDeviceAddressEXT)(VkDevice device, const VkBufferDeviceAddressInfo *pInfo)
PFN_vkGetPhysicalDeviceImageFormatProperties vkGetPhysicalDeviceImageFormatProperties
void(VKAPI_PTR * PFN_vkCmdSetCheckpointNV)(VkCommandBuffer commandBuffer, const void *pCheckpointMarker)
PFN_vkCreateDeferredOperationKHR vkCreateDeferredOperationKHR
PFN_vkCreateRenderPass vkCreateRenderPass
VULKAN_HPP_NAMESPACE::BufferView const & operator*() const VULKAN_HPP_NOEXCEPT
VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWaylandPresentationSupportKHR(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct wl_display *display)
void swap(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::PhysicalDevice &rhs) VULKAN_HPP_NOEXCEPT
void(VKAPI_PTR * PFN_vkCmdEndRenderPass)(VkCommandBuffer commandBuffer)
VkResult(VKAPI_PTR * PFN_vkCreateDevice)(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkDevice *pDevice)
PFN_vkGetAccelerationStructureHandleNV vkGetAccelerationStructureHandleNV
VULKAN_HPP_NAMESPACE::ValidationCacheEXT const & operator*() const VULKAN_HPP_NOEXCEPT
DisplayModeKHR & operator=(DisplayModeKHR &&rhs) VULKAN_HPP_NOEXCEPT
void(VKAPI_PTR * PFN_vkGetDeviceBufferMemoryRequirementsKHR)(VkDevice device, const VkDeviceBufferMemoryRequirements *pInfo, VkMemoryRequirements2 *pMemoryRequirements)
VkBool32(VKAPI_PTR * PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, xcb_connection_t *connection, xcb_visualid_t visual_id)
PFN_vkCmdDrawIndirect vkCmdDrawIndirect
PFN_vkGetPhysicalDeviceQueueFamilyProperties vkGetPhysicalDeviceQueueFamilyProperties
VULKAN_HPP_NAMESPACE::Device getDevice() const
m_dispatcher(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::exchange(rhs.m_dispatcher, nullptr))
PFN_vkCmdSetPrimitiveRestartEnable vkCmdSetPrimitiveRestartEnable
PFN_vkDestroyCuFunctionNVX vkDestroyCuFunctionNVX
PrivateDataSlot(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const &device, VULKAN_HPP_NAMESPACE::PrivateDataSlotCreateInfo const &createInfo, VULKAN_HPP_NAMESPACE::Optional< const VULKAN_HPP_NAMESPACE::AllocationCallbacks > allocator=nullptr)
VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryWin32HandleNV(VkDevice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE *pHandle)
void(VKAPI_PTR * PFN_vkDestroyFramebuffer)(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks *pAllocator)
VkResult(VKAPI_PTR * PFN_vkGetPipelineExecutablePropertiesKHR)(VkDevice device, const VkPipelineInfoKHR *pPipelineInfo, uint32_t *pExecutableCount, VkPipelineExecutablePropertiesKHR *pProperties)
VKAPI_ATTR void VKAPI_CALL vkGetBufferMemoryRequirements2KHR(VkDevice device, const VkBufferMemoryRequirementsInfo2 *pInfo, VkMemoryRequirements2 *pMemoryRequirements)
VKAPI_ATTR void VKAPI_CALL vkCmdSetDiscardRectangleEXT(VkCommandBuffer commandBuffer, uint32_t firstDiscardRectangle, uint32_t discardRectangleCount, const VkRect2D *pDiscardRectangles)
VULKAN_HPP_NAMESPACE::Instance getInstance() const
PFN_vkGetPhysicalDeviceSurfaceFormatsKHR vkGetPhysicalDeviceSurfaceFormatsKHR
VKAPI_ATTR void VKAPI_CALL vkCmdSetLineRasterizationModeEXT(VkCommandBuffer commandBuffer, VkLineRasterizationModeEXT lineRasterizationMode)
VkResult(VKAPI_PTR * PFN_vkCmdSetPerformanceStreamMarkerINTEL)(VkCommandBuffer commandBuffer, const VkPerformanceStreamMarkerInfoINTEL *pMarkerInfo)
PFN_vkCmdWriteMicromapsPropertiesEXT vkCmdWriteMicromapsPropertiesEXT
void(VKAPI_PTR * PFN_vkCmdSetDepthBias)(VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor)
PFN_vkEnumeratePhysicalDeviceGroupsKHR vkEnumeratePhysicalDeviceGroupsKHR
PFN_vkCmdDispatchBaseKHR vkCmdDispatchBaseKHR
void(VKAPI_PTR * PFN_vkGetShaderModuleIdentifierEXT)(VkDevice device, VkShaderModule shaderModule, VkShaderModuleIdentifierEXT *pIdentifier)
VKAPI_ATTR void VKAPI_CALL vkGetDescriptorSetLayoutSizeEXT(VkDevice device, VkDescriptorSetLayout layout, VkDeviceSize *pLayoutSizeInBytes)
VKAPI_ATTR void VKAPI_CALL vkGetPrivateDataEXT(VkDevice device, VkObjectType objectType, uint64_t objectHandle, VkPrivateDataSlot privateDataSlot, uint64_t *pData)
DescriptorSet(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const &device, VkDescriptorSet descriptorSet, VkDescriptorPool descriptorPool)
VKAPI_ATTR void VKAPI_CALL vkTrimCommandPoolKHR(VkDevice device, VkCommandPool commandPool, VkCommandPoolTrimFlags flags)
PFN_vkCmdCopyBuffer2 vkCmdCopyBuffer2
VULKAN_HPP_NAMESPACE::Device release()
RenderPass(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const &device, VkRenderPass renderPass, VULKAN_HPP_NAMESPACE::Optional< const VULKAN_HPP_NAMESPACE::AllocationCallbacks > allocator=nullptr)
PFN_vkGetMicromapBuildSizesEXT vkGetMicromapBuildSizesEXT
PFN_vkCreateGraphicsPipelines vkCreateGraphicsPipelines
PFN_vkDestroyDevice vkDestroyDevice
DescriptorSet(std::nullptr_t)
VkResult(VKAPI_PTR * PFN_vkSetPrivateData)(VkDevice device, VkObjectType objectType, uint64_t objectHandle, VkPrivateDataSlot privateDataSlot, uint64_t data)
PFN_vkGetPhysicalDeviceFormatProperties2 vkGetPhysicalDeviceFormatProperties2
VkResult(VKAPI_PTR * PFN_vkGetPhysicalDeviceSurfaceFormats2KHR)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR *pSurfaceInfo, uint32_t *pSurfaceFormatCount, VkSurfaceFormat2KHR *pSurfaceFormats)
VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::DeviceDispatcher const * getDispatcher() const
VKAPI_ATTR void VKAPI_CALL vkCmdSetCoverageToColorLocationNV(VkCommandBuffer commandBuffer, uint32_t coverageToColorLocation)
VkResult(VKAPI_PTR * PFN_vkEnumerateInstanceLayerProperties)(uint32_t *pPropertyCount, VkLayerProperties *pProperties)
void(VKAPI_PTR * PFN_vkCmdSetCoverageModulationTableNV)(VkCommandBuffer commandBuffer, uint32_t coverageModulationTableCount, const float *pCoverageModulationTable)
PFN_vkGetDrmDisplayEXT vkGetDrmDisplayEXT
void(VKAPI_PTR * PFN_vkCmdSetStencilCompareMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask)
VkResult(VKAPI_PTR * PFN_vkGetFenceWin32HandleKHR)(VkDevice device, const VkFenceGetWin32HandleInfoKHR *pGetWin32HandleInfo, HANDLE *pHandle)
PFN_vkCmdSetDepthClipNegativeOneToOneEXT vkCmdSetDepthClipNegativeOneToOneEXT
PFN_vkCmdSetAlphaToCoverageEnableEXT vkCmdSetAlphaToCoverageEnableEXT
DescriptorPool(VULKAN_HPP_NAMESPACE::VULKAN_HPP_RAII_NAMESPACE::Device const &device, VkDescriptorPool descriptorPool, VULKAN_HPP_NAMESPACE::Optional< const VULKAN_HPP_NAMESPACE::AllocationCallbacks > allocator=nullptr)