Struct burn_wgpu::compute::WgpuStorage
source · pub struct WgpuStorage { /* private fields */ }Expand description
Buffer storage for wgpu.
Implementations§
source§impl WgpuStorage
impl WgpuStorage
Keeps actual wgpu buffer references in a hashmap with ids as key.
Trait Implementations§
source§impl ComputeStorage for WgpuStorage
impl ComputeStorage for WgpuStorage
§type Resource = WgpuResource
type Resource = WgpuResource
The resource associated type determines the way data is implemented and how
it can be accessed by kernels.
source§fn get(&mut self, handle: &StorageHandle) -> Self::Resource
fn get(&mut self, handle: &StorageHandle) -> Self::Resource
Returns the underlying resource for a specified storage handle
source§fn alloc(&mut self, size: usize) -> StorageHandle
fn alloc(&mut self, size: usize) -> StorageHandle
Allocates
size units of memory and returns a handle to itAuto Trait Implementations§
impl !RefUnwindSafe for WgpuStorage
impl Send for WgpuStorage
impl Sync for WgpuStorage
impl Unpin for WgpuStorage
impl !UnwindSafe for WgpuStorage
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