Struct wgpu_core::device::CommandAllocator
source · struct CommandAllocator<A: Api> {
free_encoders: Vec<A::CommandEncoder>,
}
Fields§
§free_encoders: Vec<A::CommandEncoder>
Implementations§
source§impl<A: Api> CommandAllocator<A>
impl<A: Api> CommandAllocator<A>
fn acquire_encoder( &mut self, device: &A::Device, queue: &A::Queue ) -> Result<A::CommandEncoder, DeviceError>
fn release_encoder(&mut self, encoder: A::CommandEncoder)
fn dispose(self, device: &A::Device)
Auto Trait Implementations§
impl<A> RefUnwindSafe for CommandAllocator<A>where <A as Api>::CommandEncoder: RefUnwindSafe,
impl<A> Send for CommandAllocator<A>
impl<A> Sync for CommandAllocator<A>
impl<A> Unpin for CommandAllocator<A>where <A as Api>::CommandEncoder: Unpin,
impl<A> UnwindSafe for CommandAllocator<A>where <A as Api>::CommandEncoder: UnwindSafe,
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