Skip to main content

image_to_texture2d

Function image_to_texture2d 

Source
pub fn image_to_texture2d(
    source: &Source<'_>,
    options: Options<'_>,
    meter: &Arc<Meter>,
) -> Result<Encoded, WriteError>
Expand description

image_to_texture2d, including repeated BICUBIC mip resizes when requested. Zero sides write empty data for every known target (PARITY 19.1). Tier U gates precede the encoder availability check; no encoder is needed to represent an empty linear texture.