pub struct CommandBundle<Device: Device> {
pub buffers: Vec<VkCommandBuffer>,
pub pool: VkCommandPool,
pub device: Device,
}
Fields§
§buffers: Vec<VkCommandBuffer>
§pool: VkCommandPool
§device: Device
Implementations§
Source§impl<Device: Device> CommandBundle<Device>
impl<Device: Device> CommandBundle<Device>
pub unsafe fn reset(&mut self) -> Result<()>
pub fn iter(&self) -> CommandBundleBufferIter<'_, Device>
pub fn iter_mut(&mut self) -> CommandBundleBufferIterMut<'_, Device>
pub fn nth_ref(&self, n: usize) -> CommandBundleBufferRef<'_, Device>
pub fn synchronized_nth( &mut self, n: usize, ) -> SynchronizedCommandBuffer<'_, '_>
Trait Implementations§
Source§impl<Device: Device> Drop for CommandBundle<Device>
impl<Device: Device> Drop for CommandBundle<Device>
impl<Device: Device + Send> Send for CommandBundle<Device>
impl<Device: Device + Sync> Sync for CommandBundle<Device>
Auto Trait Implementations§
impl<Device> Freeze for CommandBundle<Device>where
Device: Freeze,
impl<Device> RefUnwindSafe for CommandBundle<Device>where
Device: RefUnwindSafe,
impl<Device> Unpin for CommandBundle<Device>where
Device: Unpin,
impl<Device> UnwindSafe for CommandBundle<Device>where
Device: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more