Skip to main content

compression_support

Function compression_support 

Source
pub fn compression_support(format: PixelFormat, dtype: DType) -> bool
Expand description

Whether this platform can allocate (format, dtype) images in a vendor tile-compressed layout. true requires an Android build, an eligible format (RGBA8888 u8/i8 initially), and a positively identified GPU vendor; everywhere else the answer is false and Compression::Any requests fall back to linear.