pub struct Texture {
pub inner: TextureInner,
pub drop_guard: Option<DropGuard>,
pub mip_level_count: u32,
pub array_layer_count: u32,
pub format: TextureFormat,
pub format_desc: TextureFormatDesc,
pub copy_size: CopyExtent,
}
Available on
gles
only.Fields§
§inner: TextureInner
§drop_guard: Option<DropGuard>
§mip_level_count: u32
§array_layer_count: u32
§format: TextureFormat
§format_desc: TextureFormatDesc
§copy_size: CopyExtent
Implementations§
source§impl Texture
impl Texture
pub fn default_framebuffer(format: TextureFormat) -> Self
Trait Implementations§
source§impl Borrow<dyn DynTexture> for Texture
impl Borrow<dyn DynTexture> for Texture
source§fn borrow(&self) -> &dyn DynTexture
fn borrow(&self) -> &dyn DynTexture
Immutably borrows from an owned value. Read more
source§impl DynResource for Texture
impl DynResource for Texture
impl DynSurfaceTexture for Texture
impl DynTexture for Texture
Auto Trait Implementations§
impl !RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl !UnwindSafe for Texture
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more