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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)