#[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§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 Forget for RenderError
impl Freeze for RenderError
impl Move for RenderError
impl RefUnwindSafe for RenderErrorwhere
String: RefUnwindSafe,
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderErrorwhere
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
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