skia_safe::gpu::ganesh

Type Alias BackendFormat

Source
pub type BackendFormat = Handle<GrBackendFormat>;

Aliased Type§

struct BackendFormat(/* private fields */);

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 new_vulkan( format: Format, will_use_drm_format_modifiers: impl Into<Option<bool>>, ) -> Self

👎Deprecated since 0.67.0: use gpu::backend_formats::make_vk()
Source

pub fn new_vulkan_ycbcr( conversion_info: &YcbcrConversionInfo, will_use_drm_format_modifiers: impl Into<Option<bool>>, ) -> Self

👎Deprecated since 0.67.0: use gpu::backend_formats::make_vk_ycbcr()
Source

pub fn new_metal(format: PixelFormat) -> Self

👎Deprecated since 0.74.0: use gpu::backend_formats::make_mtl()
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 as_vk_format(&self) -> Option<Format>

Source

pub fn as_mtl_format(&self) -> Option<PixelFormat>

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