Flutter Engine
The Flutter Engine
|
#include <vulkan_application.h>
Public Member Functions | |
VulkanApplication (VulkanProcTable &vk, const std::string &application_name, std::vector< std::string > enabled_extensions, uint32_t application_version=VK_MAKE_VERSION(1, 0, 0), uint32_t api_version=VK_MAKE_VERSION(1, 0, 0), bool enable_validation_layers=false) | |
~VulkanApplication () | |
bool | IsValid () const |
uint32_t | GetAPIVersion () const |
const VulkanHandle< VkInstance > & | GetInstance () const |
void | ReleaseInstanceOwnership () |
std::unique_ptr< VulkanDevice > | AcquireFirstCompatibleLogicalDevice () const |
Applications using Vulkan acquire a VulkanApplication that attempts to create a VkInstance (with debug reporting optionally enabled).
Definition at line 25 of file vulkan_application.h.
vulkan::VulkanApplication::VulkanApplication | ( | VulkanProcTable & | vk, |
const std::string & | application_name, | ||
std::vector< std::string > | enabled_extensions, | ||
uint32_t | application_version = VK_MAKE_VERSION(1, 0, 0) , |
||
uint32_t | api_version = VK_MAKE_VERSION(1, 0, 0) , |
||
bool | enable_validation_layers = false |
||
) |
Definition at line 16 of file vulkan_application.cc.
|
default |
std::unique_ptr< VulkanDevice > vulkan::VulkanApplication::AcquireFirstCompatibleLogicalDevice | ( | ) | const |
Definition at line 179 of file vulkan_application.cc.
uint32_t vulkan::VulkanApplication::GetAPIVersion | ( | ) | const |
Definition at line 135 of file vulkan_application.cc.
const VulkanHandle< VkInstance > & vulkan::VulkanApplication::GetInstance | ( | ) | const |
Definition at line 139 of file vulkan_application.cc.
bool vulkan::VulkanApplication::IsValid | ( | ) | const |
Definition at line 131 of file vulkan_application.cc.
void vulkan::VulkanApplication::ReleaseInstanceOwnership | ( | ) |
Definition at line 143 of file vulkan_application.cc.