From 6a19ab7ba2b45b1514ab500935f9f4f082c3b520 Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 21 Nov 2023 20:46:22 +0100 Subject: [PATCH] Graphics/FrameGraph: Rename BindAttachmentToExternalTexture --- include/Nazara/Graphics/FrameGraph.hpp | 2 +- include/Nazara/Graphics/FrameGraph.inl | 2 +- src/Nazara/Graphics/RenderTexture.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Nazara/Graphics/FrameGraph.hpp b/include/Nazara/Graphics/FrameGraph.hpp index 5c7528e53..70b9a7b99 100644 --- a/include/Nazara/Graphics/FrameGraph.hpp +++ b/include/Nazara/Graphics/FrameGraph.hpp @@ -43,7 +43,7 @@ namespace Nz BakedFrameGraph Bake(); - inline void BindAttachmentToExternalTexture(std::size_t attachmentIndex, std::shared_ptr texture); + inline void BindExternalTexture(std::size_t attachmentIndex, std::shared_ptr texture); FrameGraph& operator=(const FrameGraph&) = delete; FrameGraph& operator=(FrameGraph&&) noexcept = default; diff --git a/include/Nazara/Graphics/FrameGraph.inl b/include/Nazara/Graphics/FrameGraph.inl index a78e56ffe..8a40491db 100644 --- a/include/Nazara/Graphics/FrameGraph.inl +++ b/include/Nazara/Graphics/FrameGraph.inl @@ -89,7 +89,7 @@ namespace Nz m_backbufferOutputs.push_back(attachmentIndex); } - inline void FrameGraph::BindAttachmentToExternalTexture(std::size_t attachmentIndex, std::shared_ptr texture) + inline void FrameGraph::BindExternalTexture(std::size_t attachmentIndex, std::shared_ptr texture) { m_externalTextures[attachmentIndex] = std::move(texture); } diff --git a/src/Nazara/Graphics/RenderTexture.cpp b/src/Nazara/Graphics/RenderTexture.cpp index 5d1c89c3f..f7f64a80b 100644 --- a/src/Nazara/Graphics/RenderTexture.cpp +++ b/src/Nazara/Graphics/RenderTexture.cpp @@ -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