This class is a wrapper of VulkanRenderPass. Used during Renderer. More...
#include <RendererPass.h>
Public Member Functions | |
| RendererPass (const std::string &passName, std::shared_ptr< VulkanDevice > vulkanDevice) | |
| Constructor Function. | |
| virtual | ~RendererPass () |
| std::shared_ptr< scl::linked_unordered_map< std::string, std::shared_ptr< RendererSubPass > > > | GetSubPasses () |
| Get SubPasses held by this renderer pass. | |
| std::shared_ptr< RendererSubPass > | AddSubPass (const std::string &subPassName, uint32_t index, Querier::StatisticsFlags flags) const |
| Add a subp ass to this renderer pass. | |
| uint32_t | AddAttachment (const std::string &attachmentName, const VkAttachmentDescription &description, uint32_t layers, const VkClearValue &clearValue) |
| Add a attachment to this renderer pass. | |
| uint32_t | AddAttachment (const std::string &attachmentName, const VkAttachmentDescription &description, const VkClearValue &clearValue, uint32_t layers, const VkImageView &view) |
| Add a attachment to this renderer pass. | |
| void | BuildRendererPass () |
| Build RenderPass. | |
| VkRenderPass & | Get () const |
| Get VkRenderPass. | |
| std::string & | GetName () |
| Get Renderer pass name. | |
| VkFramebuffer & | GetFramebuffer (uint32_t index) const |
| Get VkFramebuffer by index. | |
| bool | IsUseSwapChain () const |
| Determine whether the RendererPass is using swapchain image. | |
| std::vector< VkClearValue > & | GetClearValues () |
| Get ClearValues. | |
Private Attributes | |
| std::string | m_PassName |
| RenderPass's name. | |
| std::shared_ptr< scl::linked_unordered_map< std::string, std::shared_ptr< RendererSubPass > > > | m_SubPasses |
| SubPass this RenderPass handled. | |
| std::unique_ptr< VulkanRenderPass > | m_RenderPass |
| VulkanRenderPass this RenderPass handled. | |
| scl::linked_unordered_map< std::string, VkAttachmentDescription > | m_AttachmentDescriptions |
| VkAttachmentDescription this RenderPass handled. | |
| std::vector< VkClearValue > | m_ClearValues |
| VkClearValue this RenderPass handled. | |
| std::vector< VkImageView > | m_ImageViews |
| VkImageView this RenderPass handled. | |
| std::shared_ptr< VulkanDevice > | m_Device |
| VulkanDevice. | |
| uint32_t | m_MaxLayers = 1 |
| Max Attachment layer. | |
| bool | m_IsSwapChainImageInUse = false |
| True if the RendererPass is using swapchain image. | |
This class is a wrapper of VulkanRenderPass. Used during Renderer.
Definition at line 18 of file RendererPass.h.