pub enum DispatchAdapter {
Core(Arc<CoreAdapter>),
Custom(DynAdapter),
}
Available on
custom
only.Variants§
Implementations§
Source§impl DispatchAdapter
impl DispatchAdapter
pub fn as_core(&self) -> &CoreAdapter
Available on
wgpu_core
only.pub fn as_core_opt(&self) -> Option<&CoreAdapter>
Available on
wgpu_core
only.pub fn custom<T: AdapterInterface>(t: T) -> Self
Trait Implementations§
Source§impl Clone for DispatchAdapter
impl Clone for DispatchAdapter
Source§fn clone(&self) -> DispatchAdapter
fn clone(&self) -> DispatchAdapter
Returns a copy 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 DispatchAdapter
impl Debug for DispatchAdapter
Source§impl Deref for DispatchAdapter
impl Deref for DispatchAdapter
Source§impl From<CoreAdapter> for DispatchAdapter
Available on wgpu_core
only.
impl From<CoreAdapter> for DispatchAdapter
Available on
wgpu_core
only.Source§fn from(value: CoreAdapter) -> Self
fn from(value: CoreAdapter) -> Self
Converts to this type from the input type.
Source§impl Hash for DispatchAdapter
impl Hash for DispatchAdapter
Source§impl Ord for DispatchAdapter
impl Ord for DispatchAdapter
Source§fn cmp(&self, other: &DispatchAdapter) -> Ordering
fn cmp(&self, other: &DispatchAdapter) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DispatchAdapter
impl PartialEq for DispatchAdapter
Source§impl PartialOrd for DispatchAdapter
impl PartialOrd for DispatchAdapter
impl Eq for DispatchAdapter
impl StructuralPartialEq for DispatchAdapter
Auto Trait Implementations§
impl Freeze for DispatchAdapter
impl !RefUnwindSafe for DispatchAdapter
impl Send for DispatchAdapter
impl Sync for DispatchAdapter
impl Unpin for DispatchAdapter
impl !UnwindSafe for DispatchAdapter
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.