[−][src]Struct wgpu_conveyor::AutomatedBufferManager
Creates and manages all running AutomatedBuffer
s.
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]
&mut self,
device: &Device,
size: BufferAddress,
usage: BufferUsage,
label: Option<impl Into<String> + Borrow<str>>
) -> AutomatedBuffer
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
impl !RefUnwindSafe for AutomatedBufferManager
impl Send for AutomatedBufferManager
impl Sync for AutomatedBufferManager
impl Unpin for AutomatedBufferManager
impl !UnwindSafe for AutomatedBufferManager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,