Crate ispc_downsampler
source ·Structs
- Describes a source image which can be used for
downsample()The pixel data is stored as a slice to avoid unnecessarily cloning it.
Enums
Functions
- Runs the ISPC kernel on the source image, sampling it down to the
target_widthandtarget_height. Returns the downsampled pixel data as aVec<u8>. - Scales the alpha to the downscaled texture to preserve the overall alpha coverage.