#[non_exhaustive]pub struct ImageInfo {
pub array_elements: u32,
pub depth: u32,
pub flags: ImageCreateFlags,
pub fmt: Format,
pub height: u32,
pub mip_level_count: u32,
pub sample_count: SampleCount,
pub tiling: ImageTiling,
pub ty: ImageType,
pub usage: ImageUsageFlags,
pub width: u32,
}
Expand description
Information used to create an Image
instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.array_elements: u32
The number of layers in the image.
depth: u32
Image extent of the Z axis, when describing a three dimensional image.
flags: ImageCreateFlags
A bitmask of describing additional parameters of the image.
fmt: Format
The format and type of the texel blocks that will be contained in the image.
height: u32
Image extent of the Y axis, when describing a two or three dimensional image.
mip_level_count: u32
The number of levels of detail available for minified sampling of the image.
sample_count: SampleCount
Specifies the number of samples per texel.
tiling: ImageTiling
Specifies the tiling arrangement of the texel blocks in memory.
The default value is vk::ImageTiling::OPTIMAL
.
ty: ImageType
The basic dimensionality of the image.
Layers in array textures do not count as a dimension for the purposes of the image type.
usage: ImageUsageFlags
A bitmask of describing the intended usage of the image.
width: u32
Image extent of the X axis.
Implementations§
source§impl ImageInfo
impl ImageInfo
sourcepub const fn cube(size: u32, fmt: Format, usage: ImageUsageFlags) -> ImageInfo
pub const fn cube(size: u32, fmt: Format, usage: ImageUsageFlags) -> ImageInfo
Specifies a cube image.
sourcepub const fn image_1d(
size: u32,
fmt: Format,
usage: ImageUsageFlags
) -> ImageInfo
pub const fn image_1d( size: u32, fmt: Format, usage: ImageUsageFlags ) -> ImageInfo
Specifies a one-dimensional image.
sourcepub const fn image_2d(
width: u32,
height: u32,
fmt: Format,
usage: ImageUsageFlags
) -> ImageInfo
pub const fn image_2d( width: u32, height: u32, fmt: Format, usage: ImageUsageFlags ) -> ImageInfo
Specifies a two-dimensional image.
sourcepub const fn image_2d_array(
width: u32,
height: u32,
array_elements: u32,
fmt: Format,
usage: ImageUsageFlags
) -> ImageInfo
pub const fn image_2d_array( width: u32, height: u32, array_elements: u32, fmt: Format, usage: ImageUsageFlags ) -> ImageInfo
Specifies a two-dimensional image array.
sourcepub const fn image_3d(
width: u32,
height: u32,
depth: u32,
fmt: Format,
usage: ImageUsageFlags
) -> ImageInfo
pub const fn image_3d( width: u32, height: u32, depth: u32, fmt: Format, usage: ImageUsageFlags ) -> ImageInfo
Specifies a three-dimensional image.
sourcepub fn default_view_info(self) -> ImageViewInfo
pub fn default_view_info(self) -> ImageViewInfo
Provides an ImageViewInfo
for this format, type, aspect, array elements, and mip levels.
sourcepub fn to_builder(self) -> ImageInfoBuilder
pub fn to_builder(self) -> ImageInfoBuilder
Converts an ImageInfo
into an ImageInfoBuilder
.