bgfx_alloc_transient_vertex_buffer

Allocate transient vertex buffer.

  1. void bgfx_alloc_transient_vertex_buffer(bgfx_transient_vertex_buffer_t* _tvb, uint _num, const(bgfx_vertex_layout_t)* _layout)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    void
    bgfx_alloc_transient_vertex_buffer
  2. da_bgfx_alloc_transient_vertex_buffer bgfx_alloc_transient_vertex_buffer;

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.

_num uint

Number of vertices to allocate.

_layout const(bgfx_vertex_layout_t)*

Vertex layout.

Meta