SecondaryCommandBufferAbstract

Trait SecondaryCommandBufferAbstract 

Source
pub unsafe trait SecondaryCommandBufferAbstract:
    VulkanObject<Handle = CommandBuffer>
    + DeviceOwned
    + Send
    + Sync {
    // Required methods
    fn usage(&self) -> CommandBufferUsage;
    fn inheritance_info(&self) -> &CommandBufferInheritanceInfo;
    fn lock_record(&self) -> Result<(), Box<ValidationError>>;
    unsafe fn unlock(&self);
}

Required Methods§

Source

fn usage(&self) -> CommandBufferUsage

Returns the usage of this command buffer.

Source

fn inheritance_info(&self) -> &CommandBufferInheritanceInfo

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

Source

fn lock_record(&self) -> Result<(), Box<ValidationError>>

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.

Source

unsafe fn unlock(&self)

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.

Implementors§