bgfx_alloc_transient_buffers

Check for required space and allocate transient vertex and index buffers. If both space requirements are satisfied function returns true.

  1. bool bgfx_alloc_transient_buffers(bgfx_transient_vertex_buffer_t* _tvb, const(bgfx_vertex_layout_t)* _layout, uint _numVertices, bgfx_transient_index_buffer_t* _tib, uint _numIndices, bool _index32)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    bool
    bgfx_alloc_transient_buffers
  2. da_bgfx_alloc_transient_buffers bgfx_alloc_transient_buffers;

Parameters

_tvb bgfx_transient_vertex_buffer_t*

TransientVertexBuffer structure is filled and is valid for the duration of frame, and it can be reused for multiple draw calls.

_layout const(bgfx_vertex_layout_t)*

Vertex layout.

_numVertices uint

Number of vertices to allocate.

_tib bgfx_transient_index_buffer_t*

TransientIndexBuffer structure is filled and is valid for the duration of frame, and it can be reused for multiple draw calls.

_numIndices uint

Number of indices to allocate.

_index32 bool

Set to true if input indices will be 32-bit.

Meta