reorderForPreVertexCache

Reorders a geometry's attributes and indices to achieve better performance from the GPU's pre-vertex-shader cache.

geometry = GeometryPipeline.reorderForPreVertexCache(geometry);

Return

The modified geometry argument, with its attributes and indices reordered for the GPU's pre-vertex-shader cache.

Parameters

geometry

The geometry to modify.

See also