Struct vulkano::command_buffer::synced::SyncCommandBuffer
source · [−]pub struct SyncCommandBuffer { /* private fields */ }
Expand description
Command buffer built from a SyncCommandBufferBuilder
that provides utilities to handle
synchronization.
Implementations
sourceimpl SyncCommandBuffer
impl SyncCommandBuffer
sourcepub fn check_buffer_access(
&self,
buffer: &Buffer,
range: Range<DeviceSize>,
exclusive: bool,
_queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlags)>, AccessCheckError>
pub fn check_buffer_access(
&self,
buffer: &Buffer,
range: Range<DeviceSize>,
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.
sourcepub fn check_image_access(
&self,
image: &Image,
range: Range<DeviceSize>,
exclusive: bool,
expected_layout: ImageLayout,
_queue: &Queue
) -> Result<Option<(PipelineStages, AccessFlags)>, AccessCheckError>
pub fn check_image_access(
&self,
image: &Image,
range: Range<DeviceSize>,
exclusive: bool,
expected_layout: ImageLayout,
_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 num_buffers(&self) -> usize
pub fn buffer(
&self,
index: usize
) -> Option<(&Arc<dyn BufferAccess>, Range<DeviceSize>, PipelineMemoryAccess)>
pub fn num_images(&self) -> usize
pub fn image(
&self,
index: usize
) -> Option<(&Arc<dyn ImageAccess>, &ImageSubresourceRange, PipelineMemoryAccess, ImageLayout, ImageLayout)>
Trait Implementations
sourceimpl AsRef<UnsafeCommandBuffer> for SyncCommandBuffer
impl AsRef<UnsafeCommandBuffer> for SyncCommandBuffer
sourcefn as_ref(&self) -> &UnsafeCommandBuffer
fn as_ref(&self) -> &UnsafeCommandBuffer
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl DeviceOwned for SyncCommandBuffer
impl DeviceOwned for SyncCommandBuffer
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
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