make BlocksRenderer::createMesh return MeshData & make ChunksRenderer workers have standalone results

This commit is contained in:
MihailRis
2024-10-24 10:54:07 +03:00
parent 4e3064e37b
commit 3e1a82d137
5 changed files with 28 additions and 12 deletions
+2
View File
@@ -16,6 +16,8 @@ struct MeshData {
util::Buffer<int> indices;
util::Buffer<vattr> attrs;
MeshData() = default;
/// @param vertices vertex data buffer
/// @param indices nullable indices buffer
/// @param attrs vertex attribute sizes (must be null-terminated)