logo
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

Returns a QueueCreateInfo with the given queue family.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.