bgfx_create_texture

Create texture from memory buffer.

  1. bgfx_texture_handle_t bgfx_create_texture(const(bgfx_memory_t)* _mem, ulong _flags, byte _skip, bgfx_texture_info_t* _info)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    bgfx_create_texture
  2. da_bgfx_create_texture bgfx_create_texture;

Parameters

_mem const(bgfx_memory_t)*

DDS, KTX or PVR texture binary data.

_flags ulong

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.

_skip byte

Skip top level mips when parsing texture.

_info bgfx_texture_info_t*

When non-NULL is specified it returns parsed texture information.

Meta