logo
pub struct QueueFamilyCriteria {
    pub must_support: QueueFlags,
    pub should_support: QueueFlags,
    pub must_not_support: QueueFlags,
    pub should_not_support: QueueFlags,
    pub presentation_support: Option<bool>,
}
Expand description

Criteria for queue families.

Fields

must_support: QueueFlags

A queue family will only be considered if all these flags are set.

should_support: QueueFlags

A queue family will be preferred over other ones if all these flags are set. The more of these flags are set, the more likely it is for the queue family to be chosen.

must_not_support: QueueFlags

A queue family will only be considered if none of these flags are set.

should_not_support: QueueFlags

A queue family will be preferred over other ones if none of these flags are set. The less of these flags are set, the more likely it is for the queue family to be chosen.

presentation_support: Option<bool>

This criteria is only met if the presentation support matches with this flag. None corresponds to being indifferent to the support. Some(expected) corresponds to the criteria being met if the support matches with expected.

Implementations

Queue family criteria that are always met.

The criteria are only met if the queue family supports graphics and presentation.

Tries to match the queue family that’s the closest to being a pure transfer queue.

Add an requirement that these queue flags must be present in the queue family.

Add an recommendation that these queue flags should be present in the queue family.

Add an requirement that these queue flags must not be present in the queue family.

Add an recommendation that these queue flags should not be present in the queue family.

Require that the queue family must support presentation.

Require that the queue family must not support presentation.

Returns the index of the best suited queue family. Returns Ok(None) when no queue family meets the criteria. Returns Err(_) when an internal Vulkan call failed.

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

Returns the “default value” for a type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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.