diff --git a/include/Nazara/Graphics/FrameGraph.hpp b/include/Nazara/Graphics/FrameGraph.hpp index c28dac90e..44c2d295e 100644 --- a/include/Nazara/Graphics/FrameGraph.hpp +++ b/include/Nazara/Graphics/FrameGraph.hpp @@ -33,7 +33,7 @@ namespace Nz ~FrameGraph() = default; inline std::size_t AddAttachment(FramePassAttachment attachment); - inline std::size_t AddAttachmentArray(FramePassAttachment attachment, std::size_t layerCount); + inline std::size_t AddAttachmentArray(FramePassAttachment attachment, unsigned int layerCount); inline std::size_t AddAttachmentArrayLayer(std::size_t attachmentId, std::size_t layerIndex); inline std::size_t AddAttachmentCube(FramePassAttachment attachment); inline std::size_t AddAttachmentCubeFace(std::size_t attachmentId, CubemapFace face); diff --git a/include/Nazara/Graphics/FrameGraph.inl b/include/Nazara/Graphics/FrameGraph.inl index eb4110539..e44e11bf8 100644 --- a/include/Nazara/Graphics/FrameGraph.inl +++ b/include/Nazara/Graphics/FrameGraph.inl @@ -15,7 +15,7 @@ namespace Nz return id; } - inline std::size_t FrameGraph::AddAttachmentArray(FramePassAttachment attachment, std::size_t layerCount) + inline std::size_t FrameGraph::AddAttachmentArray(FramePassAttachment attachment, unsigned int layerCount) { AttachmentArray attachmentArray{ std::move(attachment) }; attachmentArray.layerCount = layerCount;