bgfx_topology_sort_tri_list

Sort indices.

  1. void bgfx_topology_sort_tri_list(bgfx_topology_sort_t _sort, void* _dst, uint _dstSize, float[3] _dir, float[3] _pos, const(void)* _vertices, uint _stride, const(void)* _indices, uint _numIndices, bool _index32)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    void
    bgfx_topology_sort_tri_list
    (,
    void* _dst
    ,,
    const float[3] _dir
    ,
    const float[3] _pos
    ,
    const(void)* _vertices
    ,
    uint _stride
    ,
    const(void)* _indices
    ,,)
  2. da_bgfx_topology_sort_tri_list bgfx_topology_sort_tri_list;

Parameters

_sort bgfx_topology_sort_t

Sort order, see TopologySort::Enum.

_dst void*

Destination index buffer.

_dstSize uint

Destination index buffer in bytes. It must be large enough to contain output indices. If destination size is insufficient index buffer will be truncated.

_dir float[3]

Direction (vector must be normalized).

_pos float[3]

Position.

_vertices const(void)*

Pointer to first vertex represented as float x, y, z. Must contain at least number of vertices referencende by index buffer.

_stride uint

Vertex stride.

_indices const(void)*

Source indices.

_numIndices uint

Number of input indices.

_index32 bool

Set to true if input indices are 32-bit.

Meta