Graphics/RenderTexture: Remove no longer used config

This commit is contained in:
SirLynix 2023-11-20 23:12:20 +01:00
parent 448cf3b86e
commit 7991071e41
3 changed files with 1 additions and 8 deletions

View File

@ -20,7 +20,6 @@ namespace Nz
{ {
public: public:
inline RenderTexture(std::shared_ptr<Texture> targetTexture); inline RenderTexture(std::shared_ptr<Texture> targetTexture);
RenderTexture(std::shared_ptr<Texture> targetTexture, PipelineStage targetPipelineStage, MemoryAccessFlags targetMemoryFlags, TextureLayout targetLayout);
RenderTexture(const RenderTexture&) = delete; RenderTexture(const RenderTexture&) = delete;
RenderTexture(RenderTexture&&) = delete; RenderTexture(RenderTexture&&) = delete;
~RenderTexture() = default; ~RenderTexture() = default;
@ -35,9 +34,6 @@ namespace Nz
private: private:
std::shared_ptr<Texture> m_targetTexture; std::shared_ptr<Texture> m_targetTexture;
MemoryAccessFlags m_targetMemoryFlags;
PipelineStage m_targetPipelineStage;
TextureLayout m_targetLayout;
Vector2ui m_textureSize; Vector2ui m_textureSize;
}; };
} }

View File

@ -718,7 +718,7 @@ namespace Nz
prevIt = it2; prevIt = it2;
} }
auto framePassCallback = [&, viewerData, renderMask](std::size_t /*passIndex*/, FramePass& framePass, FramePipelinePassFlags flags) auto framePassCallback = [&, viewer = viewerData->viewer](std::size_t /*passIndex*/, FramePass& framePass, FramePipelinePassFlags flags)
{ {
// Inject previous final attachments as inputs for all passes, to force framegraph to order viewers passes relative to each other // Inject previous final attachments as inputs for all passes, to force framegraph to order viewers passes relative to each other
// TODO: Allow the user to define which pass of viewer A uses viewer B rendering // TODO: Allow the user to define which pass of viewer A uses viewer B rendering

View File

@ -12,9 +12,6 @@ namespace Nz
{ {
RenderTexture::RenderTexture(std::shared_ptr<Texture> texture, PipelineStage targetPipelineStage, MemoryAccessFlags targetMemoryFlags, TextureLayout targetLayout) : RenderTexture::RenderTexture(std::shared_ptr<Texture> texture, PipelineStage targetPipelineStage, MemoryAccessFlags targetMemoryFlags, TextureLayout targetLayout) :
m_targetTexture(std::move(texture)), m_targetTexture(std::move(texture)),
m_targetMemoryFlags(targetMemoryFlags),
m_targetPipelineStage(targetPipelineStage),
m_targetLayout(targetLayout),
m_textureSize(Vector2ui(m_targetTexture->GetSize())) m_textureSize(Vector2ui(m_targetTexture->GetSize()))
{ {
} }