Type Definition skia_safe::gpu::BackendTexture

source ·
pub type BackendTexture = RefHandle<GrBackendTexture>;

Implementations§

source§

impl BackendTexture

source

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

source

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

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 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