[][src]Enum vulkano::sync::SharingMode

pub enum SharingMode {
    Exclusive(u32),
    Concurrent(Vec<u32>),
}

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

impl Eq for SharingMode[src]

impl Clone for SharingMode[src]

impl PartialEq<SharingMode> for SharingMode[src]

impl<'a> From<&'a Arc<Queue>> for SharingMode[src]

impl<'a> From<&'a [&'a Arc<Queue>]> for SharingMode[src]

impl Debug for SharingMode[src]

Auto Trait Implementations

impl Send for SharingMode

impl Unpin for SharingMode

impl Sync for SharingMode

impl UnwindSafe for SharingMode

impl RefUnwindSafe for SharingMode

Blanket Implementations

impl<T> Content for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]