Enum vulkano::sync::SharingMode
source · pub enum SharingMode {
Exclusive,
Concurrent(Vec<u32>),
}
Expand description
Declares in which queue(s) a resource can be used.
When you create a buffer or an image, you have to tell the Vulkan library in which queue families it will be used. The vulkano library requires you to tell in which queue family the resource will be used, even for exclusive mode.
Variants§
Exclusive
The resource is used is only one queue family.
Concurrent(Vec<u32>)
The resource is used in multiple queue families. Can be slower than Exclusive
.
Trait Implementations§
source§impl Clone for SharingMode
impl Clone for SharingMode
source§fn clone(&self) -> SharingMode
fn clone(&self) -> SharingMode
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 moresource§impl Debug for SharingMode
impl Debug for SharingMode
source§impl PartialEq for SharingMode
impl PartialEq for SharingMode
source§fn eq(&self, other: &SharingMode) -> bool
fn eq(&self, other: &SharingMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SharingMode
impl StructuralEq for SharingMode
impl StructuralPartialEq for SharingMode
Auto Trait Implementations§
impl RefUnwindSafe for SharingMode
impl Send for SharingMode
impl Sync for SharingMode
impl Unpin for SharingMode
impl UnwindSafe for SharingMode
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