Fixing the maximum 2048 meshlet limit
This commit is contained in:
1 parent
913b8391f8
commit
6f0e2fe7e7
16 files changed
+151
-173
No files matched your search
@@ -22,7 +22,8 @@ BottomLevelAS::BottomLevelAS(PGraphics graphics, const Gfx::BottomLevelASCreateI
|
||||
1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f,
|
||||
};
|
||||
VertexData* vertexData = createInfo.mesh->vertexData;
|
||||
MeshData meshData = vertexData->getMeshData(createInfo.mesh->id);
|
||||
//todo: indices might be split as well
|
||||
MeshData meshData = vertexData->getMeshData(createInfo.mesh->id)[0];
|
||||
vertexOffset = vertexData->getMeshOffset(createInfo.mesh->id) * sizeof(Vector);
|
||||
vertexCount = vertexData->getMeshVertexCount(createInfo.mesh->id);
|
||||
indexOffset = meshData.firstIndex * sizeof(uint32);
|
||||
|
||||
Reference in new issue
Block a user