![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <vulkan_context.hpp>

Public Member Functions | |
| VulkanInstance ()=default | |
| VulkanInstance (const VulkanInstance &other)=delete | |
| VulkanInstance (VulkanInstance &&other)=delete | |
| ~VulkanInstance () | |
| void | destroy () |
| void | get_available_gpus (std::vector< std::pair< std::string, bool > > &gpus) |
| returns all available grafhics cards first parameter is gpu name, second parameter is true only if the gpu is suitable for vulkan_display | |
| vk::Instance & | get_instance () |
| void | init (std::vector< const char * > &required_extensions, bool enable_validation, std::function< void(LogLevel, std::string_view)> logging_function=cout_msg) |
| VulkanInstance & | operator= (const VulkanInstance &other)=delete |
| VulkanInstance & | operator= (VulkanInstance &&other)=delete |
Private Member Functions | |
| void | init_validation_layers_error_messenger () |
Private Attributes | |
| std::unique_ptr< vk::DispatchLoaderDynamic > | dynamic_dispatcher = nullptr |
| vk::Instance | instance {} |
| vk::DebugUtilsMessengerEXT | messenger {} |
| uint32_t | vulkan_version = VK_API_VERSION_1_1 |
Friends | |
| void | vulkan_display_detail::VulkanContext::init (VulkanInstance &&, vk::SurfaceKHR, vulkan_display::WindowParameters, uint32_t, vk::PresentModeKHR) |
Definition at line 222 of file vulkan_context.hpp.
|
default |
|
delete |
|
delete |
|
inline |
Definition at line 239 of file vulkan_context.hpp.
References destroy().

| void vulkan_display::VulkanInstance::destroy | ( | ) |
Definition at line 361 of file vulkan_context.cpp.
References dynamic_dispatcher, instance, and messenger.
Referenced by ~VulkanInstance().
| void vulkan_display::VulkanInstance::get_available_gpus | ( | std::vector< std::pair< std::string, bool > > & | gpus | ) |
returns all available grafhics cards first parameter is gpu name, second parameter is true only if the gpu is suitable for vulkan_display
Definition at line 348 of file vulkan_context.cpp.
References instance.
|
inline |
Definition at line 257 of file vulkan_context.hpp.
References instance.
| void vulkan_display::VulkanInstance::init | ( | std::vector< const char * > & | required_extensions, |
| bool | enable_validation, | ||
| std::function< void(LogLevel, std::string_view)> | logging_function = cout_msg ) |
| required_extensions | Vulkan instance extensions requested by aplication, usually needed for creating vulkan surface |
| enable_validation | Enable vulkan validation layers, they should be disabled in release build. |
Definition at line 289 of file vulkan_context.cpp.
References dynamic_dispatcher, init_validation_layers_error_messenger(), instance, vulkan_display_detail::vulkan_log_msg, and vulkan_version.

|
private |
Definition at line 336 of file vulkan_context.cpp.
References dynamic_dispatcher, instance, and messenger.
Referenced by init().
|
delete |
|
delete |
|
friend |
|
private |
Definition at line 224 of file vulkan_context.hpp.
Referenced by destroy(), init(), and init_validation_layers_error_messenger().
|
private |
Definition at line 223 of file vulkan_context.hpp.
Referenced by destroy(), get_available_gpus(), get_instance(), init(), and init_validation_layers_error_messenger().
|
private |
Definition at line 225 of file vulkan_context.hpp.
Referenced by destroy(), and init_validation_layers_error_messenger().
|
private |
Definition at line 226 of file vulkan_context.hpp.
Referenced by init().