pub struct DependencyInfo<'a> {
pub dependency_flags: DependencyFlags,
pub memory_barriers: &'a [MemoryBarrier<'a>],
pub buffer_memory_barriers: &'a [BufferMemoryBarrier<'a>],
pub image_memory_barriers: &'a [ImageMemoryBarrier<'a>],
pub _ne: NonExhaustive<'a>,
}
Expand description
Dependency info for barriers in a pipeline barrier command.
A pipeline barrier creates a dependency between commands submitted before the barrier (the
source scope) and commands submitted after it (the destination scope). Each DependencyInfo
consists of multiple individual barriers that concern either a single resource or operate
globally.
Each barrier has a set of source/destination pipeline stages and source/destination memory
access types. The pipeline stages create an execution dependency: the src_stages
of
commands submitted before the barrier must be completely finished before any of the
dst_stages
of commands after the barrier are allowed to start. The memory access types create
a memory dependency: in addition to the execution dependency, any src_access
performed before the barrier must be made available and visible before any dst_access
are made after the barrier.
Fields§
§dependency_flags: DependencyFlags
Flags to modify how the execution and memory dependencies are formed.
The default value is empty.
memory_barriers: &'a [MemoryBarrier<'a>]
Memory barriers for global operations and accesses, not limited to a single resource.
The default value is empty.
buffer_memory_barriers: &'a [BufferMemoryBarrier<'a>]
Memory barriers for individual buffers.
The default value is empty.
image_memory_barriers: &'a [ImageMemoryBarrier<'a>]
Memory barriers for individual images.
The default value is empty.
_ne: NonExhaustive<'a>
Implementations§
Trait Implementations§
Source§impl<'a> Clone for DependencyInfo<'a>
impl<'a> Clone for DependencyInfo<'a>
Source§fn clone(&self) -> DependencyInfo<'a>
fn clone(&self) -> DependencyInfo<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more