pub type BackendTexture = RefHandle<GrBackendTexture>;
Aliased Type§
struct BackendTexture(/* private fields */);
Implementations§
Source§impl BackendTexture
impl BackendTexture
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()
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()
pub unsafe fn new_vulkan( (width, height): (i32, i32), vk_info: &ImageInfo, ) -> Self
👎Deprecated since 0.67.0: use gpu::backend_textures::make_vk()
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()
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()
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()
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 vulkan_image_info(&self) -> Option<ImageInfo>
pub fn set_vulkan_image_layout(&mut self, layout: ImageLayout) -> &mut Self
pub fn metal_texture_info(&self) -> Option<TextureInfo>
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