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: 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.

linear_tiling: bool

Specifies the tiling arrangement of the texel blocks in memory.

The default value of false indicates a VK_IMAGE_TILING_OPTIMAL 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.

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

Specifies a one-dimensional image.

Specifies a two-dimensional image.

Specifies a two-dimensional image array.

Specifies a three-dimensional image.

Specifies a cube image.

Provides an ImageViewInfo for this format, type, aspect, array elements, and mip levels.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Lease a resource.
Lease a resource.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.