pub enum Accelerator {
Vulkan,
}Expand description
A hardware backend that kernels can run on.
Variants§
Vulkan
Available on
docsrs or crate feature vulkan only.Runs kernels through the wgpu Vulkan backend.
This is the lightest and most portable option, because it works on any platform and GPU that supports basic compute shaders.
Trait Implementations§
Source§impl Clone for Accelerator
impl Clone for Accelerator
Source§fn clone(&self) -> Accelerator
fn clone(&self) -> Accelerator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Accelerator
Source§impl Debug for Accelerator
impl Debug for Accelerator
Source§impl Display for Accelerator
impl Display for Accelerator
impl Eq for Accelerator
Source§impl FromStr for Accelerator
impl FromStr for Accelerator
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<Accelerator, <Accelerator as FromStr>::Err>
fn from_str(s: &str) -> Result<Accelerator, <Accelerator as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl IntoEnumIterator for Accelerator
impl IntoEnumIterator for Accelerator
type Iterator = AcceleratorIter
fn iter() -> AcceleratorIter ⓘ
Source§impl PartialEq for Accelerator
impl PartialEq for Accelerator
impl StructuralPartialEq for Accelerator
Source§impl TryFrom<&str> for Accelerator
impl TryFrom<&str> for Accelerator
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<Accelerator, <Accelerator as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<Accelerator, <Accelerator as TryFrom<&str>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for Accelerator
impl RefUnwindSafe for Accelerator
impl Send for Accelerator
impl Sync for Accelerator
impl Unpin for Accelerator
impl UnsafeUnpin for Accelerator
impl UnwindSafe for Accelerator
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.