Struct wgpu_core::scratch::ScratchBuffer
source · pub struct ScratchBuffer {
raw: ManuallyDrop<Box<dyn DynBuffer>>,
device: Arc<Device>,
}
Fields§
§raw: ManuallyDrop<Box<dyn DynBuffer>>
§device: Arc<Device>
Implementations§
source§impl ScratchBuffer
impl ScratchBuffer
pub(crate) fn new( device: &Arc<Device>, size: BufferSize, ) -> Result<Self, DeviceError>
pub(crate) fn raw(&self) -> &dyn DynBuffer
Trait Implementations§
source§impl Debug for ScratchBuffer
impl Debug for ScratchBuffer
Auto Trait Implementations§
impl Freeze for ScratchBuffer
impl !RefUnwindSafe for ScratchBuffer
impl Send for ScratchBuffer
impl Sync for ScratchBuffer
impl Unpin for ScratchBuffer
impl !UnwindSafe for ScratchBuffer
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