pub struct RenderingAttachmentResolveInfo {
pub mode: ResolveMode,
pub image_view: Arc<dyn ImageViewAbstract>,
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<dyn ImageViewAbstract>
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
sourceimpl RenderingAttachmentResolveInfo
impl RenderingAttachmentResolveInfo
sourcepub fn image_view(image_view: Arc<dyn ImageViewAbstract>) -> Self
pub fn image_view(image_view: Arc<dyn ImageViewAbstract>) -> Self
Returns a RenderingAttachmentResolveInfo
with the specified image_view
.
Trait Implementations
sourceimpl Clone for RenderingAttachmentResolveInfo
impl Clone for RenderingAttachmentResolveInfo
sourcefn clone(&self) -> RenderingAttachmentResolveInfo
fn clone(&self) -> RenderingAttachmentResolveInfo
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 RenderingAttachmentResolveInfo
impl Send for RenderingAttachmentResolveInfo
impl Sync for RenderingAttachmentResolveInfo
impl Unpin for RenderingAttachmentResolveInfo
impl !UnwindSafe for RenderingAttachmentResolveInfo
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