bgfx_create_index_buffer

Create static index buffer.

  1. bgfx_index_buffer_handle_t bgfx_create_index_buffer(const(bgfx_memory_t)* _mem, ushort _flags)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    bgfx_create_index_buffer
    (,
    ushort _flags
    )
  2. da_bgfx_create_index_buffer bgfx_create_index_buffer;

Parameters

_mem const(bgfx_memory_t)*

Index buffer data.

_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