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 duplicate 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
impl Eq for SharingMode
impl StructuralPartialEq for SharingMode
Auto Trait Implementations§
impl Freeze for SharingMode
impl RefUnwindSafe for SharingMode
impl Send for SharingMode
impl Sync for SharingMode
impl Unpin for SharingMode
impl UnsafeUnpin 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