pub struct WgpuSetup {
pub instance: Instance,
pub adapter: Adapter,
pub device: Device,
pub queue: Queue,
pub backend: Backend,
}
Expand description
A complete setup used to run wgpu.
These can either be created with init_setup
or init_setup_async
.
Fields§
§instance: Instance
The underlying wgpu instance.
adapter: Adapter
The selected ‘adapter’. This corresponds to a physical device.
device: Device
The wgpu device Burn will use. Nb: There can only be one device per adapter.
queue: Queue
The queue Burn commands will be submitted to.
backend: Backend
The backend used by the setup.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WgpuSetup
impl !RefUnwindSafe for WgpuSetup
impl Send for WgpuSetup
impl Sync for WgpuSetup
impl Unpin for WgpuSetup
impl !UnwindSafe for WgpuSetup
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