Skip to content

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

Geometry

The geometry to modify.

cacheCapacity?

number

The number of vertices that can be held in the GPU's vertex cache.

返回

Geometry

The modified geometry argument, with its indices reordered for the post-vertex-shader cache.

示例

ts
geometry = Cesium.GeometryPipeline.reorderForPostVertexCache(geometry);

KBE3D @3.0.0 Copyright © 2024-present KBE3D