Graphics/FrameGraph: Rename BindAttachmentToExternalTexture

This commit is contained in:
Lynix 2023-11-21 20:46:22 +01:00
parent a018701251
commit 6a19ab7ba2
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ namespace Nz
BakedFrameGraph Bake();
inline void BindAttachmentToExternalTexture(std::size_t attachmentIndex, std::shared_ptr<Texture> texture);
inline void BindExternalTexture(std::size_t attachmentIndex, std::shared_ptr<Texture> texture);
FrameGraph& operator=(const FrameGraph&) = delete;
FrameGraph& operator=(FrameGraph&&) noexcept = default;

View File

@ -89,7 +89,7 @@ namespace Nz
m_backbufferOutputs.push_back(attachmentIndex);
}
inline void FrameGraph::BindAttachmentToExternalTexture(std::size_t attachmentIndex, std::shared_ptr<Texture> texture)
inline void FrameGraph::BindExternalTexture(std::size_t attachmentIndex, std::shared_ptr<Texture> texture)
{
m_externalTextures[attachmentIndex] = std::move(texture);
}

View File

@ -18,7 +18,7 @@ namespace Nz
void RenderTexture::OnBuildGraph(FrameGraph& graph, std::size_t attachmentIndex) const
{
graph.BindAttachmentToExternalTexture(attachmentIndex, m_targetTexture);
graph.BindExternalTexture(attachmentIndex, m_targetTexture);
}
void RenderTexture::OnRenderEnd(RenderFrame& /*renderFrame*/, const BakedFrameGraph& /*frameGraph*/, std::size_t /*finalAttachment*/) const