pub struct DeviceConnecter(/* private fields */);Expand description
Represents a handle to a physical device.
Implementations§
Source§impl DeviceConnecter
impl DeviceConnecter
Sourcepub fn create_device(
self,
instance: &Instance,
queue_family_index: usize,
) -> NxResult<Device>
pub fn create_device( self, instance: &Instance, queue_family_index: usize, ) -> NxResult<Device>
Create a device.
pub fn get_queue_family_properties( &self, instance: &Instance, ) -> NxResult<Vec<QueueFamilyProperties>>
pub fn get_queue_family_index(&self) -> usize
Trait Implementations§
Source§impl Clone for DeviceConnecter
impl Clone for DeviceConnecter
Source§fn clone(&self) -> DeviceConnecter
fn clone(&self) -> DeviceConnecter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeviceConnecter
Auto Trait Implementations§
impl Freeze for DeviceConnecter
impl RefUnwindSafe for DeviceConnecter
impl Send for DeviceConnecter
impl Sync for DeviceConnecter
impl Unpin for DeviceConnecter
impl UnsafeUnpin for DeviceConnecter
impl UnwindSafe for DeviceConnecter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more