pub struct TextureViewDesc {
pub label: String,
pub format: Option<TextureFormat>,
pub dimension: Option<TextureViewDimension>,
pub aspect: TextureAspect,
pub base_mip_level: u32,
pub mip_level_count: Option<u32>,
pub base_array_layer: u32,
pub array_layer_count: Option<u32>,
}Expand description
Descriptor for a logical texture view.
Optional counts extend from their base through the remaining texture subresources. Optional format and dimension use wgpu-compatible defaults.
Fields§
§label: StringDiagnostic view label.
format: Option<TextureFormat>View format, or the underlying texture format when omitted.
dimension: Option<TextureViewDimension>View dimension, or the dimension inferred from the texture when omitted.
aspect: TextureAspectSelected texture aspect.
base_mip_level: u32First selected mip level.
mip_level_count: Option<u32>Selected mip count, or all remaining mips.
base_array_layer: u32First selected array layer.
array_layer_count: Option<u32>Selected array-layer count, or all remaining layers.
Trait Implementations§
Source§impl Clone for TextureViewDesc
impl Clone for TextureViewDesc
Source§fn clone(&self) -> TextureViewDesc
fn clone(&self) -> TextureViewDesc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextureViewDesc
impl Debug for TextureViewDesc
Source§impl Default for TextureViewDesc
impl Default for TextureViewDesc
Source§impl<'de> Deserialize<'de> for TextureViewDesc
impl<'de> Deserialize<'de> for TextureViewDesc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TextureViewDesc
Source§impl PartialEq for TextureViewDesc
impl PartialEq for TextureViewDesc
Source§impl Serialize for TextureViewDesc
impl Serialize for TextureViewDesc
impl StructuralPartialEq for TextureViewDesc
Auto Trait Implementations§
impl Freeze for TextureViewDesc
impl RefUnwindSafe for TextureViewDesc
impl Send for TextureViewDesc
impl Sync for TextureViewDesc
impl Unpin for TextureViewDesc
impl UnsafeUnpin for TextureViewDesc
impl UnwindSafe for TextureViewDesc
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.