pub struct ClearColorImageInfo<'a> {
pub image: Id<Image>,
pub image_layout: ImageLayoutType,
pub clear_value: ClearColorValue,
pub regions: &'a [ImageSubresourceRange],
pub _ne: NonExhaustive<'a>,
}
Expand description
Parameters to clear a color image.
Fields§
§image: Id<Image>
The image to clear.
The default value is Id::INVALID
, which must be overridden.
image_layout: ImageLayoutType
The layout used for image
during the clear operation.
The default value is ImageLayoutType::Optimal
.
clear_value: ClearColorValue
The color value to clear the image to.
The default value is ClearColorValue::Float([0.0; 4])
.
regions: &'a [ImageSubresourceRange]
The subresource ranges of image
to clear.
The default value is a single region, covering the whole image.
_ne: NonExhaustive<'a>
Trait Implementations§
Source§impl<'a> Clone for ClearColorImageInfo<'a>
impl<'a> Clone for ClearColorImageInfo<'a>
Source§fn clone(&self) -> ClearColorImageInfo<'a>
fn clone(&self) -> ClearColorImageInfo<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ClearColorImageInfo<'a>
impl<'a> Debug for ClearColorImageInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClearColorImageInfo<'a>
impl<'a> RefUnwindSafe for ClearColorImageInfo<'a>
impl<'a> Send for ClearColorImageInfo<'a>
impl<'a> Sync for ClearColorImageInfo<'a>
impl<'a> Unpin for ClearColorImageInfo<'a>
impl<'a> UnwindSafe for ClearColorImageInfo<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more