pub enum AutoCommandBufferBuilderContextError {
ForbiddenInSecondary,
ForbiddenInsideRenderPass,
ForbiddenOutsideRenderPass,
NotSupportedByQueueFamily,
NumSubpassesMismatch {
actual: u32,
current: u32,
},
WrongSubpassType,
WrongSubpassIndex,
IncompatibleRenderPass,
}
Variants
ForbiddenInSecondary
Operation forbidden in a secondary command buffer.
ForbiddenInsideRenderPass
Operation forbidden inside of a render pass.
ForbiddenOutsideRenderPass
Operation forbidden outside of a render pass.
NotSupportedByQueueFamily
The queue family doesn’t allow this operation.
NumSubpassesMismatch
Fields
actual: u32
Actual number of subpasses in the current render pass.
current: u32
Current subpass index before the failing command.
Tried to end a render pass with subpasses remaining, or tried to go to next subpass with no subpass remaining.
WrongSubpassType
Tried to execute a secondary command buffer inside a subpass that only allows inline commands, or a draw command in a subpass that only allows secondary command buffers.
WrongSubpassIndex
Tried to use a graphics pipeline whose subpass index didn’t match the current subpass index.
IncompatibleRenderPass
Tried to use a graphics pipeline whose render pass is incompatible with the current render pass.
Trait Implementations
sourceimpl Clone for AutoCommandBufferBuilderContextError
impl Clone for AutoCommandBufferBuilderContextError
sourcefn clone(&self) -> AutoCommandBufferBuilderContextError
fn clone(&self) -> AutoCommandBufferBuilderContextError
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more