skia_safe::gpu::ganesh

Type Alias BackendTexture

Source
pub type BackendTexture = RefHandle<GrBackendTexture>;

Aliased Type§

struct BackendTexture(/* private fields */);

Implementations§

Source§

impl BackendTexture

Source

pub unsafe fn new_gl( (width, height): (i32, i32), mipmapped: Mipmapped, gl_info: TextureInfo, ) -> Self

👎Deprecated since 0.67.0: use gpu::backend_textures::make_gl()
Source

pub unsafe fn new_gl_with_label( (width, height): (i32, i32), mipmapped: Mipmapped, gl_info: TextureInfo, label: impl AsRef<str>, ) -> Self

👎Deprecated since 0.67.0: use gpu::backend_textures::make_gl()
Source

pub unsafe fn new_vulkan( (width, height): (i32, i32), vk_info: &ImageInfo, ) -> Self

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

pub unsafe fn new_vulkan_with_label( (width, height): (i32, i32), vk_info: &ImageInfo, label: impl AsRef<str>, ) -> Self

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

pub unsafe fn new_metal( (width, height): (i32, i32), mipmapped: Mipmapped, mtl_info: &TextureInfo, ) -> Self

👎Deprecated since 0.74.0: use gpu::backend_textures::make_mtl()
Source

pub unsafe fn new_metal_with_label( (width, height): (i32, i32), mipmapped: Mipmapped, mtl_info: &TextureInfo, label: impl AsRef<str>, ) -> Self

👎Deprecated since 0.74.0: use gpu::backend_textures::make_mtl()
Source

pub fn dimensions(&self) -> ISize

Source

pub fn width(&self) -> i32

Source

pub fn height(&self) -> i32

Source

pub fn label(&self) -> &str

Source

pub fn mipmapped(&self) -> Mipmapped

Source

pub fn has_mip_maps(&self) -> bool

👎Deprecated since 0.35.0: Use has_mipmaps()
Source

pub fn has_mipmaps(&self) -> bool

Source

pub fn backend(&self) -> BackendAPI

Source

pub fn gl_texture_info(&self) -> Option<TextureInfo>

Source

pub fn gl_texture_parameters_modified(&mut self)

Source

pub fn vulkan_image_info(&self) -> Option<ImageInfo>

Source

pub fn set_vulkan_image_layout(&mut self, layout: ImageLayout) -> &mut Self

Source

pub fn metal_texture_info(&self) -> Option<TextureInfo>

Source

pub fn backend_format(&self) -> BackendFormat

Source

pub fn set_mutable_state(&mut self, state: &MutableTextureState)

Source

pub fn is_protected(&self) -> bool

Source

pub fn is_valid(&self) -> bool

👎Deprecated since 0.37.0: Invalid BackendTextures aren’t supported
Source

pub fn is_same_texture(&mut self, texture: &BackendTexture) -> bool

Trait Implementations§

Source§

impl Clone for BackendTexture

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BackendTexture

Source§

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

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

impl Send for BackendTexture

Source§

impl Sync for BackendTexture