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: ImageSubresourceRangeTrait 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 more