Appearance
KBE3D / KBCore / Cesium / GeometryPipeline / reorderForPostVertexCache
函数: reorderForPostVertexCache()
reorderForPostVertexCache(
geometry:Geometry,cacheCapacity?:number):Geometry
Reorders a geometry's <code>indices</code> to achieve better performance from the GPU's post vertex-shader cache by using the Tipsify algorithm. If the geometry <code>primitiveType</code> is not <code>TRIANGLES</code> or the geometry does not have an <code>indices</code>, this function has no effect.
参数
geometry
The geometry to modify.
cacheCapacity?
number
The number of vertices that can be held in the GPU's vertex cache.
返回
The modified geometry argument, with its indices reordered for the post-vertex-shader cache.
示例
ts
geometry = Cesium.GeometryPipeline.reorderForPostVertexCache(geometry);