Flutter Engine
The Flutter Engine
|
#include <render_target.h>
Classes | |
struct | AttachmentConfig |
struct | AttachmentConfigMSAA |
Public Member Functions | |
RenderTarget () | |
~RenderTarget () | |
bool | IsValid () const |
void | SetupDepthStencilAttachments (const Context &context, Allocator &allocator, ISize size, bool msaa, const std::string &label="Offscreen", RenderTarget::AttachmentConfig stencil_attachment_config=RenderTarget::kDefaultStencilAttachmentConfig, const std::shared_ptr< Texture > &depth_stencil_texture=nullptr) |
SampleCount | GetSampleCount () const |
bool | HasColorAttachment (size_t index) const |
ISize | GetRenderTargetSize () const |
std::shared_ptr< Texture > | GetRenderTargetTexture () const |
PixelFormat | GetRenderTargetPixelFormat () const |
std::optional< ISize > | GetColorAttachmentSize (size_t index) const |
RenderTarget & | SetColorAttachment (const ColorAttachment &attachment, size_t index) |
RenderTarget & | SetDepthAttachment (std::optional< DepthAttachment > attachment) |
RenderTarget & | SetStencilAttachment (std::optional< StencilAttachment > attachment) |
size_t | GetMaxColorAttacmentBindIndex () const |
const std::map< size_t, ColorAttachment > & | GetColorAttachments () const |
const std::optional< DepthAttachment > & | GetDepthAttachment () const |
const std::optional< StencilAttachment > & | GetStencilAttachment () const |
size_t | GetTotalAttachmentCount () const |
void | IterateAllAttachments (const std::function< bool(const Attachment &attachment)> &iterator) const |
std::string | ToString () const |
RenderTargetConfig | ToConfig () const |
Static Public Attributes | |
static constexpr AttachmentConfig | kDefaultColorAttachmentConfig |
static constexpr AttachmentConfigMSAA | kDefaultColorAttachmentConfigMSAA |
static constexpr AttachmentConfig | kDefaultStencilAttachmentConfig |
Definition at line 38 of file render_target.h.
|
default |
|
default |
const std::map< size_t, ColorAttachment > & impeller::RenderTarget::GetColorAttachments | ( | ) | const |
Definition at line 198 of file render_target.cc.
std::optional< ISize > impeller::RenderTarget::GetColorAttachmentSize | ( | size_t | index | ) | const |
Definition at line 129 of file render_target.cc.
const std::optional< DepthAttachment > & impeller::RenderTarget::GetDepthAttachment | ( | ) | const |
Definition at line 203 of file render_target.cc.
size_t impeller::RenderTarget::GetMaxColorAttacmentBindIndex | ( | ) | const |
Definition at line 161 of file render_target.cc.
PixelFormat impeller::RenderTarget::GetRenderTargetPixelFormat | ( | ) | const |
Definition at line 153 of file render_target.cc.
ISize impeller::RenderTarget::GetRenderTargetSize | ( | ) | const |
Definition at line 139 of file render_target.cc.
std::shared_ptr< Texture > impeller::RenderTarget::GetRenderTargetTexture | ( | ) | const |
Definition at line 144 of file render_target.cc.
SampleCount impeller::RenderTarget::GetSampleCount | ( | ) | const |
Definition at line 115 of file render_target.cc.
const std::optional< StencilAttachment > & impeller::RenderTarget::GetStencilAttachment | ( | ) | const |
Definition at line 207 of file render_target.cc.
size_t impeller::RenderTarget::GetTotalAttachmentCount | ( | ) | const |
bool impeller::RenderTarget::HasColorAttachment | ( | size_t | index | ) | const |
Definition at line 122 of file render_target.cc.
bool impeller::RenderTarget::IsValid | ( | ) | const |
Definition at line 23 of file render_target.cc.
void impeller::RenderTarget::IterateAllAttachments | ( | const std::function< bool(const Attachment &attachment)> & | iterator | ) | const |
Definition at line 94 of file render_target.cc.
RenderTarget & impeller::RenderTarget::SetColorAttachment | ( | const ColorAttachment & | attachment, |
size_t | index | ||
) |
Definition at line 169 of file render_target.cc.
RenderTarget & impeller::RenderTarget::SetDepthAttachment | ( | std::optional< DepthAttachment > | attachment | ) |
Definition at line 178 of file render_target.cc.
RenderTarget & impeller::RenderTarget::SetStencilAttachment | ( | std::optional< StencilAttachment > | attachment | ) |
Definition at line 188 of file render_target.cc.
void impeller::RenderTarget::SetupDepthStencilAttachments | ( | const Context & | context, |
Allocator & | allocator, | ||
ISize | size, | ||
bool | msaa, | ||
const std::string & | label = "Offscreen" , |
||
RenderTarget::AttachmentConfig | stencil_attachment_config = RenderTarget::kDefaultStencilAttachmentConfig , |
||
const std::shared_ptr< Texture > & | depth_stencil_texture = nullptr |
||
) |
Definition at line 413 of file render_target.cc.
|
inline |
Definition at line 125 of file render_target.h.
std::string impeller::RenderTarget::ToString | ( | ) | const |
Definition at line 231 of file render_target.cc.
|
staticconstexpr |
Definition at line 55 of file render_target.h.
|
staticconstexpr |
Definition at line 61 of file render_target.h.
|
staticconstexpr |
Definition at line 68 of file render_target.h.