[−][src]Struct rendy_command::CommandPool
Simple pool wrapper.
Doesn't provide any guarantees.
Wraps raw buffers into CommandCommand buffer
.
Methods
impl<B, C, R> CommandPool<B, C, R> where
B: Backend,
R: Reset,
[src]
B: Backend,
R: Reset,
pub unsafe fn from_raw(
raw: B::CommandPool,
capability: C,
reset: R,
family: FamilyId
) -> Self
[src]
raw: B::CommandPool,
capability: C,
reset: R,
family: FamilyId
) -> Self
Wrap raw command pool.
Safety
raw
must be valid command pool handle.- The command pool must be created for specified
family
index. capability
must be subset of capabilites of thefamily
the pool was created for.- if
reset
isIndividualReset
the pool must be created with individual command buffer reset flag set.
pub fn allocate_buffers<L: Level>(
&mut self,
count: usize
) -> Vec<CommandBuffer<B, C, InitialState, L, R>> where
L: Level,
C: Capability,
[src]
&mut self,
count: usize
) -> Vec<CommandBuffer<B, C, InitialState, L, R>> where
L: Level,
C: Capability,
Allocate new command buffers.
pub unsafe fn free_buffers(
&mut self,
buffers: impl IntoIterator<Item = CommandBuffer<B, C, impl Resettable, impl Level, R>>
)
[src]
&mut self,
buffers: impl IntoIterator<Item = CommandBuffer<B, C, impl Resettable, impl Level, R>>
)
Free buffers. Buffers must be in droppable state. TODO: Validate buffers were allocated from this pool.
pub unsafe fn reset(&mut self)
[src]
Reset all buffers of this pool.
Safety
All buffers allocated from this pool must be marked reset.
See [CommandBuffer::mark_reset
](struct.Command buffer.html#method.mark_reset)
pub unsafe fn dispose(
self,
device: &impl Device<B>
)
[src]
self,
device: &impl Device<B>
)
pub fn with_queue_type(self) -> CommandPool<B, QueueType, R> where
C: Capability,
[src]
C: Capability,
Convert capability level
pub fn with_capability<U>(self) -> Result<CommandPool<B, U, R>, Self> where
C: Supports<U>,
[src]
C: Supports<U>,
Convert capability level
Trait Implementations
Auto Trait Implementations
impl<B, C, R> Send for CommandPool<B, C, R> where
C: Send,
R: Send,
<B as Backend>::CommandPool: Send,
C: Send,
R: Send,
<B as Backend>::CommandPool: Send,
impl<B, C, R> Sync for CommandPool<B, C, R> where
C: Sync,
R: Sync,
<B as Backend>::CommandPool: Sync,
C: Sync,
R: Sync,
<B as Backend>::CommandPool: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.