Function bgfx_sys::bgfx_alloc_transient_vertex_buffer
source · pub unsafe extern "C" fn bgfx_alloc_transient_vertex_buffer(
_tvb: *mut bgfx_transient_vertex_buffer_t,
_num: u32,
_layout: *const bgfx_vertex_layout_t
)
Expand description
Allocate transient vertex buffer.
@param[out] _tvb TransientVertexBuffer structure will be filled, and will be valid for the duration of frame, and can be reused for multiple draw calls. @param[in] _num Number of vertices to allocate. @param[in] _layout Vertex layout.