pub struct VramPool { /* private fields */ }Implementations§
Source§impl VramPool
impl VramPool
pub fn new( _stream: (), _memory_config: GpuMemoryConfig, _config: VramPoolConfig, ) -> Self
pub fn allocate(&self, _size: usize) -> Result<VramHandle, GpuError>
pub fn free(&self, _handle: VramHandle) -> Result<(), GpuError>
pub fn upload(&self, _handle: &VramHandle, _data: &[u8]) -> Result<(), GpuError>
pub fn download(&self, _handle: &VramHandle) -> Result<Vec<u8>, GpuError>
Auto Trait Implementations§
impl Freeze for VramPool
impl RefUnwindSafe for VramPool
impl Send for VramPool
impl Sync for VramPool
impl Unpin for VramPool
impl UnwindSafe for VramPool
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