pub fn convert_pixels(
bytes: impl IntoIterator<Item = u8>,
from_format: AtlasImageFormat,
to_format: TextureFormat,
apply_linear_transfer: bool,
) -> Vec<u8> ⓘExpand description
Interpret/convert the AtlasImage pixel data into wgpu::TextureFormat pixels,
if possible.
This applies the linear transfer function if apply_linear_transfer is
true.