Renderer/RenderPass: Implement RenderPass correctly
This commit is contained in:
@@ -3,10 +3,43 @@
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Renderer/RenderPass.hpp>
|
||||
#include <cassert>
|
||||
#include <Nazara/Renderer/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
inline RenderPass::RenderPass(std::vector<Attachment> attachments, std::vector<SubpassDescription> subpassDescriptions, std::vector<SubpassDependency> subpassDependencies) :
|
||||
m_attachments(std::move(attachments)),
|
||||
m_subpassDescriptions(std::move(subpassDescriptions)),
|
||||
m_subpassDependencies(std::move(subpassDependencies))
|
||||
{
|
||||
}
|
||||
|
||||
inline auto Nz::RenderPass::GetAttachment(std::size_t attachmentIndex) const -> const Attachment&
|
||||
{
|
||||
assert(attachmentIndex < m_attachments.size());
|
||||
return m_attachments[attachmentIndex];
|
||||
}
|
||||
|
||||
inline std::size_t RenderPass::GetAttachmentCount() const
|
||||
{
|
||||
return m_attachments.size();
|
||||
}
|
||||
|
||||
inline auto RenderPass::GetAttachments() const -> const std::vector<Attachment>&
|
||||
{
|
||||
return m_attachments;
|
||||
}
|
||||
|
||||
inline auto RenderPass::GetSubpassDescriptions() const -> const std::vector<SubpassDescription>&
|
||||
{
|
||||
return m_subpassDescriptions;
|
||||
}
|
||||
|
||||
inline auto RenderPass::GetsubpassDependencies() const -> const std::vector<SubpassDependency>&
|
||||
{
|
||||
return m_subpassDependencies;
|
||||
}
|
||||
}
|
||||
|
||||
#include <Nazara/Renderer/DebugOff.hpp>
|
||||
|
||||
Reference in New Issue
Block a user