Struct erupt_bootstrap::device::QueueFamilyRequirements
source · [−]pub struct QueueFamilyRequirements {
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
Requirements to queue families.
Fields
must_support: QueueFlagsA queue family will only be considered if all these flags are set.
should_support: QueueFlagsA queue family will be preferred over other ones if all these flags are set.
must_not_support: QueueFlagsA queue family will only be considered if none of these flags are set.
should_not_support: QueueFlagsA queue family will be preferred over other ones if none of these flags are set.
presentation_support: Option<bool>This requirement is only met if the presentation support matches with
this flag. None corresponds to being indifferent to the support.
Some(expected) corresponds to the requirement being met if the support
matches with expected.
Implementations
Queue family requirements that are always met.
The requirements 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.
pub fn queue_family<'a>(
&self,
instance: &InstanceLoader,
physical_device: PhysicalDevice,
queue_family_properties: &'a [QueueFamilyProperties],
surface: Option<SurfaceKHR>
) -> Result<Option<(u32, &'a QueueFamilyProperties)>, Result>
pub fn queue_family<'a>(
&self,
instance: &InstanceLoader,
physical_device: PhysicalDevice,
queue_family_properties: &'a [QueueFamilyProperties],
surface: Option<SurfaceKHR>
) -> Result<Option<(u32, &'a QueueFamilyProperties)>, Result>
Returns the index of the first queue family that meets the requirements.
Returns Ok(None) when no queue family meets the requirements.
Returns Err(_) when an internal Vulkan call failed.
Trait Implementations
Returns the “default value” for a type. 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
impl RefUnwindSafe for QueueFamilyRequirements
impl Send for QueueFamilyRequirements
impl Sync for QueueFamilyRequirements
impl Unpin for QueueFamilyRequirements
impl UnwindSafe for QueueFamilyRequirements
Blanket Implementations
Mutably borrows from an owned value. Read more