pub struct ClearDepthStencilImageInfo<'a> {
pub image: Id<Image>,
pub image_layout: ImageLayoutType,
pub clear_value: ClearDepthStencilValue,
pub regions: &'a [ImageSubresourceRange],
pub _ne: NonExhaustive<'a>,
}
Expand description
Parameters to clear a depth/stencil 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: ClearDepthStencilValue
The depth/stencil values to clear the image to.
The default value is zero for both.
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 ClearDepthStencilImageInfo<'a>
impl<'a> Clone for ClearDepthStencilImageInfo<'a>
Source§fn clone(&self) -> ClearDepthStencilImageInfo<'a>
fn clone(&self) -> ClearDepthStencilImageInfo<'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 ClearDepthStencilImageInfo<'a>
impl<'a> Debug for ClearDepthStencilImageInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClearDepthStencilImageInfo<'a>
impl<'a> RefUnwindSafe for ClearDepthStencilImageInfo<'a>
impl<'a> Send for ClearDepthStencilImageInfo<'a>
impl<'a> Sync for ClearDepthStencilImageInfo<'a>
impl<'a> Unpin for ClearDepthStencilImageInfo<'a>
impl<'a> UnwindSafe for ClearDepthStencilImageInfo<'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