Flutter Engine
 
Loading...
Searching...
No Matches
flutter::GPUSurfaceVulkanDelegate Class Referenceabstract

Interface implemented by all platform surfaces that can present a Vulkan backing store to the "screen". The GPU surface abstraction (which abstracts the client rendering API) uses this delegation pattern to tell the platform surface (which abstracts how backing stores fulfilled by the selected client rendering API end up on the "screen" on a particular platform) when the rasterizer needs to allocate and present the Vulkan backing store. More...

#include <gpu_surface_vulkan_delegate.h>

Inheritance diagram for flutter::GPUSurfaceVulkanDelegate:
flutter::EmbedderSurfaceVulkan flutter::EmbedderSurfaceVulkanImpeller

Public Member Functions

virtual ~GPUSurfaceVulkanDelegate ()
 
virtual const vulkan::VulkanProcTablevk ()=0
 Obtain a reference to the Vulkan implementation's proc table.
 
virtual FlutterVulkanImage AcquireImage (const DlISize &size)=0
 Called by the engine to fetch a VkImage for writing the next frame.
 
virtual bool PresentImage (VkImage image, VkFormat format)=0
 Called by the engine once a frame has been rendered to the image and it's ready to be bound for further reading/writing.
 

Detailed Description

Interface implemented by all platform surfaces that can present a Vulkan backing store to the "screen". The GPU surface abstraction (which abstracts the client rendering API) uses this delegation pattern to tell the platform surface (which abstracts how backing stores fulfilled by the selected client rendering API end up on the "screen" on a particular platform) when the rasterizer needs to allocate and present the Vulkan backing store.

See also
|EmbedderSurfaceVulkan|.

Definition at line 29 of file gpu_surface_vulkan_delegate.h.

Constructor & Destructor Documentation

◆ ~GPUSurfaceVulkanDelegate()

flutter::GPUSurfaceVulkanDelegate::~GPUSurfaceVulkanDelegate ( )
virtualdefault

Member Function Documentation

◆ AcquireImage()

virtual FlutterVulkanImage flutter::GPUSurfaceVulkanDelegate::AcquireImage ( const DlISize size)
pure virtual

Called by the engine to fetch a VkImage for writing the next frame.

Implemented in flutter::EmbedderSurfaceVulkan, and flutter::EmbedderSurfaceVulkanImpeller.

Referenced by flutter::GPUSurfaceVulkan::AcquireFrame().

◆ PresentImage()

virtual bool flutter::GPUSurfaceVulkanDelegate::PresentImage ( VkImage  image,
VkFormat  format 
)
pure virtual

Called by the engine once a frame has been rendered to the image and it's ready to be bound for further reading/writing.

Implemented in flutter::EmbedderSurfaceVulkan, and flutter::EmbedderSurfaceVulkanImpeller.

◆ vk()

virtual const vulkan::VulkanProcTable & flutter::GPUSurfaceVulkanDelegate::vk ( )
pure virtual

Obtain a reference to the Vulkan implementation's proc table.

Implemented in flutter::EmbedderSurfaceVulkan, and flutter::EmbedderSurfaceVulkanImpeller.


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