MeshResult GenerateMesh(HAL* hal, Mesh* mesh, const VertexFormat* sourceFormat, const VertexFormat* singleFormat, const VertexFormat* batchFormat, bool waitForCache);
GenerateMesh generates mesh data, placing it either in StagingBuffer (for smaller meshes) or directly into cache (large mesh). If mesh is known to fit in the staging buffer, sourceFormat and singleFormat may be null. When regenerating large mesh that is tagged so, batchFormat may be null.
Parameters |
Description |
HAL* hal |
The render HAL. |
Mesh* mesh |
Pointer to Mesh for generating mesh data. |
const VertexFormat* sourceFormat |
The source format of the meshes. |
const VertexFormat* singleFormat |
Destination format for the generated single meshes. |
const VertexFormat* batchFormat |
Destination format for the generated batched meshes. |
bool waitForCache |
_nt_ |