Type Definition skia_safe::gpu::BackendFormat
source · pub type BackendFormat = Handle<GrBackendFormat>;
Implementations§
source§impl BackendFormat
impl BackendFormat
pub fn new() -> Self
👎Deprecated since 0.37.0: The creation of invalid BackendFormats isn’t supported anymore
pub fn new_gl(format: Enum, target: Enum) -> Self
pub fn backend(&self) -> BackendAPI
pub fn channel_mask(&self) -> u32
pub fn as_gl_format(&self) -> Format
pub fn as_gl_format_enum(&self) -> Enum
pub fn to_texture_2d(&self) -> Self
pub fn is_valid(&self) -> bool
👎Deprecated since 0.37.0: Invalid BackendFormats are not supported anymore