pub unsafe fn from_device(
        queues: &mut gfx_hal::queue::Queues<B>,
        id: FamilyId,
        count: usize,
        family: &impl gfx_hal::queue::QueueFamily,
    ) -> Self {
        Family {
            id,
            queues: {
                let queues = queues.take_raw(id).expect("");
                assert_eq!(queues.len(), count);
                queues
                    .into_iter()
                    .enumerate()
                    .map(|(index, queue)| Queue::new(queue, QueueId(id, index)))
                    .collect()
            },
            // min_image_transfer_granularity: properties.min_image_transfer_granularity,
            capability: family.queue_type(),
            relevant: relevant::Relevant,
        }
    }
/// Query queue family from device.
///
/// # Safety
///
/// This function shouldn't be used more then once with the same parameters.
/// Raw queue handle queried from device can make `Family` usage invalid.
/// `family` must be one of the family indices used during `device` creation.
/// `properties` must be the properties retuned for queue family from physical device.
Query queue family from device.
Query queue family from device .
pub unsafe fn from_device(
        queues: &mut gfx_hal::queue::Queues<B>,
        id: FamilyId,
        count: usize,
        family: &impl gfx_hal::queue::QueueFamily,
    ) -> Self {
        Family {
            id,
            queues: {
                let queues = queues.take_raw(id).expect("");
                assert_eq!(queues.len(), count);
                queues
                    .into_iter()
                    .enumerate()
                    .map(|(index, queue)| Queue::new(queue, QueueId(id, index)))
                    .collect()
            },
            // min_image_transfer_granularity: properties.min_image_transfer_granularity,
            capability: family.queue_type(),
            relevant: relevant::Relevant,
        }
    }
pub unsafe fn from_device ( queues : & mut gfx_hal :: queue :: Queues < B > , id : FamilyId , count : usize , family : & impl gfx_hal :: queue :: QueueFamily , ) -> Self { Family { id , queues : { let queues = queues . take_raw ( id ) . expect ( " " ) ; assert_eq ! ( queues len ( ) count ) ; queues . into_iter ( ) . enumerate ( ) . map ( | ( index , queue ) | Queue :: new ( queue , QueueId ( id , index ) ) ) . collect ( ) } , // min_image_transfer_granularity: properties.min_image_transfer_granularity, capability : family . queue_type ( ) , relevant : relevant :: Relevant , } }
Query queue family from device.
Query queue family from device .
queues
&mut gfx_hal::queue::Queues<B>
id
FamilyId
count
usize
family
&impl gfx_hal::queue::QueueFamily
queues
&mut gfx_hal::queue::Queues<B>
id
FamilyId
count
usize
family
&impl gfx_hal::queue::QueueFamily
safety
This function shouldn't be used more then once with the same parameters.
Raw queue handle queried from device can make `Family` usage invalid.
`family` must be one of the family indices used during `device` creation.
`properties` must be the properties retuned for queue family from physical device.
This function shouldn ' t be used more then once with the same parameters . Raw queue handle queried from device can make ` Family ` usage invalid . ` family ` must be one of the family indices used during ` device ` creation . ` properties ` must be the properties retuned for queue family from physical device .