Struct vulkano::command_buffer::ClearColorImageInfo
source · 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: ImageLayout
The layout used for image
during the clear operation.
The following layouts are allowed:
The default value is ImageLayout::TransferDstOptimal
.
clear_value: ClearColorValue
The 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: NonExhaustive
Implementations§
Trait Implementations§
source§impl Clone for ClearColorImageInfo
impl Clone for ClearColorImageInfo
source§fn clone(&self) -> ClearColorImageInfo
fn clone(&self) -> ClearColorImageInfo
Returns a copy 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 !RefUnwindSafe for ClearColorImageInfo
impl Send for ClearColorImageInfo
impl Sync for ClearColorImageInfo
impl Unpin 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