reorderForPostVertexCache
fun reorderForPostVertexCache(geometry: Geometry, cacheCapacity: Int? = definedExternally): Geometry(source)
Reorders a geometry's indices to achieve better performance from the GPU's post vertex-shader cache by using the Tipsify algorithm. If the geometry primitiveType is not TRIANGLES or the geometry does not have an indices, this function has no effect.
geometry = GeometryPipeline.reorderForPostVertexCache(geometry);Content copied to clipboard
Return
The modified geometry argument, with its indices reordered for the post-vertex-shader cache.
Parameters
geometry
The geometry to modify.
cacheCapacity
The number of vertices that can be held in the GPU's vertex cache. Default value - 24