pub unsafe extern "C" fn bgfx_create_texture(
    _mem: *const bgfx_memory_t,
    _flags: u64,
    _skip: u8,
    _info: *mut bgfx_texture_info_t
) -> bgfx_texture_handle_t
Expand description

Create texture from memory buffer.

@param[in] _mem DDS, KTX or PVR texture binary data. @param[in] _flags Texture creation (see BGFX_TEXTURE_*.), and sampler (see BGFX_SAMPLER_*) flags. Default texture sampling mode is linear, and wrap mode is repeat.

  • BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP] - Mirror or clamp to edge wrap mode.
  • BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC] - Point or anisotropic sampling. @param[in] _skip Skip top level mips when parsing texture. @param[out] _info When non-NULL is specified it returns parsed texture information.

@returns Texture handle.