#include <inline_pass_context.h>
Public Member Functions | |
InlinePassContext (const ContentContext &renderer, EntityPassTarget &pass_target) | |
~InlinePassContext () | |
bool | IsValid () const |
bool | IsActive () const |
std::shared_ptr< Texture > | GetTexture () |
bool | EndPass (bool is_onscreen=false) |
EntityPassTarget & | GetPassTarget () const |
uint32_t | GetPassCount () const |
const std::shared_ptr< RenderPass > & | GetRenderPass () |
Definition at line 17 of file inline_pass_context.h.
impeller::InlinePassContext::InlinePassContext | ( | const ContentContext & | renderer, |
EntityPassTarget & | pass_target | ||
) |
Definition at line 20 of file inline_pass_context.cc.
impeller::InlinePassContext::~InlinePassContext | ( | ) |
Definition at line 24 of file inline_pass_context.cc.
References EndPass().
bool impeller::InlinePassContext::EndPass | ( | bool | is_onscreen = false | ) |
Definition at line 43 of file inline_pass_context.cc.
References impeller::AddMipmapGeneration(), impeller::ContentContext::GetContext(), GetPassTarget(), impeller::EntityPassTarget::GetRenderTarget(), impeller::RenderTarget::GetRenderTargetTexture(), IsActive(), and VALIDATION_LOG.
Referenced by ~InlinePassContext().
uint32_t impeller::InlinePassContext::GetPassCount | ( | ) | const |
Definition at line 157 of file inline_pass_context.cc.
EntityPassTarget & impeller::InlinePassContext::GetPassTarget | ( | ) | const |
Definition at line 74 of file inline_pass_context.cc.
Referenced by EndPass().
const std::shared_ptr< RenderPass > & impeller::InlinePassContext::GetRenderPass | ( | ) |
Create a new render pass if one isn't active. This path will run the first time this method is called, but it'll also run if the pass has been previously ended via EndPass
.
Definition at line 78 of file inline_pass_context.cc.
References impeller::EntityPassTarget::Flip(), impeller::RenderTarget::GetColorAttachment(), impeller::ContentContext::GetContext(), impeller::RenderTarget::GetDepthAttachment(), impeller::EntityPassTarget::GetRenderTarget(), impeller::RenderTarget::GetStencilAttachment(), IsActive(), impeller::kClear, impeller::kDontCare, impeller::kLoad, impeller::kMultisampleResolve, impeller::kStore, impeller::Attachment::load_action, impeller::Attachment::resolve_texture, impeller::RenderTarget::SetColorAttachment(), impeller::RenderTarget::SetDepthAttachment(), impeller::RenderTarget::SetStencilAttachment(), impeller::Attachment::store_action, and VALIDATION_LOG.
std::shared_ptr< Texture > impeller::InlinePassContext::GetTexture | ( | ) |
Definition at line 36 of file inline_pass_context.cc.
References impeller::EntityPassTarget::GetRenderTarget(), impeller::RenderTarget::GetRenderTargetTexture(), and IsValid().
bool impeller::InlinePassContext::IsActive | ( | ) | const |
Definition at line 32 of file inline_pass_context.cc.
Referenced by EndPass(), and GetRenderPass().
bool impeller::InlinePassContext::IsValid | ( | ) | const |
Definition at line 28 of file inline_pass_context.cc.
References impeller::EntityPassTarget::IsValid().
Referenced by GetTexture().