Graphics/RenderQueue: Remake it with a naive implementation

The idea is to improve it in the future, after profiling
This commit is contained in:
Jérôme Leclercq
2021-07-28 13:11:03 +02:00
parent 335b48056f
commit 3de0edec6f
8 changed files with 48 additions and 228 deletions

View File

@@ -8,6 +8,7 @@
#define NAZARA_ELEMENTRENDERER_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/Algorithm.hpp>
#include <Nazara/Graphics/Enums.hpp>
#include <memory>
#include <vector>
@@ -23,7 +24,7 @@ namespace Nz
ElementRenderer() = default;
virtual ~ElementRenderer();
virtual void Render(CommandBufferBuilder& commandBuffer, const RenderElement** elements, std::size_t elementCount) = 0;
virtual void Render(CommandBufferBuilder& commandBuffer, const Pointer<const RenderElement>* elements, std::size_t elementCount) = 0;
};
}