Struct vulkano::command_buffer::synced::SyncCommandBuffer [−][src]
pub struct SyncCommandBuffer { /* fields omitted */ }
Expand description
Command buffer built from a SyncCommandBufferBuilder
that provides utilities to handle
synchronization.
Implementations
pub 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.
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: &dyn BufferAccess,
exclusive: bool,
queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlags)>, AccessCheckError>
pub fn check_buffer_access(
&self,
buffer: &dyn BufferAccess,
exclusive: bool,
queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlags)>, 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: &dyn ImageAccess,
layout: ImageLayout,
exclusive: bool,
queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlags)>, AccessCheckError>
pub fn check_image_access(
&self,
image: &dyn ImageAccess,
layout: ImageLayout,
exclusive: bool,
queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlags)>, AccessCheckError>
Checks whether this command buffer has access to an image.
Note: Suitable when implementing the
CommandBuffer
trait.
pub fn image(
&self,
index: usize
) -> Option<(&dyn ImageAccess, PipelineMemoryAccess, ImageLayout, ImageLayout, ImageUninitializedSafe)>
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SyncCommandBuffer
impl Send for SyncCommandBuffer
impl Sync for SyncCommandBuffer
impl Unpin for SyncCommandBuffer
impl !UnwindSafe for SyncCommandBuffer
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.