pub enum MemLocation {
KeepInPlace,
AllocOnDevice,
CopyToDevice,
ForceCopyToDevice,
}Expand description
The enumeration of how memory allocation (or not) can be directed.
This forum post has some good explanations: https://software.intel.com/en-us/forums/opencl/topic/708049
Variants§
Trait Implementations§
Source§impl From<MemLocation> for MemFlags
impl From<MemLocation> for MemFlags
Source§fn from(mem_location: MemLocation) -> MemFlags
fn from(mem_location: MemLocation) -> MemFlags
Converts to this type from the input type.
Source§impl From<MemLocation> for MemLocationMemFlags
impl From<MemLocation> for MemLocationMemFlags
Source§fn from(mem_location: MemLocation) -> MemLocationMemFlags
fn from(mem_location: MemLocation) -> MemLocationMemFlags
Converts to this type from the input type.
Source§impl From<MemLocation> for cl_mem_flags
impl From<MemLocation> for cl_mem_flags
Source§fn from(mem_location: MemLocation) -> cl_mem_flags
fn from(mem_location: MemLocation) -> cl_mem_flags
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MemLocation
impl RefUnwindSafe for MemLocation
impl Send for MemLocation
impl Sync for MemLocation
impl Unpin for MemLocation
impl UnwindSafe for MemLocation
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