Contents

cullMeshInstances(_:indices:configuration:)

Culls mesh instances against a frustum and returns the surviving indices.

Declaration

static func cullMeshInstances(_ meshInstances: LowLevelMeshInstanceArray, indices: Span<Int>, configuration: LowLevelRenderer.CullConfiguration) -> [Int]

Parameters

  • meshInstances:

    The mesh instance array to test.

  • indices:

    The candidate indices to test.

  • configuration:

    The cull configuration supplying the frustum planes.

Return Value

The indices of instances that are not culled, in input order.

Discussion

A convenience overload that allocates and returns the surviving indices as an array.

See Also

Culling and sorting instances