Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
vulkan::VulkanProvider Class Referenceabstract

#include <vulkan_provider.h>

Inheritance diagram for vulkan::VulkanProvider:
flutter_runner::VulkanSurfaceProducer

Public Member Functions

virtual const vulkan::VulkanProcTablevk ()=0
 
virtual const vulkan::VulkanHandle< VkDevice > & vk_device ()=0
 
vulkan::VulkanHandle< VkFence > CreateFence ()
 

Detailed Description

Definition at line 13 of file vulkan_provider.h.

Member Function Documentation

◆ CreateFence()

vulkan::VulkanHandle< VkFence > vulkan::VulkanProvider::CreateFence ( )
inline

Definition at line 18 of file vulkan_provider.h.

18 {
19 const VkFenceCreateInfo create_info = {
21 .pNext = nullptr,
22 .flags = 0,
23 };
24 VkFence fence;
25 if (VK_CALL_LOG_ERROR(vk().CreateFence(vk_device(), &create_info, nullptr,
26 &fence)) != VK_SUCCESS)
28
29 return VulkanHandle<VkFence>{fence, [this](VkFence fence) {
30 vk().DestroyFence(vk_device(), fence,
31 nullptr);
32 }};
33 }
vulkan::VulkanHandle< VkFence > CreateFence()
virtual const vulkan::VulkanProcTable & vk()=0
virtual const vulkan::VulkanHandle< VkDevice > & vk_device()=0
VkStructureType sType
Definition: vulkan_core.h:3386
@ VK_SUCCESS
Definition: vulkan_core.h:141
@ VK_STRUCTURE_TYPE_FENCE_CREATE_INFO
Definition: vulkan_core.h:210
#define VK_CALL_LOG_ERROR(expression)

◆ vk()

virtual const vulkan::VulkanProcTable & vulkan::VulkanProvider::vk ( )
pure virtual

◆ vk_device()

virtual const vulkan::VulkanHandle< VkDevice > & vulkan::VulkanProvider::vk_device ( )
pure virtual

The documentation for this class was generated from the following files: