#include <entity_pass_target.h>
Public Member Functions | |
EntityPassTarget (const RenderTarget &render_target, bool supports_read_from_resolve, bool supports_implicit_msaa) | |
std::shared_ptr< Texture > | Flip (const ContentContext &renderer) |
Flips the backdrop and returns a readable texture that can be bound/sampled to restore the previous pass. More... | |
RenderTarget & | GetRenderTarget () |
void | RemoveSecondary () |
Remove the cached secondary color texture. More... | |
bool | IsValid () const |
Definition at line 15 of file entity_pass_target.h.
|
explicit |
Definition at line 13 of file entity_pass_target.cc.
std::shared_ptr< Texture > impeller::EntityPassTarget::Flip | ( | const ContentContext & | renderer | ) |
Flips the backdrop and returns a readable texture that can be bound/sampled to restore the previous pass.
After this method is called, a new RenderPass
that attaches the result of GetRenderTarget
is guaranteed to be able to read the previous pass's backdrop texture (which is returned by this method).
Definition at line 20 of file entity_pass_target.cc.
References impeller::RenderTarget::GetColorAttachment(), impeller::ContentContext::GetContext(), impeller::ContentContext::GetRenderTargetCache(), impeller::RenderTarget::GetRenderTargetTexture(), impeller::Attachment::resolve_texture, impeller::RenderTarget::SetColorAttachment(), impeller::TextureDescriptor::size, impeller::Attachment::texture, and VALIDATION_LOG.
Referenced by impeller::InlinePassContext::GetRenderPass().
RenderTarget & impeller::EntityPassTarget::GetRenderTarget | ( | ) |
Definition at line 71 of file entity_pass_target.cc.
Referenced by impeller::InlinePassContext::EndPass(), impeller::InlinePassContext::GetRenderPass(), and impeller::InlinePassContext::GetTexture().
bool impeller::EntityPassTarget::IsValid | ( | ) | const |
Definition at line 75 of file entity_pass_target.cc.
References impeller::RenderTarget::IsValid().
Referenced by impeller::InlinePassContext::IsValid().
void impeller::EntityPassTarget::RemoveSecondary | ( | ) |
Remove the cached secondary color texture.
Definition at line 79 of file entity_pass_target.cc.