bgfx_vertex_pack

Pack vertex attribute into vertex stream format.

  1. void bgfx_vertex_pack(float[4] _input, bool _inputNormalized, bgfx_attrib_t _attr, const(bgfx_vertex_layout_t)* _layout, void* _data, uint _index)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    void
    bgfx_vertex_pack
  2. da_bgfx_vertex_pack bgfx_vertex_pack;

Parameters

_input float[4]

Value to be packed into vertex stream.

_inputNormalized bool

true if input value is already normalized.

_attr bgfx_attrib_t

Attribute to pack.

_layout const(bgfx_vertex_layout_t)*

Vertex stream layout.

_data void*

Destination vertex stream where data will be packed.

_index uint

Vertex index that will be modified.

Meta