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§
source§impl 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§
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 more