Trait Vulkan Operation ExtManual
Source pub trait VulkanOperationExtManual: IsA<VulkanOperation> + 'static {
// Provided method
fn begin<'a>(&'a self) -> Result<VulkanOperationGuard<'a>, Error> { ... }
}Provided Methods§
Sourcefn begin<'a>(&'a self) -> Result<VulkanOperationGuard<'a>, Error>
fn begin<'a>(&'a self) -> Result<VulkanOperationGuard<'a>, Error>
Returns a guard struct for the begun operation.
The end method on the guard must be called; Dropping it without results in a panic
See also: [end()][Self::end()] and VulkanOperationExt::reset()
Attempts to set the operation ready to work. It instantiates the common
command buffer in self and calls vkBeginCommandBuffer.
After calling this function you can register commands in the command buffer,
and finally call [end()][Self::end()]. VulkanOperationExt::reset() is
called internally if something failed.
§Returns
whether the operation started. It might fill error.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.