pub struct Texture {
pub inner: TextureInner,
pub mip_level_count: u32,
pub array_layer_count: u32,
pub format: TextureFormat,
pub format_desc: TextureFormatDesc,
pub copy_size: CopyExtent,
pub drop_guard: Option<DropGuard>,
}Available on
gles only.Fields§
§inner: TextureInner§mip_level_count: u32§array_layer_count: u32§format: TextureFormat§format_desc: TextureFormatDesc§copy_size: CopyExtent§drop_guard: Option<DropGuard>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
Source§impl DynSurfaceTexture for Texture
impl DynSurfaceTexture for Texture
Source§fn image_id(&self) -> Option<u64>
fn image_id(&self) -> Option<u64>
A GL surface draws every frame into its one texture or renderbuffer, made at configure, and copies it to the window at present.
Source§fn awaits_acquire(&self) -> bool
fn awaits_acquire(&self) -> bool
Whether no submission has waited for this texture’s acquisition yet,
on a backend whose presentation waits for one.
impl DynTexture for Texture
Auto Trait Implementations§
impl !RefUnwindSafe for Texture
impl !UnwindSafe for Texture
impl Freeze for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnsafeUnpin 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