Enum glium::DrawError
[−]
[src]
pub enum DrawError { NoDepthBuffer, AttributeTypeMismatch, AttributeMissing, ViewportTooLarge, InvalidDepthRange, UniformTypeMismatch { name: String, expected: UniformType, }, UniformBufferToValue { name: String, }, UniformValueToBlock { name: String, }, UniformBlockLayoutMismatch { name: String, err: LayoutMismatchError, }, UnsupportedVerticesPerPatch, TessellationNotSupported, TessellationWithoutPatches, SamplersNotSupported, InstancesCountMismatch, VerticesSourcesLengthMismatch, TransformFeedbackNotSupported, WrongQueryOperation, SmoothingNotSupported, ProvokingVertexNotSupported, RasterizerDiscardNotSupported, DepthClampNotSupported, BlendingParameterNotSupported, }
Error that can happen while drawing.
Variants
NoDepthBuffer | A depth function has been requested but no depth buffer is available. | ||||
AttributeTypeMismatch | The type of a vertex attribute in the vertices source doesn't match what the program requires. | ||||
AttributeMissing | One of the attributes required by the program is missing from the vertex format. Note that it is perfectly valid to have an attribute in the vertex format that is not used by the program. | ||||
ViewportTooLarge | The viewport's dimensions are not supported by the backend. | ||||
InvalidDepthRange | The depth range is outside of the | ||||
UniformTypeMismatch | The type of a uniform doesn't match what the program requires. Fields
| ||||
UniformBufferToValue | Tried to bind a uniform buffer to a single uniform value. Fields
| ||||
UniformValueToBlock | Tried to bind a single uniform value to a uniform block. Fields
| ||||
UniformBlockLayoutMismatch | The layout of the content of the uniform buffer does not match the layout of the block. Fields
| ||||
UnsupportedVerticesPerPatch | The number of vertices per patch that has been requested is not supported. | ||||
TessellationNotSupported | Trying to use tessellation, but this is not supported by the underlying hardware. | ||||
TessellationWithoutPatches | Using a program which contains tessellation shaders, but without submitting patches. | ||||
SamplersNotSupported | Trying to use a sampler, but they are not supported by the backend. | ||||
InstancesCountMismatch | When you use instancing, all vertices sources must have the same size. | ||||
VerticesSourcesLengthMismatch | If you don't use indices, then all vertices sources must have the same size. | ||||
TransformFeedbackNotSupported | You requested not to draw primitives, but this is not supported by the backend. | ||||
WrongQueryOperation | See the documentation of the | ||||
SmoothingNotSupported | You requested smoothing, but this is not supported by the backend. | ||||
ProvokingVertexNotSupported | The requested provoking vertex is not supported by the backend. | ||||
RasterizerDiscardNotSupported | Discarding rasterizer output isn't supported by the backend. | ||||
DepthClampNotSupported | Depth clamping isn't supported by the backend. | ||||
BlendingParameterNotSupported | One of the blending parameters is not supported by the backend. |