Function bgfx_sys::bgfx_topology_convert
source · pub unsafe extern "C" fn bgfx_topology_convert(
_conversion: bgfx_topology_convert_t,
_dst: *mut c_void,
_dstSize: u32,
_indices: *const c_void,
_numIndices: u32,
_index32: bool
) -> u32
Expand description
Convert index buffer for use with different primitive topologies.
@param[in] _conversion Conversion type, see TopologyConvert::Enum
.
@param[out] _dst Destination index buffer. If this argument is NULL
function will return number of indices after conversion.
@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] _indices Source indices.
@param[in] _numIndices Number of input indices.
@param[in] _index32 Set to true
if input indices are 32-bit.
@returns Number of output indices after conversion.