bgfx_alloc_instance_data_buffer

Allocate instance data buffer.

  1. void bgfx_alloc_instance_data_buffer(bgfx_instance_data_buffer_t* _idb, uint _num, ushort _stride)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    void
    bgfx_alloc_instance_data_buffer
  2. da_bgfx_alloc_instance_data_buffer bgfx_alloc_instance_data_buffer;

Parameters

_idb bgfx_instance_data_buffer_t*

InstanceDataBuffer structure is filled and is valid for duration of frame, and it can be reused for multiple draw calls.

_num uint

Number of instances.

_stride ushort

Instance stride. Must be multiple of 16.

Meta