bgfx_calc_texture_size

Calculate amount of memory required for texture.

  1. void bgfx_calc_texture_size(bgfx_texture_info_t* _info, ushort _width, ushort _height, ushort _depth, bool _cubeMap, bool _hasMips, ushort _numLayers, bgfx_texture_format_t _format)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    void
    bgfx_calc_texture_size
  2. da_bgfx_calc_texture_size bgfx_calc_texture_size;

Parameters

_info bgfx_texture_info_t*

Resulting texture info structure. See: TextureInfo.

_width ushort

Width.

_height ushort

Height.

_depth ushort

Depth dimension of volume texture.

_cubeMap bool

Indicates that texture contains cubemap.

_hasMips bool

Indicates that texture contains full mip-map chain.

_numLayers ushort

Number of layers in texture array.

_format bgfx_texture_format_t

Texture format. See: TextureFormat::Enum.

Meta