pub struct Texture<'a> { /* private fields */ }Implementations§
Source§impl<'a> Texture<'a>
impl<'a> Texture<'a>
pub fn index(&self) -> &str
pub fn name(&self) -> Option<&'a str>
pub fn source(&self) -> &Image<'a>
pub fn sampler(&self) -> &Sampler<'a>
pub fn format(&self) -> TextureFormat
pub fn internal_format(&self) -> TextureFormat
pub fn target(&self) -> TextureTarget
pub fn texture_type(&self) -> TextureType
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Texture<'a>
impl<'a> RefUnwindSafe for Texture<'a>
impl<'a> Send for Texture<'a>
impl<'a> Sync for Texture<'a>
impl<'a> Unpin for Texture<'a>
impl<'a> UnwindSafe for Texture<'a>
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