Function downsample_mip_level
Source pub fn downsample_mip_level(
src: &TextureMipLevel3D,
color_space: TextureColorSpace,
) -> TextureMipLevel3D
Expand description
Downsamples a single mip level by 2x respecting color_space (linear sRGB box filter or re-normalized normals).
§Arguments
&TextureMipLevel3D - Source higher-resolution mip level.
TextureColorSpace - Color-space filtering policy.
§Returns
TextureMipLevel3D - Half-resolution filtered child mip level.