pub struct Texture { /* private fields */ }
Expand description
Handle to a texture on the GPU.
Created by calling Device::create_texture
Implementations§
Source§impl Texture
impl Texture
Sourcepub fn create_view(&self, desc: &TextureViewDescriptor<'_>) -> TextureView
pub fn create_view(&self, desc: &TextureViewDescriptor<'_>) -> TextureView
Creates a view of this texture.
Sourcepub fn create_default_view(&self) -> TextureView
pub fn create_default_view(&self) -> TextureView
Creates the default view of this whole texture. This is likely what you want.
Trait Implementations§
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