Graphics/FrameGraph: Rename AddBackbufferOutput to AddOutput

This commit is contained in:
Lynix
2023-11-21 22:06:24 +01:00
parent 6a19ab7ba2
commit f3aacc0cd2
5 changed files with 17 additions and 17 deletions

View File

@@ -39,7 +39,7 @@ namespace Nz
inline std::size_t AddAttachmentCubeFace(std::size_t attachmentId, CubemapFace face);
inline std::size_t AddAttachmentProxy(std::string name, std::size_t attachmentId);
inline FramePass& AddPass(std::string name);
inline void AddBackbufferOutput(std::size_t attachmentIndex);
inline void AddOutput(std::size_t attachmentIndex);
BakedFrameGraph Bake();
@@ -140,7 +140,7 @@ namespace Nz
using AttachmentType = std::variant<FramePassAttachment, AttachmentProxy, AttachmentArray, AttachmentCube, AttachmentLayer>;
std::vector<std::size_t> m_backbufferOutputs;
std::vector<std::size_t> m_graphOutputs;
std::vector<FramePass> m_framePasses;
std::vector<AttachmentType> m_attachments;
std::unordered_map<std::size_t, std::shared_ptr<Texture>> m_externalTextures;

View File

@@ -84,9 +84,9 @@ namespace Nz
return m_framePasses.emplace_back(*this, id, std::move(name));
}
inline void FrameGraph::AddBackbufferOutput(std::size_t attachmentIndex)
inline void FrameGraph::AddOutput(std::size_t attachmentIndex)
{
m_backbufferOutputs.push_back(attachmentIndex);
m_graphOutputs.push_back(attachmentIndex);
}
inline void FrameGraph::BindExternalTexture(std::size_t attachmentIndex, std::shared_ptr<Texture> texture)