pub struct WgpuDevice { /* private fields */ }Expand description
Portable GPU device backed by wgpu.
Implementations§
Source§impl WgpuDevice
impl WgpuDevice
Sourcepub fn default_adapter() -> Self
pub fn default_adapter() -> Self
Creates the default wgpu-backed device placeholder.
Full adapter selection is implemented in later GPU milestones.
Trait Implementations§
Source§impl Clone for WgpuDevice
impl Clone for WgpuDevice
Source§fn clone(&self) -> WgpuDevice
fn clone(&self) -> WgpuDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WgpuDevice
impl Debug for WgpuDevice
Source§impl Device for WgpuDevice
impl Device for WgpuDevice
Source§fn kind(&self) -> DeviceKind
fn kind(&self) -> DeviceKind
Returns the kind of this device.
Source§impl Hash for WgpuDevice
impl Hash for WgpuDevice
Source§impl PartialEq for WgpuDevice
impl PartialEq for WgpuDevice
impl Eq for WgpuDevice
impl GpuDevice for WgpuDevice
impl StructuralPartialEq for WgpuDevice
Auto Trait Implementations§
impl Freeze for WgpuDevice
impl RefUnwindSafe for WgpuDevice
impl Send for WgpuDevice
impl Sync for WgpuDevice
impl Unpin for WgpuDevice
impl UnsafeUnpin for WgpuDevice
impl UnwindSafe for WgpuDevice
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more