Enum vulkano::sync::SharingMode
source · [−]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
sourceimpl Clone for SharingMode
impl Clone for SharingMode
sourcefn clone(&self) -> SharingMode
fn clone(&self) -> SharingMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SharingMode
impl Debug for SharingMode
sourceimpl<'a> From<&'a Arc<Queue>> for SharingMode
impl<'a> From<&'a Arc<Queue>> for SharingMode
sourcefn from(queue: &'a Arc<Queue>) -> SharingMode
fn from(queue: &'a Arc<Queue>) -> SharingMode
Performs the conversion.
sourceimpl PartialEq<SharingMode> for SharingMode
impl PartialEq<SharingMode> for SharingMode
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SharingMode) -> bool
fn ne(&self, other: &SharingMode) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more