pub struct SizedBuffer {
pub size: BufferAddress,
pub buffer: Buffer,
}
Expand description
Thin wgpu::Buffer
wrapper with size.
Fields§
§size: BufferAddress
§buffer: Buffer
Implementations§
Source§impl SizedBuffer
impl SizedBuffer
pub fn new(size: BufferAddress, buffer: Buffer) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SizedBuffer
impl !RefUnwindSafe for SizedBuffer
impl Send for SizedBuffer
impl Sync for SizedBuffer
impl Unpin for SizedBuffer
impl !UnwindSafe for SizedBuffer
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