pub unsafe extern "C" fn bgfx_vertex_layout_add(
    _this: *mut bgfx_vertex_layout_t,
    _attrib: bgfx_attrib_t,
    _num: u8,
    _type: bgfx_attrib_type_t,
    _normalized: bool,
    _asInt: bool
) -> *mut bgfx_vertex_layout_t
Expand description

Add attribute to VertexLayout. @remarks Must be called between begin/end.

@param[in] _attrib Attribute semantics. See: bgfx::Attrib @param[in] _num Number of elements 1, 2, 3 or 4. @param[in] _type Element type. @param[in] _normalized When using fixed point AttribType (f.e. Uint8) value will be normalized for vertex shader usage. When normalized is set to true, AttribType::Uint8 value in range 0-255 will be in range 0.0-1.0 in vertex shader. @param[in] _asInt Packaging rule for vertexPack, vertexUnpack, and vertexConvert for AttribType::Uint8 and AttribType::Int16. Unpacking code must be implemented inside vertex shader.

@returns Returns itself.