Type Alias skia_safe::gpu::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