skia_safe::gpu::ganesh

Type Alias YUVABackendTextures

Source
pub type YUVABackendTextures = Handle<GrYUVABackendTextures>;
Expand description

A set of BackendTextures that hold the planar data for an image described a YUVAInfo.

Aliased Type§

struct YUVABackendTextures(/* private fields */);

Implementations§

Source§

impl YUVABackendTextures

Source

pub fn new( info: &YUVAInfo, textures: &[BackendTexture], texture_origin: SurfaceOrigin, ) -> Option<Self>

Source

pub fn textures(&self) -> Vec<BackendTexture>

Source

pub fn texture(&self, i: usize) -> Option<BackendTexture>

Source

pub fn yuva_info(&self) -> &YUVAInfo

Source

pub fn num_planes(&self) -> usize

Source

pub fn texture_origin(&self) -> SurfaceOrigin

Trait Implementations§

Source§

impl Debug for YUVABackendTextures

Source§

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

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

impl Send for YUVABackendTextures

Source§

impl Sync for YUVABackendTextures