Function bgfx_sys::bgfx_topology_sort_tri_list
source · [−]pub unsafe extern "C" fn bgfx_topology_sort_tri_list(
_sort: bgfx_topology_sort_t,
_dst: *mut c_void,
_dstSize: u32,
_dir: *const f32,
_pos: *const f32,
_vertices: *const c_void,
_stride: u32,
_indices: *const c_void,
_numIndices: u32,
_index32: bool
)
Expand description
Sort indices.
@param[in] _sort Sort order, see TopologySort::Enum
.
@param[out] _dst Destination index buffer.
@param[in] _dstSize Destination index buffer in bytes. It must be
large enough to contain output indices. If destination size is
insufficient index buffer will be truncated.
@param[in] _dir Direction (vector must be normalized).
@param[in] _pos Position.
@param[in] _vertices Pointer to first vertex represented as
float x, y, z. Must contain at least number of vertices
referencende by index buffer.
@param[in] _stride Vertex stride.
@param[in] _indices Source indices.
@param[in] _numIndices Number of input indices.
@param[in] _index32 Set to true
if input indices are 32-bit.