skia_safe::gpu::ganesh::gl::interface

Type Alias Interface

Source
pub type Interface = RCHandle<GrGLInterface>;

Aliased Type§

struct Interface(/* private fields */);

Implementations§

Source§

impl Interface

Source

pub fn new_native() -> Option<Self>

Source

pub fn new_load_with<F>(load_fn: F) -> Option<Self>
where F: FnMut(&str) -> *const c_void,

Source

pub fn new_load_with_cstr<F>(load_fn: F) -> Option<Self>
where F: FnMut(&CStr) -> *const c_void,

Source

pub fn validate(&self) -> bool

Source

pub fn extensions(&self) -> &Extensions

Source

pub fn extensions_mut(&mut self) -> &mut Extensions

Source

pub fn has_extension(&self, extension: impl AsRef<str>) -> bool

Trait Implementations§

Source§

impl Debug for Interface

Source§

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

Formats the value using the given formatter. Read more