#[non_exhaustive]pub enum RenderError {
Show 19 variants
ColorAttachment(ColorAttachmentError),
ColorState(u8, ColorStateError),
DepthStencilState(DepthStencilStateError),
InvalidSampleCount(u32),
TooManyVertexBuffers {
given: u32,
limit: u32,
},
TooManyBindGroupsPlusVertexBuffers {
given: u32,
limit: u32,
},
TooManyBuffersAndAccelerationStructuresInVertexStage {
given: u32,
limit: u32,
},
TooManyVertexAttributes {
given: u32,
limit: u32,
},
VertexAttributeLocationTooLarge {
given: u32,
limit: u32,
},
VertexStrideTooLarge {
index: u32,
given: u32,
limit: u32,
},
VertexAttributeStrideTooLarge {
location: ShaderLocation,
given: u32,
limit: u32,
},
UnalignedVertexStride {
index: u32,
stride: BufferAddress,
},
InvalidVertexAttributeOffset {
location: ShaderLocation,
offset: BufferAddress,
},
ShaderLocationClash(u32),
StripIndexFormatForNonStripTopology {
strip_index_format: Option<IndexFormat>,
topology: PrimitiveTopology,
},
ConservativeRasterizationNonFillPolygonMode,
UnalignedShader {
group: u32,
binding: u32,
size: u64,
},
DualSourceBlendingWithMultipleColorTargets {
count: usize,
},
NoTargetSpecified,
}Expand description
Errors specific to render pipeline creation.
These are usually returned as CreatePipelineError::Render.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ColorAttachment(ColorAttachmentError)
ColorState(u8, ColorStateError)
DepthStencilState(DepthStencilStateError)
InvalidSampleCount(u32)
TooManyVertexBuffers
TooManyBindGroupsPlusVertexBuffers
TooManyBuffersAndAccelerationStructuresInVertexStage
TooManyVertexAttributes
VertexAttributeLocationTooLarge
VertexStrideTooLarge
VertexAttributeStrideTooLarge
UnalignedVertexStride
InvalidVertexAttributeOffset
ShaderLocationClash(u32)
StripIndexFormatForNonStripTopology
ConservativeRasterizationNonFillPolygonMode
UnalignedShader
DualSourceBlendingWithMultipleColorTargets
NoTargetSpecified
Trait Implementations§
Source§impl Clone for RenderError
impl Clone for RenderError
Source§fn clone(&self) -> RenderError
fn clone(&self) -> RenderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ColorAttachmentError> for RenderError
impl From<ColorAttachmentError> for RenderError
Source§fn from(source: ColorAttachmentError) -> Self
fn from(source: ColorAttachmentError) -> Self
Converts to this type from the input type.
Source§impl From<DepthStencilStateError> for RenderError
impl From<DepthStencilStateError> for RenderError
Source§fn from(source: DepthStencilStateError) -> Self
fn from(source: DepthStencilStateError) -> Self
Converts to this type from the input type.
Source§impl From<RenderError> for CreatePipelineError
impl From<RenderError> for CreatePipelineError
Source§fn from(source: RenderError) -> Self
fn from(source: RenderError) -> Self
Converts to this type from the input type.
Source§impl WebGpuError for RenderError
impl WebGpuError for RenderError
Source§fn webgpu_error_type(&self) -> ErrorType
fn webgpu_error_type(&self) -> ErrorType
Determine the classification of this error as a WebGPU
ErrorType.Auto Trait Implementations§
impl Freeze for RenderError
impl RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
impl UnwindSafe for RenderError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more