pub struct ImageInfo {
pub array_elements: u32,
pub depth: u32,
pub flags: ImageCreateFlags,
pub fmt: Format,
pub height: u32,
pub linear_tiling: bool,
pub mip_level_count: u32,
pub sample_count: SampleCount,
pub ty: ImageType,
pub usage: ImageUsageFlags,
pub width: u32,
}Expand description
Information used to create an Image instance.
Fields
array_elements: u32The number of layers in the image.
depth: u32Image extent of the Z axis, when describing a three dimensional image.
flags: ImageCreateFlagsA bitmask of describing additional parameters of the image.
fmt: FormatThe format and type of the texel blocks that will be contained in the image.
height: u32Image extent of the Y axis, when describing a two or three dimensional image.
linear_tiling: boolSpecifies the tiling arrangement of the texel blocks in memory.
The default value of false indicates a VK_IMAGE_TILING_OPTIMAL image.
mip_level_count: u32The number of levels of detail available for minified sampling of the image.
sample_count: SampleCountSpecifies the number of samples per texel.
ty: ImageTypeThe basic dimensionality of the image.
Layers in array textures do not count as a dimension for the purposes of the image type.
usage: ImageUsageFlagsA bitmask of describing the intended usage of the image.
width: u32Image extent of the X axis.
Implementations
sourceimpl ImageInfo
impl ImageInfo
sourcepub const fn new_1d(
fmt: Format,
len: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
pub const fn new_1d(
fmt: Format,
len: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
Specifies a one-dimensional image.
sourcepub const fn new_2d(
fmt: Format,
width: u32,
height: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
pub const fn new_2d(
fmt: Format,
width: u32,
height: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
Specifies a two-dimensional image.
sourcepub const fn new_2d_array(
fmt: Format,
width: u32,
height: u32,
array_elements: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
pub const fn new_2d_array(
fmt: Format,
width: u32,
height: u32,
array_elements: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
Specifies a two-dimensional image array.
sourcepub const fn new_3d(
fmt: Format,
width: u32,
height: u32,
depth: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
pub const fn new_3d(
fmt: Format,
width: u32,
height: u32,
depth: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
Specifies a three-dimensional image.
sourcepub fn new_cube(
fmt: Format,
width: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
pub fn new_cube(
fmt: Format,
width: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
Specifies a cube 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.