Struct wgpu_util::BufferPool [−][src]
pub struct BufferPool { /* fields omitted */ }
A wgpu::Buffer
Pool (dynamic supply).
Implementations
impl BufferPool
[src]
impl BufferPool
[src]pub fn new(descriptor: &BufferPoolDescriptor<'_>) -> Self
[src]
pub fn new(descriptor: &BufferPoolDescriptor<'_>) -> Self
[src]Creates a new empty pool.
pub fn upload(
&mut self,
device: &Device,
queue: &Queue,
contents: &[u8]
) -> usize
[src]
pub fn upload(
&mut self,
device: &Device,
queue: &Queue,
contents: &[u8]
) -> usize
[src]Upload contents to a vacant buffer.
Returns buffer index. If no vacant buffer is available, a new one is allocated.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for BufferPool
impl Send for BufferPool
impl Sync for BufferPool
impl Unpin for BufferPool
impl !UnwindSafe for BufferPool
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more