pub fn device_with_node(&self, node: &DrmNode) -> Option<PhysicalDevice<'_>> {
        let ty = node.ty();

        self.enumerate_devices().find(|phy| match ty {
            NodeType::Primary => phy.primary_node().map(|primary| &primary == node).unwrap_or(false),
            NodeType::Render => phy.render_node().map(|render| &render == node).unwrap_or(false),
            // Cannot have a physical device which is a control node.
            NodeType::Control => false,
        })
    }
/// Returns the physical device that corresponds to the DRM node.
///
/// Note this function will not return the device which corresponds to the DRM node if the Vulkan
/// implementation does not support the `VK_EXT_physical_device_drm` extension.
Returns the physical device that corresponds to the DRM node.
Note this function will not return the device which corresponds to the DRM node if the Vulkan
implementation does not support the `VK_EXT_physical_device_drm` extension.
Returns the physical device that corresponds to the DRM node . Note this function will not return the device which corresponds to the DRM node if the Vulkan implementation does not support the ` VK_EXT_physical_device_drm ` extension .
pub fn device_with_node(&self, node: &DrmNode) -> Option<PhysicalDevice<'_>> {
        let ty = node.ty();
        self.enumerate_devices().find(|phy| match ty {
            NodeType::Primary => phy.primary_node().map(|primary| &primary == node).unwrap_or(false),
            NodeType::Render => phy.render_node().map(|render| &render == node).unwrap_or(false),
            // Cannot have a physical device which is a control node.
            NodeType::Control => false,
        })
    }
pub fn device_with_node ( & self , node : & DrmNode ) -> Option < PhysicalDevice < ' _ > > { let ty = node . ty ( ) ; self . enumerate_devices ( ) . find ( | phy | match ty { NodeType :: Primary => phy . primary_node ( ) . map ( | primary | & primary == node ) . unwrap_or ( false ) , NodeType :: Render => phy . render_node ( ) . map ( | render | & render == node ) . unwrap_or ( false ) , // Cannot have a physical device which is a control node. NodeType :: Control => false , } ) }
Returns the physical device that corresponds to the DRM node.
Returns the physical device that corresponds to the DRM node .
&self
node
&DrmNode