Trait vulkano::command_buffer::SecondaryCommandBuffer[][src]

pub unsafe trait SecondaryCommandBuffer: DeviceOwned {
    fn inner(&self) -> &UnsafeCommandBuffer;
fn lock_record(&self) -> Result<(), CommandBufferExecError>;
unsafe fn unlock(&self);
fn inheritance(&self) -> CommandBufferInheritance<&dyn FramebufferAbstract>;
fn num_buffers(&self) -> usize;
fn buffer(
        &self,
        index: usize
    ) -> Option<(&dyn BufferAccess, PipelineMemoryAccess)>;
fn num_images(&self) -> usize;
fn image(
        &self,
        index: usize
    ) -> Option<(&dyn ImageAccess, PipelineMemoryAccess, ImageLayout, ImageLayout)>; }

Required methods

fn inner(&self) -> &UnsafeCommandBuffer[src]

Returns the underlying UnsafeCommandBuffer of this command buffer.

fn lock_record(&self) -> Result<(), CommandBufferExecError>[src]

Checks whether this command buffer is allowed to be recorded to a command buffer, and if so locks it.

If you call this function, then you should call unlock afterwards.

unsafe fn unlock(&self)[src]

Unlocks the command buffer. Should be called once for each call to lock_record.

Safety

Must not be called if you haven’t called lock_record before.

fn inheritance(&self) -> CommandBufferInheritance<&dyn FramebufferAbstract>[src]

Returns a CommandBufferInheritance value describing the properties that the command buffer inherits from its parent primary command buffer.

fn num_buffers(&self) -> usize[src]

Returns the number of buffers accessed by this command buffer.

fn buffer(
    &self,
    index: usize
) -> Option<(&dyn BufferAccess, PipelineMemoryAccess)>
[src]

Returns the indexth buffer of this command buffer, or None if out of range.

The valid range is between 0 and num_buffers().

fn num_images(&self) -> usize[src]

Returns the number of images accessed by this command buffer.

fn image(
    &self,
    index: usize
) -> Option<(&dyn ImageAccess, PipelineMemoryAccess, ImageLayout, ImageLayout)>
[src]

Returns the indexth image of this command buffer, or None if out of range.

The valid range is between 0 and num_images().

Loading content...

Implementors

Loading content...