Type Definition skia_safe::gpu::YUVABackendTextures

source ·
pub type YUVABackendTextures = Handle<GrYUVABackendTextures>;
Expand description

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

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