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), with one queue
Sourcepub fn create_device_with(
&self,
desc: &DeviceDesc,
opts: &DeviceOptions,
) -> Result<Device>
pub fn create_device_with( &self, desc: &DeviceDesc, opts: &DeviceOptions, ) -> Result<Device>
(G5d) a device of this adapter with options: a compute queue of its own (Device::compute_queue) where the adapter has a family without graphics and jfgui_GPU_COMPUTE is not 0
Trait Implementations§
Auto Trait Implementations§
impl Forget for Adapter
impl Freeze for Adapter
impl Move 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