Struct WgpuSetup
pub struct WgpuSetup {
pub instance: Arc<Instance>,
pub adapter: Arc<Adapter>,
pub device: Arc<Device>,
pub queue: Arc<Queue>,
}
Expand description
A complete setup used to run wgpu.
These can either be created with init_setup
or init_setup_async
.
Fields§
§instance: Arc<Instance>
The underlying wgpu instance.
adapter: Arc<Adapter>
The selected ‘adapter’. This corresponds to a physical device.
device: Arc<Device>
The wgpu device Burn will use. Nb: There can only be one device per adapter.
queue: Arc<Queue>
The queue Burn commands will be submitted to.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more