forked from Dynamitos/Seele
Starting to refactor into mesh shading
This commit is contained in:
1 parent
fcc4fc12d4
commit
1b6e1a8453
42 files changed
+488
-1577
No files matched your search
@@ -0,0 +1,21 @@
|
||||
struct MeshletDescription
|
||||
{
|
||||
uint32_t vertexCount;
|
||||
uint32_t primitiveCount;
|
||||
uint32_t vertexOffset;
|
||||
uint32_t primitiveOffset;
|
||||
};
|
||||
|
||||
struct MeshletData
|
||||
{
|
||||
StructuredBuffer<MeshletDescription> meshletInfos;
|
||||
StructuredBuffer<uint8_t> primitiveIndices;
|
||||
|
||||
StructuredBuffer<uint32_t> vertexIndices;
|
||||
};
|
||||
|
||||
static const uint MAX_VERTICES = 64;
|
||||
static const uint MAX_PRIMITIVES = 126;
|
||||
static const uint GROUP_SIZE = 32;
|
||||
|
||||
ParameterBlock<MeshletData> meshlets;
|
||||
Reference in new issue
Block a user