#[repr(C)]pub struct TextureViewDescriptorBase<L> {
pub label: L,
pub format: TextureFormat,
pub dimension: TextureViewDimension,
pub aspect: TextureAspect,
pub base_mip_level: u32,
pub level_count: u32,
pub base_array_layer: u32,
pub array_layer_count: u32,
}Expand description
Describes a [TextureView].
Fields§
§label: LDebug label of the texture view. This will show up in graphics debuggers for easy identification.
format: TextureFormatFormat of the texture view. At this time, it must be the same as the underlying format of the texture.
dimension: TextureViewDimensionThe dimension of the texture view. For 1D textures, this must be 1D. For 2D textures it must be one of
D2, D2Array, Cube, and CubeArray. For 3D textures it must be 3D
aspect: TextureAspectAspect of the texture. Color textures must be TextureAspect::All.
base_mip_level: u32Base mip level.
level_count: u32Mip level count. Must be at least one. base_mip_level + level_count must be less or equal to underlying texture mip count.
base_array_layer: u32Base array layer.
array_layer_count: u32Layer count. Must be at least one. base_array_layer + array_layer_count must be less or equal to the underlying array count.
Implementations§
Source§impl<L> TextureViewDescriptor<L>
impl<L> TextureViewDescriptor<L>
pub fn map_label<K>( &self, fun: impl FnOnce(&L) -> K, ) -> TextureViewDescriptor<K>
Trait Implementations§
Source§impl<L> Clone for TextureViewDescriptor<L>where
L: Clone,
impl<L> Clone for TextureViewDescriptor<L>where
L: Clone,
Source§fn clone(&self) -> TextureViewDescriptor<L>
fn clone(&self) -> TextureViewDescriptor<L>
Returns a duplicate 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 moreSource§impl<L> Debug for TextureViewDescriptor<L>where
L: Debug,
impl<L> Debug for TextureViewDescriptor<L>where
L: Debug,
Source§impl<'de, L> Deserialize<'de> for TextureViewDescriptor<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for TextureViewDescriptor<L>where
L: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TextureViewDescriptor<L>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TextureViewDescriptor<L>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<L> PartialEq for TextureViewDescriptor<L>where
L: PartialEq,
impl<L> PartialEq for TextureViewDescriptor<L>where
L: PartialEq,
Source§impl<L> Serialize for TextureViewDescriptor<L>where
L: Serialize,
impl<L> Serialize for TextureViewDescriptor<L>where
L: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<L> StructuralPartialEq for TextureViewDescriptor<L>
Auto Trait Implementations§
impl<L> Freeze for TextureViewDescriptor<L>where
L: Freeze,
impl<L> RefUnwindSafe for TextureViewDescriptor<L>where
L: RefUnwindSafe,
impl<L> Send for TextureViewDescriptor<L>where
L: Send,
impl<L> Sync for TextureViewDescriptor<L>where
L: Sync,
impl<L> Unpin for TextureViewDescriptor<L>where
L: Unpin,
impl<L> UnwindSafe for TextureViewDescriptor<L>where
L: UnwindSafe,
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