bgfx_create_dynamic_vertex_buffer_mem

Create dynamic vertex buffer and initialize it.

  1. bgfx_dynamic_vertex_buffer_handle_t bgfx_create_dynamic_vertex_buffer_mem(const(bgfx_memory_t)* _mem, const(bgfx_vertex_layout_t)* _layout, ushort _flags)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    bgfx_create_dynamic_vertex_buffer_mem
  2. da_bgfx_create_dynamic_vertex_buffer_mem bgfx_create_dynamic_vertex_buffer_mem;

Parameters

_mem const(bgfx_memory_t)*

Vertex buffer data.

_layout const(bgfx_vertex_layout_t)*

Vertex layout.

_flags ushort

Buffer creation flags. - BGFX_BUFFER_NONE - No flags. - BGFX_BUFFER_COMPUTE_READ - Buffer will be read from by compute shader. - BGFX_BUFFER_COMPUTE_WRITE - Buffer will be written into by compute shader. When buffer is created with BGFX_BUFFER_COMPUTE_WRITE flag it cannot be updated from CPU. - BGFX_BUFFER_COMPUTE_READ_WRITE - Buffer will be used for read/write by compute shader. - BGFX_BUFFER_ALLOW_RESIZE - Buffer will resize on buffer update if a different amount of data is passed. If this flag is not specified, and more data is passed on update, the buffer will be trimmed to fit the existing buffer size. This flag has effect only on dynamic buffers. - BGFX_BUFFER_INDEX32 - Buffer is using 32-bit indices. This flag has effect only on index buffers.

Meta