Function bgfx_sys::bgfx_alloc_transient_buffers [−][src]
pub unsafe extern "C" fn bgfx_alloc_transient_buffers(
_tvb: *mut bgfx_transient_vertex_buffer_t,
_layout: *const bgfx_vertex_layout_t,
_numVertices: u32,
_tib: *mut bgfx_transient_index_buffer_t,
_numIndices: u32,
_index32: bool
) -> bool
Expand description
Check for required space and allocate transient vertex and index buffers. If both space requirements are satisfied function returns true.
@param[out] _tvb TransientVertexBuffer structure is filled and is valid
for the duration of frame, and it can be reused for multiple draw
calls.
@param[in] _layout Vertex layout.
@param[in] _numVertices Number of vertices to allocate.
@param[out] _tib TransientIndexBuffer structure is filled and is valid
for the duration of frame, and it can be reused for multiple draw
calls.
@param[in] _numIndices Number of indices to allocate.
@param[in] _index32 Set to true
if input indices will be 32-bit.