pub struct RenderingAttachmentResolveInfo {
pub mode: ResolveMode,
pub image_view: Arc<ImageView>,
pub image_layout: ImageLayout,
}
Expand description
Parameters to specify the resolve behavior of an attachment.
Fields§
§mode: ResolveMode
How the resolve operation should be performed.
The default value is ResolveMode::Average
.
image_view: Arc<ImageView>
The image view that the result of the resolve operation should be written to.
There is no default value.
image_layout: ImageLayout
The image layout that image_view
should be in during the resolve operation.
The default value is ImageLayout::ColorAttachmentOptimal
if image_view
has a color
format, ImageLayout::DepthStencilAttachmentOptimal
if image_view
has a depth/stencil
format.
Implementations§
source§impl RenderingAttachmentResolveInfo
impl RenderingAttachmentResolveInfo
sourcepub fn image_view(image_view: Arc<ImageView>) -> Self
pub fn image_view(image_view: Arc<ImageView>) -> Self
Returns a RenderingAttachmentResolveInfo
with the specified image_view
.
Trait Implementations§
source§impl Clone for RenderingAttachmentResolveInfo
impl Clone for RenderingAttachmentResolveInfo
source§fn clone(&self) -> RenderingAttachmentResolveInfo
fn clone(&self) -> RenderingAttachmentResolveInfo
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 RenderingAttachmentResolveInfo
impl Send for RenderingAttachmentResolveInfo
impl Sync for RenderingAttachmentResolveInfo
impl Unpin for RenderingAttachmentResolveInfo
impl !UnwindSafe for RenderingAttachmentResolveInfo
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