rendy_factory

Trait QueuesConfigure

Source
pub unsafe trait QueuesConfigure {
    type Priorities: AsRef<[f32]>;
    type Families: IntoIterator<Item = (FamilyId, Self::Priorities)>;

    // Required method
    fn configure(
        &self,
        device: DeviceId,
        families: &[impl QueueFamily],
    ) -> Self::Families;
}
Expand description

Queues configuration.

Method configure receives collection of queue families and returns an iterator over family ids and number of queues.

Required Associated Types§

Source

type Priorities: AsRef<[f32]>

Slice of priorities.

Source

type Families: IntoIterator<Item = (FamilyId, Self::Priorities)>

Iterator over families to create.

Required Methods§

Source

fn configure( &self, device: DeviceId, families: &[impl QueueFamily], ) -> Self::Families

Configure.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§