move chunk vertex attributes info to commons.hpp

This commit is contained in:
MihailRis
2024-11-17 00:54:10 +03:00
parent 608eb60514
commit 65287b3273
4 changed files with 32 additions and 30 deletions
+5
View File
@@ -7,6 +7,11 @@
#include "graphics/core/MeshData.hpp"
#include "util/Buffer.hpp"
/// @brief Chunk mesh vertex attributes
inline const vattr CHUNK_VATTRS[]{ {3}, {2}, {1}, {0} };
/// @brief Chunk mesh vertex size divided by sizeof(float)
inline constexpr int CHUNK_VERTEX_SIZE = 6;
class Mesh;
struct SortingMeshEntry {