pub struct BlitImageInfo<'a> {
pub src_image: Id<Image>,
pub src_image_layout: ImageLayoutType,
pub dst_image: Id<Image>,
pub dst_image_layout: ImageLayoutType,
pub regions: &'a [ImageBlit<'a>],
pub filter: Filter,
pub _ne: NonExhaustive<'a>,
}
Expand description
Parameters to blit image data.
Fields§
§src_image: Id<Image>
The image to blit from.
The default value is Id::INVALID
, which must be overridden.
src_image_layout: ImageLayoutType
The layout used for src_image
during the blit operation.
The default value is ImageLayoutType::Optimal
.
dst_image: Id<Image>
The image to blit to.
The default value is Id::INVALID
, which must be overridden.
dst_image_layout: ImageLayoutType
The layout used for dst_image
during the blit operation.
The default value is ImageLayoutType::Optimal
.
regions: &'a [ImageBlit<'a>]
The regions of both images to blit between.
The default value is a single region, covering the first mip level, and the smallest of the
array layers of the two images. The whole extent of each image is covered, scaling if
necessary. All aspects of each image are selected, or plane0
if the image is
multi-planar.
filter: Filter
The filter to use for sampling src_image
when the src_extent
and
dst_extent
of a region are not the same size.
The default value is Filter::Nearest
.
_ne: NonExhaustive<'a>
Trait Implementations§
Source§impl<'a> Clone for BlitImageInfo<'a>
impl<'a> Clone for BlitImageInfo<'a>
Source§fn clone(&self) -> BlitImageInfo<'a>
fn clone(&self) -> BlitImageInfo<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more