pub fn as_queue_create_infos(&self) -> Vec<vk::DeviceQueueCreateInfo> {
        let mut create_infos = vec![vk::DeviceQueueCreateInfo {
            queue_family_index: self.graphics_family_index,
            p_queue_priorities: Self::SINGLE_QUEUE_PRIORITY.as_ptr(),
            queue_count: 1,
            ..Default::default()
        }];

        if self.graphics_family_index != self.present_family_index {
            create_infos.push(vk::DeviceQueueCreateInfo {
                queue_family_index: self.present_family_index,
                p_queue_priorities: Self::SINGLE_QUEUE_PRIORITY.as_ptr(),
                queue_count: 1,
                ..Default::default()
            });
        }

        create_infos
    }
/// Create a vector of queue create info structs based on the indices.
///
/// Automatically handles duplicate indices
Create a vector of queue create info structs based on the indices.
Automatically handles duplicate indices
Create a vector of queue create info structs based on the indices . Automatically handles duplicate indices
pub fn as_queue_create_infos(&self) -> Vec<vk::DeviceQueueCreateInfo> {
        let mut create_infos = vec![vk::DeviceQueueCreateInfo {
            queue_family_index: self.graphics_family_index,
            p_queue_priorities: Self::SINGLE_QUEUE_PRIORITY.as_ptr(),
            queue_count: 1,
            ..Default::default()
        }];
        if self.graphics_family_index != self.present_family_index {
            create_infos.push(vk::DeviceQueueCreateInfo {
                queue_family_index: self.present_family_index,
                p_queue_priorities: Self::SINGLE_QUEUE_PRIORITY.as_ptr(),
                queue_count: 1,
                ..Default::default()
            });
        }
        create_infos
    }
pub fn as_queue_create_infos ( & self ) -> Vec < vk :: DeviceQueueCreateInfo > { let mut create_infos = vec ! [ vk DeviceQueueCreateInfo { queue_family_index self graphics_family_index p_queue_priorities Self SINGLE_QUEUE_PRIORITY as_ptr ( ) queue_count 1 Default default ( ) } ] ; if self . graphics_family_index != self . present_family_index { create_infos . push ( vk :: DeviceQueueCreateInfo { queue_family_index : self . present_family_index , p_queue_priorities : Self :: SINGLE_QUEUE_PRIORITY . as_ptr ( ) , queue_count : 1 , .. Default :: default ( ) } ) ; } create_infos }
Create a vector of queue create info structs based on the indices.
Create a vector of queue create info structs based on the indices .
&self