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
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 Debug for SharingMode
[src]
impl Clone for SharingMode
[src]
fn clone(&self) -> SharingMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for SharingMode
[src]
fn eq(&self, __arg_0: &SharingMode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SharingMode) -> bool
This method tests for !=
.
impl Eq for SharingMode
[src]
impl<'a> From<&'a Arc<Queue>> for SharingMode
[src]
fn from(queue: &'a Arc<Queue>) -> SharingMode
Performs the conversion.