Lot more Metal changes
This commit is contained in:
@@ -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