pub type BackendFormat = Handle<GrBackendFormat>;
Aliased Type§
struct BackendFormat(/* private fields */);
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 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()
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()
pub fn new_metal(format: PixelFormat) -> Self
👎Deprecated since 0.74.0: use gpu::backend_formats::make_mtl()
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 as_vk_format(&self) -> Option<Format>
pub fn as_mtl_format(&self) -> Option<PixelFormat>
pub fn to_texture_2d(&self) -> Self
pub fn is_valid(&self) -> bool
👎Deprecated since 0.37.0: Invalid BackendFormats are not supported anymore