pub struct WgpuResource {
pub buffer: Arc<Buffer>,
/* private fields */
}
Expand description
The memory resource that can be allocated for wgpu.
Fields§
§buffer: Arc<Buffer>
The wgpu buffer.
Implementations§
Source§impl WgpuResource
impl WgpuResource
Source§impl WgpuResource
impl WgpuResource
Sourcepub fn as_wgpu_bind_resource(&self) -> BindingResource<'_>
pub fn as_wgpu_bind_resource(&self) -> BindingResource<'_>
Return the binding view of the buffer.
Auto Trait Implementations§
impl Freeze for WgpuResource
impl !RefUnwindSafe for WgpuResource
impl Send for WgpuResource
impl Sync for WgpuResource
impl Unpin for WgpuResource
impl !UnwindSafe for WgpuResource
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