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

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 famiily the resource will be used, even for exclusive mode.

Variants

The resource is used is only one queue family.

The resource is used in multiple queue families. Can be slower than Exclusive.

Trait Implementations

impl Debug for SharingMode
[src]

[src]

Formats the value using the given formatter.

impl Clone for SharingMode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for SharingMode
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for SharingMode
[src]

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.