Graphics: Improve WorldInstance handling

This commit is contained in:
Jérôme Leclercq
2021-06-20 13:31:49 +02:00
parent 3ef3580ee7
commit 6f87a01fb2
5 changed files with 9 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ namespace Nz
Model(Model&&) noexcept = default;
~Model() = default;
void Draw(CommandBufferBuilder& commandBuffer, WorldInstance& instance) const override;
void Draw(CommandBufferBuilder& commandBuffer, const WorldInstance& instance) const override;
const std::shared_ptr<AbstractBuffer>& GetIndexBuffer(std::size_t subMeshIndex) const;
std::size_t GetIndexCount(std::size_t subMeshIndex) const;