Struct wgpu_hal::TextureViewDescriptor
source · [−]pub struct TextureViewDescriptor<'a> {
pub label: Label<'a>,
pub format: TextureFormat,
pub dimension: TextureViewDimension,
pub usage: TextureUses,
pub range: ImageSubresourceRange,
}
Expand description
TextureView descriptor.
Valid usage:
. - format
has to be the same as TextureDescriptor::format
. - dimension
has to be compatible with TextureDescriptor::dimension
. - usage
has to be a subset of TextureDescriptor::usage
. - range
has to be a subset of parent texture
Fields
label: Label<'a>
format: TextureFormat
dimension: TextureViewDimension
usage: TextureUses
range: ImageSubresourceRange
Trait Implementations
sourceimpl<'a> Clone for TextureViewDescriptor<'a>
impl<'a> Clone for TextureViewDescriptor<'a>
sourcefn clone(&self) -> TextureViewDescriptor<'a>
fn clone(&self) -> TextureViewDescriptor<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for TextureViewDescriptor<'a>
impl<'a> Send for TextureViewDescriptor<'a>
impl<'a> Sync for TextureViewDescriptor<'a>
impl<'a> Unpin for TextureViewDescriptor<'a>
impl<'a> UnwindSafe for TextureViewDescriptor<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more