#include <render_pass_builder_vk.h>
Public Member Functions | |
RenderPassBuilderVK () | |
~RenderPassBuilderVK () | |
RenderPassBuilderVK (const RenderPassBuilderVK &)=delete | |
RenderPassBuilderVK & | operator= (const RenderPassBuilderVK &)=delete |
RenderPassBuilderVK & | SetColorAttachment (size_t index, PixelFormat format, SampleCount sample_count, LoadAction load_action, StoreAction store_action, vk::ImageLayout current_layout=vk::ImageLayout::eUndefined, bool is_swapchain=false) |
RenderPassBuilderVK & | SetDepthStencilAttachment (PixelFormat format, SampleCount sample_count, LoadAction load_action, StoreAction store_action) |
RenderPassBuilderVK & | SetStencilAttachment (PixelFormat format, SampleCount sample_count, LoadAction load_action, StoreAction store_action) |
vk::UniqueRenderPass | Build (const vk::Device &device) const |
const std::map< size_t, vk::AttachmentDescription > & | GetColorAttachments () const |
const std::map< size_t, vk::AttachmentDescription > & | GetResolves () const |
const std::optional< vk::AttachmentDescription > & | GetDepthStencil () const |
std::optional< vk::AttachmentDescription > | GetColor0 () const |
std::optional< vk::AttachmentDescription > | GetColor0Resolve () const |
Definition at line 21 of file render_pass_builder_vk.h.
|
default |
|
default |
|
delete |
vk::UniqueRenderPass impeller::RenderPassBuilderVK::Build | ( | const vk::Device & | device | ) | const |
Definition at line 122 of file render_pass_builder_vk.cc.
References impeller::kSelfDependencyDstAccessMask, impeller::kSelfDependencyDstStageMask, impeller::kSelfDependencyFlags, impeller::kSelfDependencySrcAccessMask, impeller::kSelfDependencySrcStageMask, impeller::kUnusedAttachmentReference, and VALIDATION_LOG.
Referenced by impeller::CreateCompatRenderPassForPipeline(), impeller::ContextVK::InitializeCommonlyUsedShadersIfNeeded(), and impeller::testing::TEST().
std::optional< vk::AttachmentDescription > impeller::RenderPassBuilderVK::GetColor0 | ( | ) | const |
Definition at line 290 of file render_pass_builder_vk.cc.
Referenced by impeller::testing::TEST().
std::optional< vk::AttachmentDescription > impeller::RenderPassBuilderVK::GetColor0Resolve | ( | ) | const |
Definition at line 296 of file render_pass_builder_vk.cc.
Referenced by impeller::testing::TEST().
const std::map< size_t, vk::AttachmentDescription > & impeller::RenderPassBuilderVK::GetColorAttachments | ( | ) | const |
Definition at line 275 of file render_pass_builder_vk.cc.
const std::optional< vk::AttachmentDescription > & impeller::RenderPassBuilderVK::GetDepthStencil | ( | ) | const |
Definition at line 285 of file render_pass_builder_vk.cc.
Referenced by impeller::testing::TEST().
const std::map< size_t, vk::AttachmentDescription > & impeller::RenderPassBuilderVK::GetResolves | ( | ) | const |
Definition at line 280 of file render_pass_builder_vk.cc.
|
delete |
RenderPassBuilderVK & impeller::RenderPassBuilderVK::SetColorAttachment | ( | size_t | index, |
PixelFormat | format, | ||
SampleCount | sample_count, | ||
LoadAction | load_action, | ||
StoreAction | store_action, | ||
vk::ImageLayout | current_layout = vk::ImageLayout::eUndefined , |
||
bool | is_swapchain = false |
||
) |
Definition at line 38 of file render_pass_builder_vk.cc.
References e1, impeller::kCount1, impeller::kLoad, impeller::StoreActionPerformsResolve(), impeller::ToVKAttachmentLoadOp(), impeller::ToVKAttachmentStoreOp(), impeller::ToVKImageFormat(), and impeller::ToVKSampleCount().
Referenced by impeller::CreateCompatRenderPassForPipeline(), impeller::ContextVK::InitializeCommonlyUsedShadersIfNeeded(), and impeller::testing::TEST().
RenderPassBuilderVK & impeller::RenderPassBuilderVK::SetDepthStencilAttachment | ( | PixelFormat | format, |
SampleCount | sample_count, | ||
LoadAction | load_action, | ||
StoreAction | store_action | ||
) |
Definition at line 86 of file render_pass_builder_vk.cc.
References impeller::ToVKAttachmentLoadOp(), impeller::ToVKAttachmentStoreOp(), impeller::ToVKImageFormat(), and impeller::ToVKSampleCount().
Referenced by impeller::CreateCompatRenderPassForPipeline(), impeller::ContextVK::InitializeCommonlyUsedShadersIfNeeded(), and impeller::testing::TEST().
RenderPassBuilderVK & impeller::RenderPassBuilderVK::SetStencilAttachment | ( | PixelFormat | format, |
SampleCount | sample_count, | ||
LoadAction | load_action, | ||
StoreAction | store_action | ||
) |
Definition at line 104 of file render_pass_builder_vk.cc.
References impeller::ToVKAttachmentLoadOp(), impeller::ToVKAttachmentStoreOp(), impeller::ToVKImageFormat(), and impeller::ToVKSampleCount().
Referenced by impeller::CreateCompatRenderPassForPipeline(), impeller::ContextVK::InitializeCommonlyUsedShadersIfNeeded(), and impeller::testing::TEST().