Struct vulkano::command_buffer::ClearDepthStencilImageInfo
source · [−]pub struct ClearDepthStencilImageInfo {
pub image: Arc<dyn ImageAccess>,
pub image_layout: ImageLayout,
pub clear_value: ClearDepthStencilValue,
pub regions: SmallVec<[ImageSubresourceRange; 1]>,
pub _ne: NonExhaustive,
}
Expand description
Parameters to clear a depth/stencil 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: ClearDepthStencilValue
The depth/stencil values to clear the image to.
The default value is zero for both.
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 ClearDepthStencilImageInfo
impl ClearDepthStencilImageInfo
sourcepub fn image(image: Arc<dyn ImageAccess>) -> Self
pub fn image(image: Arc<dyn ImageAccess>) -> Self
Returns a ClearDepthStencilImageInfo
with the specified image
.
Trait Implementations
sourceimpl Clone for ClearDepthStencilImageInfo
impl Clone for ClearDepthStencilImageInfo
sourcefn clone(&self) -> ClearDepthStencilImageInfo
fn clone(&self) -> ClearDepthStencilImageInfo
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 ClearDepthStencilImageInfo
impl Send for ClearDepthStencilImageInfo
impl Sync for ClearDepthStencilImageInfo
impl Unpin for ClearDepthStencilImageInfo
impl !UnwindSafe for ClearDepthStencilImageInfo
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