Flutter Engine
The Flutter Engine
|
a wrapper around the impeller [Allocator] instance that can be used to provide caching of allocated render target textures. More...
#include <render_target.h>
Public Member Functions | |
RenderTargetAllocator (std::shared_ptr< Allocator > allocator) | |
virtual | ~RenderTargetAllocator ()=default |
virtual RenderTarget | CreateOffscreen (const Context &context, ISize size, int mip_count, const std::string &label="Offscreen", RenderTarget::AttachmentConfig color_attachment_config=RenderTarget::kDefaultColorAttachmentConfig, std::optional< RenderTarget::AttachmentConfig > stencil_attachment_config=RenderTarget::kDefaultStencilAttachmentConfig, const std::shared_ptr< Texture > &existing_color_texture=nullptr, const std::shared_ptr< Texture > &existing_depth_stencil_texture=nullptr) |
virtual RenderTarget | CreateOffscreenMSAA (const Context &context, ISize size, int mip_count, const std::string &label="Offscreen MSAA", RenderTarget::AttachmentConfigMSAA color_attachment_config=RenderTarget::kDefaultColorAttachmentConfigMSAA, std::optional< RenderTarget::AttachmentConfig > stencil_attachment_config=RenderTarget::kDefaultStencilAttachmentConfig, const std::shared_ptr< Texture > &existing_color_msaa_texture=nullptr, const std::shared_ptr< Texture > &existing_color_resolve_texture=nullptr, const std::shared_ptr< Texture > &existing_depth_stencil_texture=nullptr) |
virtual void | Start () |
Mark the beginning of a frame workload. More... | |
virtual void | End () |
Mark the end of a frame workload. More... | |
a wrapper around the impeller [Allocator] instance that can be used to provide caching of allocated render target textures.
Definition at line 142 of file render_target.h.
|
explicit |
Definition at line 251 of file render_target.cc.
|
virtualdefault |
|
virtual |
Reimplemented in impeller::RenderTargetCache.
Definition at line 259 of file render_target.cc.
|
virtual |
Reimplemented in impeller::RenderTargetCache.
Definition at line 313 of file render_target.cc.
|
virtual |
Mark the end of a frame workload.
This may be used to deallocate any unused textures.
Reimplemented in impeller::RenderTargetCache.
Definition at line 257 of file render_target.cc.
|
virtual |
Mark the beginning of a frame workload.
This may be used to reset any tracking state on whether or not a particular texture instance is still in use.
Reimplemented in impeller::RenderTargetCache.
Definition at line 255 of file render_target.cc.