pub struct WgpuResource {
pub buffer: Buffer,
pub offset: u64,
pub size: u64,
}Expand description
The memory resource that can be allocated for wgpu.
Fields§
§buffer: BufferThe wgpu buffer.
offset: u64The buffer offset.
size: u64Implementations§
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.
Trait Implementations§
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