Graphics/PipelinePassList: Add support for attachment proxy

This commit is contained in:
SirLynix
2023-11-06 19:16:27 +01:00
committed by Jérôme Leclercq
parent 578240cd6f
commit db58921cc4
4 changed files with 52 additions and 4 deletions

View File

@@ -15,6 +15,14 @@ namespace Nz
return index;
}
inline std::size_t PipelinePassList::AddAttachmentProxy(std::string name, std::size_t attachmentIndex)
{
std::size_t index = m_attachments.size();
m_attachments.emplace_back(AttachmentProxy{ std::move(name), attachmentIndex });
return index;
}
inline std::size_t PipelinePassList::AddPass(std::string name, std::size_t implIndex, ParameterList parameterList)
{
std::size_t index = m_passes.size();