[−][src]Enum processing::DrawError
Error that can happen while drawing.
Variants
NoDepthBufferA depth function has been requested but no depth buffer is available.
AttributeTypeMismatchThe type of a vertex attribute in the vertices source doesn't match what the program requires.
AttributeMissingOne 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.
ViewportTooLargeThe viewport's dimensions are not supported by the backend.
InvalidDepthRangeThe depth range is outside of the (0, 1) range.
UniformTypeMismatchThe type of a uniform doesn't match what the program requires.
Fields of UniformTypeMismatch
UniformBufferToValueTried to bind a uniform buffer to a single uniform value.
Fields of UniformBufferToValue
name: StringName of the uniform you are trying to bind.
UniformValueToBlockTried to bind a single uniform value to a uniform block.
Fields of UniformValueToBlock
name: StringName of the uniform you are trying to bind.
UniformBlockLayoutMismatchThe layout of the content of the uniform buffer does not match the layout of the block.
Fields of UniformBlockLayoutMismatch
name: StringName of the block you are trying to bind.
err: LayoutMismatchErrorThe error giving more details about the mismatch.
SubroutineUniformToValueTried to bind a subroutine uniform like a regular uniform value.
Fields of SubroutineUniformToValue
name: StringName of the uniform you are trying to bind.
SubroutineUniformMissingNot all subroutine uniforms of a shader stage were set.
Fields of SubroutineUniformMissing
stage: ShaderStageShader stage with missing bindings.
expected_count: usizeThe expected number of bindings.
real_count: usizeThe number of bindings defined by the user.
SubroutineNotFoundA non-existent subroutine was referenced.
Fields of SubroutineNotFound
stage: ShaderStageThe stage the subroutine was searched for.
name: StringThe invalid name of the subroutine.
UnsupportedVerticesPerPatchThe number of vertices per patch that has been requested is not supported.
TessellationNotSupportedTrying to use tessellation, but this is not supported by the underlying hardware.
TessellationWithoutPatchesUsing a program which contains tessellation shaders, but without submitting patches.
SamplersNotSupportedTrying to use a sampler, but they are not supported by the backend.
InstancesCountMismatchWhen you use instancing, all vertices sources must have the same size.
VerticesSourcesLengthMismatchIf you don't use indices, then all vertices sources must have the same size.
TransformFeedbackNotSupportedYou requested not to draw primitives, but this is not supported by the backend.
WrongQueryOperationSee the documentation of the draw_parameters module for infos.
SmoothingNotSupportedYou requested smoothing, but this is not supported by the backend.
ProvokingVertexNotSupportedThe requested provoking vertex is not supported by the backend.
RasterizerDiscardNotSupportedDiscarding rasterizer output isn't supported by the backend.
DepthClampNotSupportedDepth clamping isn't supported by the backend.
BlendingParameterNotSupportedOne of the blending parameters is not supported by the backend.
FixedIndexRestartingNotSupportedRestarting indices (multiple objects per draw call) is not supported by the backend.
ClipPlaneIndexOutOfBoundsTried to enable a clip plane that does not exist.
Trait Implementations
impl Display for DrawError[src]
impl Error for DrawError[src]
fn description(&self) -> &str[src]
fn cause(&self) -> Option<&dyn Error>[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
The lower-level source of this error, if any. Read more
impl Clone for DrawError[src]
fn clone(&self) -> DrawError[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for DrawError[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value as a parameter of self.