skia_safe::gpu::mtl

Type Alias TextureInfo

Source
pub type TextureInfo = Handle<GrMtlTextureInfo>;

Aliased Type§

struct TextureInfo(/* private fields */);

Implementations§

Source§

impl TextureInfo

Source

pub unsafe fn new(texture: Handle) -> Self

§Safety

Unsafe because the texture provided must either be null or pointing to a Metal texture by providing a raw pointer.

This function retains the texture and releases it as soon TextureInfo is dropped.

Source

pub fn texture(&self) -> Handle

Trait Implementations§

Source§

impl Debug for TextureInfo

Source§

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

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

impl Default for TextureInfo

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Send for TextureInfo

Source§

impl Sync for TextureInfo