pub struct TextureView(/* private fields */);Expand description
a range of a texture’s mips and layers as shaders and render passes see it
Implementations§
Source§impl TextureView
impl TextureView
pub fn format(&self) -> Format
Sourcepub fn usage(&self) -> TextureUsage
pub fn usage(&self) -> TextureUsage
what its texture may be used for (a swapchain frame’s: a colour target)
Sourcepub fn same(&self, other: &TextureView) -> bool
pub fn same(&self, other: &TextureView) -> bool
the same view (it or a clone of it), not merely one of the same range: a cache’s key
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TextureView
impl !Send for TextureView
impl !Sync for TextureView
impl !UnwindSafe for TextureView
impl Forget for TextureView
impl Freeze for TextureView
impl Move for TextureView
impl Unpin for TextureView
impl UnsafeUnpin for TextureView
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