pub type TextureDescriptor<'a> = TextureDescriptorBase<Option<&'a str>>;
Expand description
Describes a Texture
.
Aliased Type§
#[repr(C)]pub struct TextureDescriptor<'a> {
pub label: Option<&'a str>,
pub size: Extent3d,
pub mip_level_count: u32,
pub sample_count: u32,
pub dimension: TextureDimension,
pub format: TextureFormat,
pub usage: TextureUsage,
}
Fields§
§label: Option<&'a str>
Debug label of the texture. This will show up in graphics debuggers for easy identification.
size: Extent3d
Size of the texture. For a regular 1D/2D texture, the unused sizes will be 1. For 2DArray textures, Z is the number of 2D textures in that array.
mip_level_count: u32
Mip count of texture. For a texture with no extra mips, this must be 1.
sample_count: u32
Sample count of texture. If this is not 1, texture must have BindingType::SampledTexture::multisampled
set to true.
dimension: TextureDimension
Dimensions of the texture.
format: TextureFormat
Format of the texture.
usage: TextureUsage
Allowed usages of the texture. If used in other ways, the operation will panic.