[−][src]Struct gpu_alloc_erupt::EruptMemoryDevice
Implementations
impl EruptMemoryDevice
[src]
pub fn wrap(device: &DeviceLoader) -> &Self
[src]
Trait Implementations
impl MemoryDevice<DeviceMemory> for EruptMemoryDevice
[src]
pub unsafe fn allocate_memory(
&self,
size: u64,
memory_type: u32,
flags: AllocationFlags
) -> Result<DeviceMemory, OutOfMemory>
[src]
&self,
size: u64,
memory_type: u32,
flags: AllocationFlags
) -> Result<DeviceMemory, OutOfMemory>
pub unsafe fn deallocate_memory(&self, memory: DeviceMemory)
[src]
pub unsafe fn map_memory(
&self,
memory: &mut DeviceMemory,
offset: u64,
size: u64
) -> Result<NonNull<u8>, DeviceMapError>
[src]
&self,
memory: &mut DeviceMemory,
offset: u64,
size: u64
) -> Result<NonNull<u8>, DeviceMapError>
pub unsafe fn unmap_memory(&self, memory: &mut DeviceMemory)
[src]
pub unsafe fn invalidate_memory_ranges(
&self,
ranges: &[MappedMemoryRange<'_, DeviceMemory>]
) -> Result<(), OutOfMemory>
[src]
&self,
ranges: &[MappedMemoryRange<'_, DeviceMemory>]
) -> Result<(), OutOfMemory>
pub unsafe fn flush_memory_ranges(
&self,
ranges: &[MappedMemoryRange<'_, DeviceMemory>]
) -> Result<(), OutOfMemory>
[src]
&self,
ranges: &[MappedMemoryRange<'_, DeviceMemory>]
) -> Result<(), OutOfMemory>
Auto Trait Implementations
impl RefUnwindSafe for EruptMemoryDevice
[src]
impl Send for EruptMemoryDevice
[src]
impl Sync for EruptMemoryDevice
[src]
impl Unpin for EruptMemoryDevice
[src]
impl UnwindSafe for EruptMemoryDevice
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,