[−][src]Struct gpu_alloc_gfx::GfxMemoryDevice
Implementations
impl<B> GfxMemoryDevice<B> where
B: Backend,
[src]
B: Backend,
Trait Implementations
impl<B> MemoryDevice<Arc<<B as Backend>::Memory>> for GfxMemoryDevice<B> where
B: Backend,
[src]
B: Backend,
unsafe fn allocate_memory(
&self,
size: u64,
memory_type: u32,
flags: AllocationFlags
) -> Result<Arc<B::Memory>, OutOfMemory>
[src]
&self,
size: u64,
memory_type: u32,
flags: AllocationFlags
) -> Result<Arc<B::Memory>, OutOfMemory>
unsafe fn deallocate_memory(&self, memory: Arc<B::Memory>)
[src]
unsafe fn map_memory(
&self,
memory: &Arc<B::Memory>,
offset: u64,
size: u64
) -> Result<NonNull<u8>, DeviceMapError>
[src]
&self,
memory: &Arc<B::Memory>,
offset: u64,
size: u64
) -> Result<NonNull<u8>, DeviceMapError>
unsafe fn unmap_memory(&self, memory: &Arc<B::Memory>)
[src]
unsafe fn invalidate_memory_ranges(
&self,
ranges: &[MappedMemoryRange<'_, Arc<B::Memory>>]
) -> Result<(), OutOfMemory>
[src]
&self,
ranges: &[MappedMemoryRange<'_, Arc<B::Memory>>]
) -> Result<(), OutOfMemory>
unsafe fn flush_memory_ranges(
&self,
ranges: &[MappedMemoryRange<'_, Arc<B::Memory>>]
) -> Result<(), OutOfMemory>
[src]
&self,
ranges: &[MappedMemoryRange<'_, Arc<B::Memory>>]
) -> Result<(), OutOfMemory>
Auto Trait Implementations
impl<B> RefUnwindSafe for GfxMemoryDevice<B> where
<B as Backend>::Device: RefUnwindSafe,
<B as Backend>::Device: RefUnwindSafe,
impl<B> Send for GfxMemoryDevice<B> where
<B as Backend>::Device: Send,
<B as Backend>::Device: Send,
impl<B> Sync for GfxMemoryDevice<B> where
<B as Backend>::Device: Sync,
<B as Backend>::Device: Sync,
impl<B> Unpin for GfxMemoryDevice<B> where
<B as Backend>::Device: Unpin,
<B as Backend>::Device: Unpin,
impl<B> UnwindSafe for GfxMemoryDevice<B> where
<B as Backend>::Device: UnwindSafe,
<B as Backend>::Device: UnwindSafe,
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>,