SpiecsEngine
 
Loading...
Searching...
No Matches

◆ BuildSubPassDescription()

void Spices::RendererSubPass::BuildSubPassDescription ( )

Build VkSubpassDescription.

Definition at line 58 of file RendererSubPass.cpp.

59 {
61
62 m_SubPassDescriptions.pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS;
63 m_SubPassDescriptions.colorAttachmentCount = static_cast<uint32_t>(m_ColorAttachmentReference.size());
64 m_SubPassDescriptions.pColorAttachments = m_ColorAttachmentReference.data();
65 m_SubPassDescriptions.pDepthStencilAttachment = m_DepthAttachmentReference.empty() ? nullptr : m_DepthAttachmentReference.data();
66 m_SubPassDescriptions.inputAttachmentCount = static_cast<uint32_t>(m_InputAttachmentReference.size());
67 m_SubPassDescriptions.pInputAttachments = m_InputAttachmentReference.data();
68 }
#define SPICES_PROFILE_ZONE
std::vector< VkAttachmentReference > m_ColorAttachmentReference
Subpass used color attachment.
std::vector< VkAttachmentReference > m_InputAttachmentReference
Sub pass used input attachment.
VkSubpassDescription m_SubPassDescriptions
VkSubpassDescription.
std::vector< VkAttachmentReference > m_DepthAttachmentReference
Sub pass used depth attachment.