#include <inline_pass_context.h>
Classes | |
struct | RenderPassResult |
Public Member Functions | |
InlinePassContext (const ContentContext &renderer, EntityPassTarget &pass_target, uint32_t pass_texture_reads, uint32_t entity_count, std::optional< RenderPassResult > collapsed_parent_pass=std::nullopt) | |
~InlinePassContext () | |
bool | IsValid () const |
bool | IsActive () const |
std::shared_ptr< Texture > | GetTexture () |
bool | EndPass () |
EntityPassTarget & | GetPassTarget () const |
uint32_t | GetPassCount () const |
RenderPassResult | GetRenderPass (uint32_t pass_depth) |
Definition at line 17 of file inline_pass_context.h.
impeller::InlinePassContext::InlinePassContext | ( | const ContentContext & | renderer, |
EntityPassTarget & | pass_target, | ||
uint32_t | pass_texture_reads, | ||
uint32_t | entity_count, | ||
std::optional< RenderPassResult > | collapsed_parent_pass = std::nullopt |
||
) |
Definition at line 20 of file inline_pass_context.cc.
impeller::InlinePassContext::~InlinePassContext | ( | ) |
Definition at line 35 of file inline_pass_context.cc.
References EndPass().
bool impeller::InlinePassContext::EndPass | ( | ) |
Definition at line 56 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 208 of file inline_pass_context.cc.
EntityPassTarget & impeller::InlinePassContext::GetPassTarget | ( | ) | const |
Definition at line 90 of file inline_pass_context.cc.
Referenced by EndPass().
InlinePassContext::RenderPassResult impeller::InlinePassContext::GetRenderPass | ( | uint32_t | pass_depth | ) |
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 94 of file inline_pass_context.cc.
References impeller::InlinePassContext::RenderPassResult::backdrop_texture, impeller::EntityPassTarget::Flip(), impeller::RenderTarget::GetColorAttachments(), impeller::ContentContext::GetContext(), impeller::RenderTarget::GetDepthAttachment(), impeller::EntityPassTarget::GetRenderTarget(), impeller::RenderTarget::GetStencilAttachment(), IsActive(), impeller::InlinePassContext::RenderPassResult::just_created, impeller::kClear, impeller::kDontCare, impeller::ContentContext::kEnableStencilThenCover, impeller::kLoad, impeller::kMultisampleResolve, impeller::kStore, impeller::Allocation::NextPowerOfTwoSize(), impeller::InlinePassContext::RenderPassResult::pass, impeller::RenderTarget::SetColorAttachment(), impeller::RenderTarget::SetDepthAttachment(), impeller::RenderTarget::SetStencilAttachment(), and VALIDATION_LOG.
std::shared_ptr< Texture > impeller::InlinePassContext::GetTexture | ( | ) |
Definition at line 49 of file inline_pass_context.cc.
References impeller::EntityPassTarget::GetRenderTarget(), impeller::RenderTarget::GetRenderTargetTexture(), and IsValid().
bool impeller::InlinePassContext::IsActive | ( | ) | const |
Definition at line 45 of file inline_pass_context.cc.
Referenced by EndPass(), and GetRenderPass().
bool impeller::InlinePassContext::IsValid | ( | ) | const |
Definition at line 41 of file inline_pass_context.cc.
References impeller::EntityPassTarget::IsValid().
Referenced by GetTexture().