Function bgfx_sys::bgfx_calc_texture_size
source · pub unsafe extern "C" fn bgfx_calc_texture_size(
_info: *mut bgfx_texture_info_t,
_width: u16,
_height: u16,
_depth: u16,
_cubeMap: bool,
_hasMips: bool,
_numLayers: u16,
_format: bgfx_texture_format_t
)
Expand description
Calculate amount of memory required for texture.
@param[out] _info Resulting texture info structure. See: TextureInfo
.
@param[in] _width Width.
@param[in] _height Height.
@param[in] _depth Depth dimension of volume texture.
@param[in] _cubeMap Indicates that texture contains cubemap.
@param[in] _hasMips Indicates that texture contains full mip-map chain.
@param[in] _numLayers Number of layers in texture array.
@param[in] _format Texture format. See: TextureFormat::Enum
.