Struct screen_13::driver::image::ImageInfoBuilder
source · pub struct ImageInfoBuilder { /* private fields */ }Expand description
Builder for ImageInfo.
Implementations§
source§impl ImageInfoBuilder
impl ImageInfoBuilder
sourcepub fn array_elements(self, value: u32) -> Self
pub fn array_elements(self, value: u32) -> Self
The number of layers in the image.
sourcepub fn depth(self, value: u32) -> Self
pub fn depth(self, value: u32) -> Self
Image extent of the Z axis, when describing a three dimensional image.
sourcepub fn flags(self, value: ImageCreateFlags) -> Self
pub fn flags(self, value: ImageCreateFlags) -> Self
A bitmask of describing additional parameters of the image.
sourcepub fn fmt(self, value: Format) -> Self
pub fn fmt(self, value: Format) -> Self
The format and type of the texel blocks that will be contained in the image.
sourcepub fn height(self, value: u32) -> Self
pub fn height(self, value: u32) -> Self
Image extent of the Y axis, when describing a two or three dimensional image.
sourcepub fn linear_tiling(self, value: bool) -> Self
pub fn linear_tiling(self, value: bool) -> Self
Specifies the tiling arrangement of the texel blocks in memory.
The default value of false indicates a VK_IMAGE_TILING_OPTIMAL image.
sourcepub fn mip_level_count(self, value: u32) -> Self
pub fn mip_level_count(self, value: u32) -> Self
The number of levels of detail available for minified sampling of the image.
sourcepub fn sample_count(self, value: SampleCount) -> Self
pub fn sample_count(self, value: SampleCount) -> Self
Specifies the number of samples per texel.
sourcepub fn ty(self, value: ImageType) -> Self
pub fn ty(self, value: ImageType) -> Self
The basic dimensionality of the image.
Layers in array textures do not count as a dimension for the purposes of the image type.
sourcepub fn usage(self, value: ImageUsageFlags) -> Self
pub fn usage(self, value: ImageUsageFlags) -> Self
A bitmask of describing the intended usage of the image.