pub struct Texture { /* private fields */ }
Implementations§
Source§impl Texture
impl Texture
pub fn handle(&self) -> GlowTexture
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn depth(&self) -> u32
pub fn format(&self) -> GlowTextureFormat
pub fn upload( &mut self, width: u32, height: u32, depth: u32, format: GlowTextureFormat, data: Option<&[u8]>, )
Trait Implementations§
Source§impl From<Texture> for SurfaceAttachment
impl From<Texture> for SurfaceAttachment
Auto Trait Implementations§
impl Freeze for Texture
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