pub unsafe fn families_from_device<B>(
    queues: &mut gfx_hal::queue::Queues<B>,
    families: impl IntoIterator<Item = (FamilyId, usize)>,
    queue_types: &[impl gfx_hal::queue::QueueFamily],
) -> Vec<Family<B>>
where
    B: gfx_hal::Backend,
{
    families
        .into_iter()
        .map(|(index, count)| Family::from_device(queues, index, count, &queue_types[index.0]))
        .collect()
}
/// Query queue families from device.
///
/// # Safety
///
/// This function shouldn't be used more then once with same parameters.
/// Raw queue handle queried from device can make returned `Family` usage invalid.
/// `families` iterator must yeild unique family indices with queue count used during `device` creation.
/// `properties` must contain properties retuned for queue family from physical device for each family id yielded by `families`.
Query queue families from device.
Query queue families from device .
pub unsafe fn families_from_device<B>(
    queues: &mut gfx_hal::queue::Queues<B>,
    families: impl IntoIterator<Item = (FamilyId, usize)>,
    queue_types: &[impl gfx_hal::queue::QueueFamily],
) -> Vec<Family<B>>
where
    B: gfx_hal::Backend,
{
    families
        .into_iter()
        .map(|(index, count)| Family::from_device(queues, index, count, &queue_types[index.0]))
        .collect()
}
pub unsafe fn families_from_device < B > ( queues : & mut gfx_hal :: queue :: Queues < B > , families : impl IntoIterator < Item = ( FamilyId , usize ) > , queue_types : & [ impl gfx_hal :: queue :: QueueFamily ] , ) -> Vec < Family < B > > where B : gfx_hal :: Backend , { families . into_iter ( ) . map ( | ( index , count ) | Family :: from_device ( queues , index , count , & queue_types [ index . 0 ] ) ) . collect ( ) }
Query queue families from device.
Query queue families from device .
queues
&mut gfx_hal::queue::Queues<B>
families
impl IntoIterator<Item = (FamilyId, usize)>
queue_types
&[impl gfx_hal::queue::QueueFamily]
queues
&mut gfx_hal::queue::Queues<B>
families
impl IntoIterator<Item = (FamilyId, usize)>
queue_types
&[impl gfx_hal::queue::QueueFamily]
safety
This function shouldn't be used more then once with same parameters.
Raw queue handle queried from device can make returned `Family` usage invalid.
`families` iterator must yeild unique family indices with queue count used during `device` creation.
`properties` must contain properties retuned for queue family from physical device for each family id yielded by `families`.
This function shouldn ' t be used more then once with same parameters . Raw queue handle queried from device can make returned ` Family ` usage invalid . ` families ` iterator must yeild unique family indices with queue count used during ` device ` creation . ` properties ` must contain properties retuned for queue family from physical device for each family id yielded by ` families ` .