Fixing the maximum 2048 meshlet limit

This commit is contained in:
Dynamitos
2025-03-09 22:42:05 +01:00
parent 913b8391f8
commit 6f0e2fe7e7
16 changed files with 151 additions and 173 deletions
+3 -4
View File
@@ -20,9 +20,8 @@ struct MeshData
uint32_t numIndices;
};
static const uint32_t MAX_VERTICES = 64;
static const uint32_t MAX_PRIMITIVES = 128;
static const uint32_t MAX_MESHLETS_PER_INSTANCE = 2048;
static const uint32_t MAX_VERTICES = 256;
static const uint32_t MAX_PRIMITIVES = 256;
struct InstanceData
{
@@ -77,7 +76,7 @@ uint decodePrimitive(uint32_t encoded)
struct MeshPayload
{
uint culledMeshlets[MAX_MESHLETS_PER_INSTANCE];
uint culledMeshlets[2048];
uint instanceId;
uint meshletOffset;
uint cullingOffset;