pub struct ImageMemoryBarrier<'a> {
pub src_stages: PipelineStages,
pub src_access: AccessFlags,
pub dst_stages: PipelineStages,
pub dst_access: AccessFlags,
pub old_layout: ImageLayout,
pub new_layout: ImageLayout,
pub image: Id<Image>,
pub subresource_range: ImageSubresourceRange,
pub _ne: NonExhaustive<'a>,
}Expand description
A memory barrier that is applied to a single image.
Fields§
§src_stages: PipelineStagesThe pipeline stages in the source scope to wait for.
The default value is PipelineStages::empty().
src_access: AccessFlagsThe memory accesses in the source scope to make available and visible.
The default value is AccessFlags::empty().
dst_stages: PipelineStagesThe pipeline stages in the destination scope that must wait for src_stages.
The default value is PipelineStages::empty().
dst_access: AccessFlagsThe memory accesses in the destination scope that must wait for src_access to be made
available and visible.
The default value is AccessFlags::empty().
old_layout: ImageLayoutThe layout that the specified subresource_range of image is expected to be in when the
source scope completes.
The default value is ImageLayout::Undefined.
new_layout: ImageLayoutThe layout that the specified subresource_range of image will be transitioned to before
the destination scope begins.
The default value is ImageLayout::Undefined.
image: Id<Image>The image to apply the barrier to.
The default value is Id::INVALID, which must be overridden.
subresource_range: ImageSubresourceRangeThe subresource range of image to apply the barrier to.
The default value is empty, which must be overridden.
_ne: NonExhaustive<'a>Trait Implementations§
Source§impl<'a> Clone for ImageMemoryBarrier<'a>
impl<'a> Clone for ImageMemoryBarrier<'a>
Source§fn clone(&self) -> ImageMemoryBarrier<'a>
fn clone(&self) -> ImageMemoryBarrier<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more