Struct vulkano::sync::BufferMemoryBarrier
source · pub struct BufferMemoryBarrier {
pub src_stages: PipelineStages,
pub src_access: AccessFlags,
pub dst_stages: PipelineStages,
pub dst_access: AccessFlags,
pub queue_family_ownership_transfer: Option<QueueFamilyOwnershipTransfer>,
pub buffer: Arc<Buffer>,
pub range: Range<DeviceSize>,
pub _ne: NonExhaustive,
}
Expand description
A memory barrier that is applied to a single buffer.
Fields§
§src_stages: PipelineStages
The pipeline stages in the source scope to wait for.
The default value is PipelineStages::empty()
.
src_access: AccessFlags
The memory accesses in the source scope to make available and visible.
The default value is AccessFlags::empty()
.
dst_stages: PipelineStages
The pipeline stages in the destination scope that must wait for src_stages
.
The default value is PipelineStages::empty()
.
dst_access: AccessFlags
The memory accesses in the destination scope that must wait for src_access
to be made
available and visible.
queue_family_ownership_transfer: Option<QueueFamilyOwnershipTransfer>
For resources created with Sharing::Exclusive
, transfers
ownership of a resource from one queue family to another.
buffer: Arc<Buffer>
The buffer to apply the barrier to.
range: Range<DeviceSize>
The byte range of buffer
to apply the barrier to.
_ne: NonExhaustive
Implementations§
Trait Implementations§
source§impl Clone for BufferMemoryBarrier
impl Clone for BufferMemoryBarrier
source§fn clone(&self) -> BufferMemoryBarrier
fn clone(&self) -> BufferMemoryBarrier
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 BufferMemoryBarrier
impl Send for BufferMemoryBarrier
impl Sync for BufferMemoryBarrier
impl Unpin for BufferMemoryBarrier
impl !UnwindSafe for BufferMemoryBarrier
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