pub type SupportedDataTypes = Handle<SkYUVAPixmapInfo_SupportedDataTypes>;

Implementations§

source§

impl SupportedDataTypes

source

pub fn from_context(context: &RecordingContext) -> Self

Init based on texture formats supported by the context.

source

pub fn all() -> Self

All legal combinations of PlaneConfig and DataType are supported.

source

pub fn supported(&self, pc: PlaneConfig, dt: DataType) -> bool

Checks whether there is a supported combination of color types for planes structured as indicated by PlaneConfig with channel data types as indicated by DataType.

source

pub fn enable_data_type(&mut self, dt: DataType, num_channels: usize)

Update to add support for pixmaps with num_channels channels where each channel is represented as DataType.

Trait Implementations§

source§

impl Debug for SupportedDataTypes

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SupportedDataTypes

source§

fn default() -> Self

Defaults to nothing supported.

source§

impl Send for SupportedDataTypes

source§

impl Sync for SupportedDataTypes