#include <entity_pass_target.h>
Public Member Functions | |
| EntityPassTarget (const RenderTarget &render_target, bool supports_read_from_resolve) | |
| std::shared_ptr< Texture > | Flip (Allocator &allocator) |
| Flips the backdrop and returns a readable texture that can be bound/sampled to restore the previous pass. More... | |
| const RenderTarget & | GetRenderTarget () const |
| bool | IsValid () const |
Definition at line 14 of file entity_pass_target.h.
|
explicit |
Definition at line 13 of file entity_pass_target.cc.
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 18 of file entity_pass_target.cc.
References impeller::Allocator::CreateTexture(), impeller::RenderTarget::GetColorAttachments(), impeller::RenderTarget::SetColorAttachment(), and VALIDATION_LOG.
Referenced by impeller::InlinePassContext::GetRenderPass().
| const RenderTarget & impeller::EntityPassTarget::GetRenderTarget | ( | ) | const |
Definition at line 57 of file entity_pass_target.cc.
Referenced by impeller::InlinePassContext::GetRenderPass(), and impeller::InlinePassContext::GetTexture().
| bool impeller::EntityPassTarget::IsValid | ( | ) | const |
Definition at line 61 of file entity_pass_target.cc.
References impeller::RenderTarget::IsValid().
Referenced by impeller::InlinePassContext::IsValid().