Struct vulkano::command_buffer::AutoCommandBuffer
source · pub struct AutoCommandBuffer<P = StandardCommandPoolAlloc> { /* private fields */ }
Trait Implementations
sourceimpl<P> CommandBuffer for AutoCommandBuffer<P>
impl<P> CommandBuffer for AutoCommandBuffer<P>
type PoolAlloc = P
type PoolAlloc = P
The command pool of the command buffer.
sourcefn inner(&self) -> &UnsafeCommandBuffer<P>
fn inner(&self) -> &UnsafeCommandBuffer<P>
Returns the underlying
UnsafeCommandBuffer
of this command buffer.sourcefn lock_submit(
&self,
future: &dyn GpuFuture,
queue: &Queue
) -> Result<(), CommandBufferExecError>
fn lock_submit(
&self,
future: &dyn GpuFuture,
queue: &Queue
) -> Result<(), CommandBufferExecError>
Checks whether this command buffer is allowed to be submitted after the
future
and on
the given queue, and if so locks it. Read moresourceunsafe fn unlock(&self)
unsafe fn unlock(&self)
Unlocks the command buffer. Should be called once for each call to
lock_submit
. Read morefn check_buffer_access(
&self,
buffer: &dyn BufferAccess,
exclusive: bool,
queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlagBits)>, AccessCheckError>
fn check_image_access(
&self,
image: &dyn ImageAccess,
layout: ImageLayout,
exclusive: bool,
queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlagBits)>, AccessCheckError>
sourcefn execute(
self,
queue: Arc<Queue>
) -> Result<CommandBufferExecFuture<NowFuture, Self>, CommandBufferExecError>where
Self: Sized + 'static,
fn execute(
self,
queue: Arc<Queue>
) -> Result<CommandBufferExecFuture<NowFuture, Self>, CommandBufferExecError>where
Self: Sized + 'static,
Executes this command buffer on a queue. Read more
sourcefn execute_after<F>(
self,
future: F,
queue: Arc<Queue>
) -> Result<CommandBufferExecFuture<F, Self>, CommandBufferExecError>where
Self: Sized + 'static,
F: GpuFuture,
fn execute_after<F>(
self,
future: F,
queue: Arc<Queue>
) -> Result<CommandBufferExecFuture<F, Self>, CommandBufferExecError>where
Self: Sized + 'static,
F: GpuFuture,
Executes the command buffer after an existing future. Read more
sourceimpl<P> DeviceOwned for AutoCommandBuffer<P>
impl<P> DeviceOwned for AutoCommandBuffer<P>
Auto Trait Implementations
impl<P = StandardCommandPoolAlloc> !RefUnwindSafe for AutoCommandBuffer<P>
impl<P> Send for AutoCommandBuffer<P>where
P: Send,
impl<P> Sync for AutoCommandBuffer<P>where
P: Sync,
impl<P> Unpin for AutoCommandBuffer<P>where
P: Unpin,
impl<P = StandardCommandPoolAlloc> !UnwindSafe for AutoCommandBuffer<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.