Skip to main content

decode_into

Function decode_into 

Source
pub fn decode_into(format: HeightmapFormat, rgb: &[u8], out: &mut [f32])
Expand description

Decode RGB bytes into a caller-owned f32 buffer.

rgb.len() must equal out.len() * 3. No allocation occurs.