Struct vulkano::command_buffer::ClearColorImageInfo
source · [−]pub struct ClearColorImageInfo {
pub image: Arc<dyn ImageAccess>,
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<dyn ImageAccess>
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
sourceimpl ClearColorImageInfo
impl ClearColorImageInfo
sourcepub fn image(image: Arc<dyn ImageAccess>) -> Self
pub fn image(image: Arc<dyn ImageAccess>) -> Self
Returns a ClearColorImageInfo
with the specified image
.
Trait Implementations
sourceimpl Clone for ClearColorImageInfo
impl Clone for ClearColorImageInfo
sourcefn clone(&self) -> ClearColorImageInfo
fn clone(&self) -> ClearColorImageInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more