Flutter Engine
The Flutter Engine
|
#include <vulkan_device.h>
Public Member Functions | |
VulkanDevice (VulkanProcTable &vk, VulkanHandle< VkPhysicalDevice > physical_device, bool enable_validation_layers) | |
Create a new VkDevice with a resolved VkQueue suitable for rendering with Skia. More... | |
VulkanDevice (VulkanProcTable &vk, VulkanHandle< VkPhysicalDevice > physical_device, VulkanHandle< VkDevice > device, uint32_t queue_family_index, VulkanHandle< VkQueue > queue) | |
Wrap an existing VkDevice and VkQueue. More... | |
~VulkanDevice () | |
bool | IsValid () const |
const VulkanHandle< VkDevice > & | GetHandle () const |
const VulkanHandle< VkPhysicalDevice > & | GetPhysicalDeviceHandle () const |
const VulkanHandle< VkQueue > & | GetQueueHandle () const |
const VulkanHandle< VkCommandPool > & | GetCommandPool () const |
uint32_t | GetGraphicsQueueIndex () const |
void | ReleaseDeviceOwnership () |
bool | GetSurfaceCapabilities (const VulkanSurface &surface, VkSurfaceCapabilitiesKHR *capabilities) const |
bool | GetPhysicalDeviceFeatures (VkPhysicalDeviceFeatures *features) const |
int | ChooseSurfaceFormat (const VulkanSurface &surface, const std::vector< VkFormat > &desired_formats, VkSurfaceFormatKHR *format) const |
bool | ChoosePresentMode (const VulkanSurface &surface, VkPresentModeKHR *present_mode) const |
bool | QueueSubmit (std::vector< VkPipelineStageFlags > wait_dest_pipeline_stages, const std::vector< VkSemaphore > &wait_semaphores, const std::vector< VkSemaphore > &signal_semaphores, const std::vector< VkCommandBuffer > &command_buffers, const VulkanHandle< VkFence > &fence) const |
bool | WaitIdle () const |
Definition at line 19 of file vulkan_device.h.
vulkan::VulkanDevice::VulkanDevice | ( | VulkanProcTable & | vk, |
VulkanHandle< VkPhysicalDevice > | physical_device, | ||
bool | enable_validation_layers | ||
) |
Create a new VkDevice with a resolved VkQueue suitable for rendering with Skia.
Definition at line 32 of file vulkan_device.cc.
vulkan::VulkanDevice::VulkanDevice | ( | VulkanProcTable & | vk, |
VulkanHandle< VkPhysicalDevice > | physical_device, | ||
VulkanHandle< VkDevice > | device, | ||
uint32_t | queue_family_index, | ||
VulkanHandle< VkQueue > | queue | ||
) |
Wrap an existing VkDevice and VkQueue.
Definition at line 131 of file vulkan_device.cc.
vulkan::VulkanDevice::~VulkanDevice | ( | ) |
Definition at line 177 of file vulkan_device.cc.
bool vulkan::VulkanDevice::ChoosePresentMode | ( | const VulkanSurface & | surface, |
VkPresentModeKHR * | present_mode | ||
) | const |
Definition at line 322 of file vulkan_device.cc.
int vulkan::VulkanDevice::ChooseSurfaceFormat | ( | const VulkanSurface & | surface, |
const std::vector< VkFormat > & | desired_formats, | ||
VkSurfaceFormatKHR * | format | ||
) | const |
Definition at line 276 of file vulkan_device.cc.
const VulkanHandle< VkCommandPool > & vulkan::VulkanDevice::GetCommandPool | ( | ) | const |
Definition at line 206 of file vulkan_device.cc.
uint32_t vulkan::VulkanDevice::GetGraphicsQueueIndex | ( | ) | const |
Definition at line 210 of file vulkan_device.cc.
const VulkanHandle< VkDevice > & vulkan::VulkanDevice::GetHandle | ( | ) | const |
Definition at line 189 of file vulkan_device.cc.
bool vulkan::VulkanDevice::GetPhysicalDeviceFeatures | ( | VkPhysicalDeviceFeatures * | features | ) | const |
Definition at line 252 of file vulkan_device.cc.
const VulkanHandle< VkPhysicalDevice > & vulkan::VulkanDevice::GetPhysicalDeviceHandle | ( | ) | const |
Definition at line 197 of file vulkan_device.cc.
const VulkanHandle< VkQueue > & vulkan::VulkanDevice::GetQueueHandle | ( | ) | const |
Definition at line 202 of file vulkan_device.cc.
bool vulkan::VulkanDevice::GetSurfaceCapabilities | ( | const VulkanSurface & | surface, |
VkSurfaceCapabilitiesKHR * | capabilities | ||
) | const |
Definition at line 214 of file vulkan_device.cc.
bool vulkan::VulkanDevice::IsValid | ( | ) | const |
Definition at line 181 of file vulkan_device.cc.
bool vulkan::VulkanDevice::QueueSubmit | ( | std::vector< VkPipelineStageFlags > | wait_dest_pipeline_stages, |
const std::vector< VkSemaphore > & | wait_semaphores, | ||
const std::vector< VkSemaphore > & | signal_semaphores, | ||
const std::vector< VkCommandBuffer > & | command_buffers, | ||
const VulkanHandle< VkFence > & | fence | ||
) | const |
Definition at line 342 of file vulkan_device.cc.
void vulkan::VulkanDevice::ReleaseDeviceOwnership | ( | ) |
Definition at line 193 of file vulkan_device.cc.
bool vulkan::VulkanDevice::WaitIdle | ( | ) | const |
Definition at line 185 of file vulkan_device.cc.