pub struct BufferBarrier<'a> {
    pub previous_accesses: &'a [AccessType],
    pub next_accesses: &'a [AccessType],
    pub src_queue_family_index: u32,
    pub dst_queue_family_index: u32,
    pub buffer: Buffer,
    pub offset: usize,
    pub size: usize,
}
Expand description

Buffer barriers should only be used when a queue family ownership transfer is required - prefer global barriers at all other times.

Access types are defined in the same way as for a global memory barrier, but they only affect the buffer range identified by buffer, offset and size, rather than all resources.

src_queue_family_index and dst_queue_family_index will be passed unmodified into a buffer memory barrier.

A buffer barrier defining a queue ownership transfer needs to be executed twice - once by a queue in the source queue family, and then once again by a queue in the destination queue family, with a semaphore guaranteeing execution order between them.

Fields

previous_accesses: &'a [AccessType]next_accesses: &'a [AccessType]src_queue_family_index: u32dst_queue_family_index: u32buffer: Bufferoffset: usizesize: usize

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.