pub enum OidnDeviceType {
Default,
Cpu,
Sycl,
Cuda,
Hip,
Metal,
}Expand description
OIDN device type (CPU, GPU backends, or default auto-select).
Variants§
Default
Auto-select best available (e.g. CUDA if built and available).
Cpu
CPU only (most portable).
Sycl
Intel GPU/CPU via SYCL (oneAPI). Requires OIDN built with SYCL.
Cuda
NVIDIA GPU via CUDA. Requires OIDN built with CUDA.
Hip
AMD GPU via HIP. Requires OIDN built with HIP.
Metal
Apple GPU via Metal. Requires OIDN built with Metal.
Trait Implementations§
Source§impl Clone for OidnDeviceType
impl Clone for OidnDeviceType
Source§fn clone(&self) -> OidnDeviceType
fn clone(&self) -> OidnDeviceType
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 OidnDeviceType
impl Debug for OidnDeviceType
Source§impl Default for OidnDeviceType
impl Default for OidnDeviceType
Source§fn default() -> OidnDeviceType
fn default() -> OidnDeviceType
Returns the “default value” for a type. Read more
impl Copy for OidnDeviceType
Auto Trait Implementations§
impl Freeze for OidnDeviceType
impl RefUnwindSafe for OidnDeviceType
impl Send for OidnDeviceType
impl Sync for OidnDeviceType
impl Unpin for OidnDeviceType
impl UnwindSafe for OidnDeviceType
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