Struct vulkano::command_buffer::synced::SyncCommandBuffer
source · pub struct SyncCommandBuffer<P> { /* private fields */ }
Expand description
Command buffer built from a SyncCommandBufferBuilder
that provides utilities to handle
synchronization.
Implementations
sourceimpl<P> SyncCommandBuffer<P>
impl<P> SyncCommandBuffer<P>
sourcepub fn lock_submit(
&self,
future: &dyn GpuFuture,
queue: &Queue
) -> Result<(), CommandBufferExecError>
pub fn lock_submit(
&self,
future: &dyn GpuFuture,
queue: &Queue
) -> Result<(), CommandBufferExecError>
Tries to lock the resources used by the command buffer.
Note: You should call this in the implementation of the
CommandBuffer
trait.
sourcepub unsafe fn unlock(&self)
pub unsafe fn unlock(&self)
Unlocks the resources used by the command buffer.
Note: You should call this in the implementation of the
CommandBuffer
trait.
Safety
The command buffer must have been successfully locked with lock_submit()
.
sourcepub fn check_buffer_access(
&self,
buffer: &dyn BufferAccess,
exclusive: bool,
queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlagBits)>, AccessCheckError>
pub fn check_buffer_access(
&self,
buffer: &dyn BufferAccess,
exclusive: bool,
queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlagBits)>, AccessCheckError>
Checks whether this command buffer has access to a buffer.
Note: Suitable when implementing the
CommandBuffer
trait.
sourcepub fn check_image_access(
&self,
image: &dyn ImageAccess,
layout: ImageLayout,
exclusive: bool,
queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlagBits)>, AccessCheckError>
pub fn check_image_access(
&self,
image: &dyn ImageAccess,
layout: ImageLayout,
exclusive: bool,
queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlagBits)>, AccessCheckError>
Checks whether this command buffer has access to an image.
Note: Suitable when implementing the
CommandBuffer
trait.
Trait Implementations
sourceimpl<P> AsRef<UnsafeCommandBuffer<P>> for SyncCommandBuffer<P>
impl<P> AsRef<UnsafeCommandBuffer<P>> for SyncCommandBuffer<P>
sourcefn as_ref(&self) -> &UnsafeCommandBuffer<P>
fn as_ref(&self) -> &UnsafeCommandBuffer<P>
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl<P> DeviceOwned for SyncCommandBuffer<P>
impl<P> DeviceOwned for SyncCommandBuffer<P>
Auto Trait Implementations
impl<P> !RefUnwindSafe for SyncCommandBuffer<P>
impl<P> Send for SyncCommandBuffer<P>where
P: Send,
impl<P> Sync for SyncCommandBuffer<P>where
P: Sync,
impl<P> Unpin for SyncCommandBuffer<P>where
P: Unpin,
impl<P> !UnwindSafe for SyncCommandBuffer<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.