bgfx_create_texture_cube

Create Cube texture.

  1. bgfx_texture_handle_t bgfx_create_texture_cube(ushort _size, bool _hasMips, ushort _numLayers, bgfx_texture_format_t _format, ulong _flags, const(bgfx_memory_t)* _mem)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    bgfx_create_texture_cube
  2. da_bgfx_create_texture_cube bgfx_create_texture_cube;

Parameters

_size ushort

Cube side size.

_hasMips bool

Indicates that texture contains full mip-map chain.

_numLayers ushort

Number of layers in texture array. Must be 1 if caps BGFX_CAPS_TEXTURE_2D_ARRAY flag is not set.

_format bgfx_texture_format_t

Texture format. See: TextureFormat::Enum.

_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.

_mem const(bgfx_memory_t)*

Texture data. If _mem is non-NULL, created texture will be immutable. If _mem is NULL content of the texture is uninitialized. When _numLayers is more than 1, expected memory layout is texture and all mips together for each array element.

Meta