Type Definition skia_safe::gpu::BackendTexture
source · pub type BackendTexture = RefHandle<GrBackendTexture>;
Implementations§
source§impl BackendTexture
impl BackendTexture
pub unsafe fn new_gl( (width, height): (i32, i32), mipmapped: Mipmapped, gl_info: TextureInfo ) -> Self
pub unsafe fn new_gl_with_label( (width, height): (i32, i32), mipmapped: Mipmapped, gl_info: TextureInfo, label: impl AsRef<str> ) -> Self
pub fn dimensions(&self) -> ISize
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn label(&self) -> &str
pub fn mipmapped(&self) -> Mipmapped
pub fn has_mip_maps(&self) -> bool
👎Deprecated since 0.35.0: Use has_mipmaps()
pub fn has_mipmaps(&self) -> bool
pub fn backend(&self) -> BackendAPI
pub fn gl_texture_info(&self) -> Option<TextureInfo>
pub fn gl_texture_parameters_modified(&mut self)
pub fn backend_format(&self) -> BackendFormat
pub fn set_mutable_state(&mut self, state: &MutableTextureState)
pub fn is_protected(&self) -> bool
pub fn is_valid(&self) -> bool
👎Deprecated since 0.37.0: Invalid BackendTextures aren’t supported