[][src]Struct wgpu_conveyor::AutomatedBufferManager

pub struct AutomatedBufferManager { /* fields omitted */ }

Creates and manages all running AutomatedBuffers.

Responsible for making sure the belts are properly pumped.

pump must be called after all buffers are written to, and it's futures spawned on an executor that will run them concurrently.

Implementations

impl AutomatedBufferManager[src]

#[must_use]pub const fn new(style: UploadStyle) -> Self[src]

pub fn create_new_buffer(
    &mut self,
    device: &Device,
    size: BufferAddress,
    usage: BufferUsage,
    label: Option<impl Into<String> + Borrow<str>>
) -> AutomatedBuffer
[src]

pub fn pump(&mut self) -> Vec<impl Future<Output = ()>>[src]

Must be called after all buffers are written to and the returned futures must be spawned on an executor that will run them concurrently.

If they are not polled, the belts will just constantly leak memory as the futures allow the belts to reuse buffers.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.