bgfx_create_dynamic_index_buffer

Create empty dynamic index buffer.

  1. bgfx_dynamic_index_buffer_handle_t bgfx_create_dynamic_index_buffer(uint _num, ushort _flags)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    bgfx_create_dynamic_index_buffer
    (
    uint _num
    ,
    ushort _flags
    )
  2. da_bgfx_create_dynamic_index_buffer bgfx_create_dynamic_index_buffer;

Parameters

_num uint

Number of indices.

_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