Enum vulkano::pipeline::graphics::GraphicsPipelineCreationError [−][src]
pub enum GraphicsPipelineCreationError {
Show 31 variants
ExtensionNotEnabled {
extension: &'static str,
reason: &'static str,
},
FeatureNotEnabled {
feature: &'static str,
reason: &'static str,
},
FragmentShaderRenderPassIncompatible,
IncompatiblePipelineLayout(PipelineLayoutSupersetError),
IncompatibleSpecializationConstants,
IncompatibleVertexDefinition(IncompatibleVertexDefinitionError),
InvalidPrimitiveTopology,
InvalidNumPatchControlPoints,
MaxDiscardRectanglesExceeded {
max: u32,
obtained: u32,
},
MaxVertexAttribDivisorExceeded {
binding: u32,
max: u32,
obtained: u32,
},
MaxVertexInputAttributesExceeded {
max: u32,
obtained: usize,
},
MaxVertexInputAttributeOffsetExceeded {
max: u32,
obtained: u32,
},
MaxVertexInputBindingsExceeded {
max: u32,
obtained: u32,
},
MaxVertexInputBindingStrideExceeded {
binding: u32,
max: u32,
obtained: u32,
},
MaxViewportsExceeded {
max: u32,
obtained: u32,
},
MaxViewportDimensionsExceeded,
MismatchBlendingAttachmentsCount,
NoDepthAttachment,
NoStencilAttachment,
OomError(OomError),
PipelineLayoutCreationError(PipelineLayoutCreationError),
ShaderStagesMismatch(ShaderInterfaceMismatchError),
StrictLinesNotSupported,
TopologyNotMatchingGeometryShader,
VertexInputAttributeIncompatibleFormat {
location: u32,
shader_type: NumericType,
attribute_type: NumericType,
},
VertexInputAttributeInvalidBinding {
location: u32,
binding: u32,
},
VertexInputAttributeMissing {
location: u32,
},
VertexInputAttributeUnsupportedFormat {
location: u32,
format: Format,
},
ViewportBoundsExceeded,
WrongShaderType,
WrongStencilState,
}
Expand description
Error that can happen when creating a graphics pipeline.
Variants
ExtensionNotEnabled
A device extension that was required for a particular setting on the graphics pipeline was not enabled.
FeatureNotEnabled
A device feature that was required for a particular setting on the graphics pipeline was not enabled.
FragmentShaderRenderPassIncompatible
The output of the fragment shader is not compatible with what the render pass subpass expects.
IncompatiblePipelineLayout(PipelineLayoutSupersetError)
Tuple Fields
The pipeline layout is not compatible with what the shaders expect.
IncompatibleSpecializationConstants
The provided specialization constants are not compatible with what the shader expects.
IncompatibleVertexDefinition(IncompatibleVertexDefinitionError)
Tuple Fields
The vertex definition is not compatible with the input of the vertex shader.
InvalidPrimitiveTopology
Tried to use a patch list without a tessellation shader, or a non-patch-list with a tessellation shader.
InvalidNumPatchControlPoints
patch_control_points
was not greater than 0 and less than or equal to the max_tessellation_patch_size
limit.
MaxDiscardRectanglesExceeded
The maximum number of discard rectangles has been exceeded.
MaxVertexAttribDivisorExceeded
Fields
binding: u32
Index of the faulty binding.
max: u32
Maximum allowed value.
obtained: u32
Value that was passed.
The maximum value for the instance rate divisor has been exceeded.
MaxVertexInputAttributesExceeded
The maximum number of vertex attributes has been exceeded.
MaxVertexInputAttributeOffsetExceeded
The maximum offset for a vertex attribute has been exceeded. This means that your vertex struct is too large.
MaxVertexInputBindingsExceeded
The maximum number of vertex sources has been exceeded.
MaxVertexInputBindingStrideExceeded
Fields
binding: u32
Index of the faulty binding.
max: u32
Maximum allowed value.
obtained: u32
Value that was passed.
The maximum stride value for vertex input (ie. the distance between two vertex elements) has been exceeded.
MaxViewportsExceeded
The maximum number of viewports has been exceeded.
MaxViewportDimensionsExceeded
The maximum dimensions of viewports has been exceeded.
MismatchBlendingAttachmentsCount
The number of attachments specified in the blending does not match the number of attachments in the subpass.
NoDepthAttachment
The depth test requires a depth attachment but render pass has no depth attachment, or depth writing is enabled and the depth attachment is read-only.
NoStencilAttachment
The stencil test requires a stencil attachment but render pass has no stencil attachment, or stencil writing is enabled and the stencil attachment is read-only.
OomError(OomError)
Tuple Fields
0: OomError
Not enough memory.
PipelineLayoutCreationError(PipelineLayoutCreationError)
Tuple Fields
Error while creating the pipeline layout object.
ShaderStagesMismatch(ShaderInterfaceMismatchError)
Tuple Fields
The output interface of one shader and the input interface of the next shader do not match.
StrictLinesNotSupported
The strict_lines
device property was false
.
TopologyNotMatchingGeometryShader
The primitives topology does not match what the geometry shader expects.
VertexInputAttributeIncompatibleFormat
The type of the shader input variable at the given location is not compatible with the format of the corresponding vertex input attribute.
VertexInputAttributeInvalidBinding
The binding number specified by a vertex input attribute does not exist in the provided list of binding descriptions.
VertexInputAttributeMissing
Fields
location: u32
The vertex shader expects an input variable at the given location, but no vertex input attribute exists for that location.
VertexInputAttributeUnsupportedFormat
The format specified by a vertex input attribute is not supported for vertex buffers.
ViewportBoundsExceeded
The minimum or maximum bounds of viewports have been exceeded.
WrongShaderType
The wrong type of shader has been passed.
For example you passed a vertex shader as the fragment shader.
WrongStencilState
The requested stencil test is invalid.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for GraphicsPipelineCreationError
impl Sync for GraphicsPipelineCreationError
impl Unpin for GraphicsPipelineCreationError
impl UnwindSafe for GraphicsPipelineCreationError
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.