pub type TextureViewDescriptor<'a> = TextureViewDescriptorBase<Option<&'a str>>;Expand description
Describes a TextureView.
Aliased Type§
#[repr(C)]pub struct TextureViewDescriptor<'a> {
pub label: Option<&'a str>,
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,
}Fields§
§label: Option<&'a str>Debug 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.