pub fn calc_texture_size(
    info: &mut TextureInfo,
    width: u16,
    height: u16,
    depth: u16,
    cube_map: bool,
    has_mips: bool,
    num_layers: u16,
    format: TextureFormat
)
Expand description
  • info: Resulting texture info structure. See: TextureInfo.
  • width: Width.
  • height: Height.
  • depth: Depth dimension of volume texture.
  • cube_map: Indicates that texture contains cubemap.
  • has_mips: Indicates that texture contains full mip-map chain.
  • num_layers: Number of layers in texture array.
  • format: Texture format. See: TextureFormat.