pub struct ClearColorImageInfo {
pub image: Arc<Image>,
pub image_layout: ImageLayout,
pub clear_value: ClearColorValue,
pub regions: SmallVec<[ImageSubresourceRange; 1]>,
pub _ne: NonExhaustive,
}Expand description
Parameters to clear a color image.
Fields§
§image: Arc<Image>The image to clear.
There is no default value.
image_layout: ImageLayoutThe layout used for image during the clear operation.
The following layouts are allowed:
The default value is ImageLayout::TransferDstOptimal.
clear_value: ClearColorValueThe color value to clear the image to.
The default value is ClearColorValue::Float([0.0; 4]).
regions: SmallVec<[ImageSubresourceRange; 1]>The subresource ranges of image to clear.
The default value is a single region, covering the whole image.
_ne: NonExhaustiveImplementations§
Trait Implementations§
Source§impl Clone for ClearColorImageInfo
impl Clone for ClearColorImageInfo
Source§fn clone(&self) -> ClearColorImageInfo
fn clone(&self) -> ClearColorImageInfo
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 moreAuto Trait Implementations§
impl Freeze for ClearColorImageInfo
impl !RefUnwindSafe for ClearColorImageInfo
impl Send for ClearColorImageInfo
impl Sync for ClearColorImageInfo
impl Unpin for ClearColorImageInfo
impl UnsafeUnpin for ClearColorImageInfo
impl !UnwindSafe for ClearColorImageInfo
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