Struct vulkano::device::QueueCreateInfo
source · [−]pub struct QueueCreateInfo<'qf> {
pub family: QueueFamily<'qf>,
pub queues: Vec<f32>,
pub _ne: NonExhaustive,
}
Expand description
Parameters to create queues in a new Device
.
Fields
family: QueueFamily<'qf>
The queue family to create queues for.
queues: Vec<f32>
The queues to create for the given queue family, each with a relative priority.
The relative priority value is an arbitrary number between 0.0 and 1.0. Giving a queue a higher priority is a hint to the driver that the queue should be given more processing time. As this is only a hint, different drivers may handle this value differently and there are no guarantees about its behavior.
The default value is a single queue with a priority of 0.5.
_ne: NonExhaustive
Implementations
sourceimpl<'qf> QueueCreateInfo<'qf>
impl<'qf> QueueCreateInfo<'qf>
sourcepub fn family(family: QueueFamily<'_>) -> QueueCreateInfo<'_>
pub fn family(family: QueueFamily<'_>) -> QueueCreateInfo<'_>
Returns a QueueCreateInfo
with the given queue family.
Trait Implementations
sourceimpl<'qf> Clone for QueueCreateInfo<'qf>
impl<'qf> Clone for QueueCreateInfo<'qf>
sourcefn clone(&self) -> QueueCreateInfo<'qf>
fn clone(&self) -> QueueCreateInfo<'qf>
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 more
Auto Trait Implementations
impl<'qf> RefUnwindSafe for QueueCreateInfo<'qf>
impl<'qf> Send for QueueCreateInfo<'qf>
impl<'qf> Sync for QueueCreateInfo<'qf>
impl<'qf> Unpin for QueueCreateInfo<'qf>
impl<'qf> UnwindSafe for QueueCreateInfo<'qf>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more