Type Definition skia_safe::gpu::BackendFormat

source ·
pub type BackendFormat = Handle<GrBackendFormat>;

Implementations§

source§

impl BackendFormat

source

pub fn new() -> Self

👎Deprecated since 0.37.0: The creation of invalid BackendFormats isn’t supported anymore
source

pub fn new_gl(format: Enum, target: Enum) -> Self

source

pub fn backend(&self) -> BackendAPI

source

pub fn channel_mask(&self) -> u32

source

pub fn as_gl_format(&self) -> Format

source

pub fn as_gl_format_enum(&self) -> Enum

source

pub fn to_texture_2d(&self) -> Self

source

pub fn is_valid(&self) -> bool

👎Deprecated since 0.37.0: Invalid BackendFormats are not supported anymore

Trait Implementations§

source§

impl Debug for BackendFormat

source§

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

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

impl Send for BackendFormat

source§

impl Sync for BackendFormat