pub struct Adapter { /* private fields */ }Expand description
a GPU of the system
Implementations§
Source§impl Adapter
impl Adapter
Sourcepub fn create_device(&self, desc: &DeviceDesc) -> Result<Device>
pub fn create_device(&self, desc: &DeviceDesc) -> Result<Device>
a device of this adapter (level: the highest up to desc.max_level)
Trait Implementations§
Auto Trait Implementations§
impl Forget for Adapter
impl Freeze for Adapter
impl RefUnwindSafe for Adapter
impl Send for Adapter
impl Sync for Adapter
impl Unpin for Adapter
impl UnsafeUnpin for Adapter
impl UnwindSafe for Adapter
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