Graphics/FramePipelinePass: Replace pointer + size by span

This commit is contained in:
Lynix
2023-12-25 20:05:45 +01:00
parent 7cd1b32e95
commit 9fb308a531
6 changed files with 13 additions and 17 deletions

View File

@@ -14,6 +14,7 @@
#include <Nazara/Math/Rect.hpp>
#include <NazaraUtils/Bitset.hpp>
#include <limits>
#include <span>
namespace Nz
{
@@ -74,13 +75,10 @@ namespace Nz
struct PassInputOuputs
{
// TODO: Add Nz::View / Nz::Span
const std::size_t* inputAttachments;
const std::size_t* outputAttachments;
std::span<const std::size_t> inputAttachments;
std::span<const std::size_t> outputAttachments;
std::size_t depthStencilInput = InvalidAttachmentIndex;
std::size_t depthStencilOutput = InvalidAttachmentIndex;
std::size_t inputCount = 0;
std::size_t outputCount = 0;
};
struct VisibleRenderable