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