MetalCapturedTextures

Type Alias MetalCapturedTextures 

Source
pub type MetalCapturedTextures = CapturedTextures<MetalTexture>;
Expand description

Result of creating Metal textures from an IOSurface

Aliased Type§

pub struct MetalCapturedTextures {
    pub plane0: MetalTexture,
    pub plane1: Option<MetalTexture>,
    pub pixel_format: FourCharCode,
    pub width: usize,
    pub height: usize,
}

Fields§

§plane0: MetalTexture

Primary texture (BGRA/L10R for single-plane, Y plane for YCbCr)

§plane1: Option<MetalTexture>

Secondary texture (CbCr plane for YCbCr formats)

§pixel_format: FourCharCode

The pixel format of the source surface

§width: usize

Width in pixels

§height: usize

Height in pixels