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§
Source§impl<'a> Clone for TextureViewDescriptor<'a>
impl<'a> Clone for TextureViewDescriptor<'a>
Source§fn clone(&self) -> TextureViewDescriptor<'a>
fn clone(&self) -> TextureViewDescriptor<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for TextureViewDescriptor<'a>
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§
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