Skip to main content

texture_bytes

Function texture_bytes 

Source
pub fn texture_bytes(
    format: TextureFormat,
    size: (u32, u32),
    layers: u32,
    mips: u32,
    samples: u32,
) -> u64
Expand description

Estimated size in bytes of a 2D texture with all its mips, layers and samples.