Struct vulkano::command_buffer::synced::SyncCommandBuffer
[−]
[src]
pub struct SyncCommandBuffer<P> { /* fields omitted */ }
Command buffer built from a SyncCommandBufferBuilder
that provides utilities to handle
synchronization.
Methods
impl<P> SyncCommandBuffer<P>
[src]
pub fn lock_submit(
&self,
future: &GpuFuture,
queue: &Queue
) -> Result<(), CommandBufferExecError>
[src]
&self,
future: &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.
pub unsafe fn unlock(&self)
[src]
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()
.
pub fn check_buffer_access(
&self,
buffer: &BufferAccess,
exclusive: bool,
queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlagBits)>, AccessCheckError>
[src]
&self,
buffer: &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.
pub fn check_image_access(
&self,
image: &ImageAccess,
layout: ImageLayout,
exclusive: bool,
queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlagBits)>, AccessCheckError>
[src]
&self,
image: &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
impl<P> AsRef<UnsafeCommandBuffer<P>> for SyncCommandBuffer<P>
[src]
fn as_ref(&self) -> &UnsafeCommandBuffer<P>
[src]
Performs the conversion.
impl<P> DeviceOwned for SyncCommandBuffer<P>
[src]
Auto Trait Implementations
impl<P> Send for SyncCommandBuffer<P> where
P: Send,
P: Send,
impl<P> Sync for SyncCommandBuffer<P> where
P: Sync,
P: Sync,