pub struct GpuManager { /* private fields */ }Expand description
GPU manager for handling multiple devices and backends
Implementations§
Source§impl GpuManager
impl GpuManager
pub fn new() -> Self
Sourcepub fn initialize(&mut self) -> Result<(), SimdError>
pub fn initialize(&mut self) -> Result<(), SimdError>
Initialize GPU manager and detect available devices
Sourcepub fn get_devices(&self) -> Vec<GpuDevice>
pub fn get_devices(&self) -> Vec<GpuDevice>
Get available GPU devices
Sourcepub fn get_best_device(&self) -> Option<GpuDevice>
pub fn get_best_device(&self) -> Option<GpuDevice>
Get the best available device
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Check if GPU acceleration is available
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GpuManager
impl !UnwindSafe for GpuManager
impl Freeze for GpuManager
impl Send for GpuManager
impl Sync for GpuManager
impl Unpin for GpuManager
impl UnsafeUnpin for GpuManager
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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