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(u32)
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 moresourceimpl Debug for SharingMode
impl Debug for SharingMode
sourceimpl<'a> From<&'a [&'a Arc<Queue>]> for SharingMode
impl<'a> From<&'a [&'a Arc<Queue>]> for SharingMode
sourcefn from(queues: &'a [&'a Arc<Queue>]) -> SharingMode
fn from(queues: &'a [&'a Arc<Queue>]) -> SharingMode
Converts to this type from the input type.
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
Converts to this type from the input type.
sourceimpl PartialEq<SharingMode> for SharingMode
impl PartialEq<SharingMode> for SharingMode
sourcefn eq(&self, other: &SharingMode) -> bool
fn eq(&self, other: &SharingMode) -> bool
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.