pub struct GpuResourceManager { /* private fields */ }Expand description
GPU resource manager
Implementations§
Source§impl GpuResourceManager
impl GpuResourceManager
Sourcepub fn allocate_gpu(&mut self, device_count: usize) -> SklResult<GpuAllocation>
pub fn allocate_gpu(&mut self, device_count: usize) -> SklResult<GpuAllocation>
Allocate GPU resources
Sourcepub fn release_gpu(&mut self, allocation: &GpuAllocation) -> SklResult<()>
pub fn release_gpu(&mut self, allocation: &GpuAllocation) -> SklResult<()>
Release GPU allocation
Trait Implementations§
Source§impl Debug for GpuResourceManager
impl Debug for GpuResourceManager
Auto Trait Implementations§
impl Freeze for GpuResourceManager
impl RefUnwindSafe for GpuResourceManager
impl Send for GpuResourceManager
impl Sync for GpuResourceManager
impl Unpin for GpuResourceManager
impl UnwindSafe for GpuResourceManager
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> 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