Type Alias BackendTexture
pub type BackendTexture = RefHandle<GrBackendTexture>;
Aliased Type§
struct BackendTexture(/* private fields */);
Implementations
§impl RefHandle<GrBackendTexture>
impl RefHandle<GrBackendTexture>
pub unsafe fn new_gl( _: (i32, i32), mipmapped: skgpu_Mipmapped, gl_info: TextureInfo, ) -> RefHandle<GrBackendTexture>
👎Deprecated since 0.67.0: use gpu::backend_textures::make_gl()
pub unsafe fn new_gl_with_label( _: (i32, i32), mipmapped: skgpu_Mipmapped, gl_info: TextureInfo, label: impl AsRef<str>, ) -> RefHandle<GrBackendTexture>
👎Deprecated since 0.67.0: use gpu::backend_textures::make_gl()
pub fn dimensions(&self) -> ISize
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn label(&self) -> &str
pub fn mipmapped(&self) -> skgpu_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) -> GrBackendApi
pub fn gl_texture_info(&self) -> Option<TextureInfo>
pub fn gl_texture_parameters_modified(&mut self)
pub fn backend_format(&self) -> Handle<GrBackendFormat>
pub fn set_mutable_state(&mut self, state: &RCHandle<skgpu_MutableTextureState>)
pub fn is_protected(&self) -> bool
pub fn is_valid(&self) -> bool
👎Deprecated since 0.37.0: Invalid BackendTextures aren’t supported