forked from Dynamitos/Seele
Lot more Metal changes
This commit is contained in:
1 parent
e3b06dfb22
commit
6eb114e892
40 files changed
+1634
-1737
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import Common;
|
||||
import Scene;
|
||||
import VertexData;
|
||||
import StaticMeshVertexData;
|
||||
import MaterialParameter;
|
||||
|
||||
struct PrimitiveAttributes
|
||||
@@ -36,10 +37,12 @@ void meshMain(
|
||||
uint local_idx0 = pScene.primitiveIndices[m.primitiveOffset + (p * 3) + 0];
|
||||
uint local_idx1 = pScene.primitiveIndices[m.primitiveOffset + (p * 3) + 1];
|
||||
uint local_idx2 = pScene.primitiveIndices[m.primitiveOffset + (p * 3) + 2];
|
||||
indices[p] = uint3(local_idx0, local_idx1, local_idx2);
|
||||
indices[p] = uint3(local_idx0, local_idx1, local_idx2);
|
||||
PrimitiveAttributes primAttr;
|
||||
#ifdef VISIBILITY
|
||||
prim[p].prim = encodePrimitive(meshletId);
|
||||
primAttr.prim = encodePrimitive(meshletId);
|
||||
#endif
|
||||
prim[p] = primAttr;
|
||||
}
|
||||
}
|
||||
for(uint i = threadID; i < MAX_VERTICES; i += MESH_GROUP_SIZE)
|
||||
|
||||
Reference in new issue
Block a user