bgfx_topology_convert

Convert index buffer for use with different primitive topologies.

  1. uint bgfx_topology_convert(bgfx_topology_convert_t _conversion, void* _dst, uint _dstSize, const(void)* _indices, uint _numIndices, bool _index32)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    uint
    bgfx_topology_convert
  2. da_bgfx_topology_convert bgfx_topology_convert;

Parameters

_conversion bgfx_topology_convert_t

Conversion type, see TopologyConvert::Enum.

_dst void*

Destination index buffer. If this argument is NULL function will return number of indices after conversion.

_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.

_indices const(void)*

Source indices.

_numIndices uint

Number of input indices.

_index32 bool

Set to true if input indices are 32-bit.

Meta