Skip to content

KBE3D / KBCore / Cesium / GeometryPipeline / reorderForPreVertexCache

函数: reorderForPreVertexCache()

reorderForPreVertexCache(geometry: Geometry): Geometry

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

参数

geometry

Geometry

The geometry to modify.

返回

Geometry

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

示例

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

KBE3D @3.0.0 Copyright © 2024-present KBE3D