diff --git a/librashader-runtime-d3d11/src/error.rs b/librashader-runtime-d3d11/src/error.rs index 660f2f9..0cf9b0e 100644 --- a/librashader-runtime-d3d11/src/error.rs +++ b/librashader-runtime-d3d11/src/error.rs @@ -8,6 +8,7 @@ use thiserror::Error; /// Cumulative error type for Direct3D11 filter chains. #[derive(Error, Debug)] +#[non_exhaustive] pub enum FilterChainError { #[error("invariant assumption about d3d11 did not hold. report this as an issue.")] Direct3DOperationError(&'static str), diff --git a/librashader-runtime-d3d12/src/error.rs b/librashader-runtime-d3d12/src/error.rs index bd4889c..fec9416 100644 --- a/librashader-runtime-d3d12/src/error.rs +++ b/librashader-runtime-d3d12/src/error.rs @@ -6,6 +6,7 @@ use thiserror::Error; /// Cumulative error type for Direct3D12 filter chains. #[derive(Error, Debug)] +#[non_exhaustive] pub enum FilterChainError { #[error("invariant assumption about d3d12 did not hold. report this as an issue.")] Direct3DOperationError(&'static str), diff --git a/librashader-runtime-d3d9/src/error.rs b/librashader-runtime-d3d9/src/error.rs index 90bf50d..37cb2ca 100644 --- a/librashader-runtime-d3d9/src/error.rs +++ b/librashader-runtime-d3d9/src/error.rs @@ -9,6 +9,7 @@ use thiserror::Error; /// Cumulative error type for Direct3D11 filter chains. #[derive(Error, Debug)] +#[non_exhaustive] pub enum FilterChainError { #[error("invariant assumption about d3d11 did not hold. report this as an issue.")] Direct3DOperationError(&'static str), diff --git a/librashader-runtime-gl/src/error.rs b/librashader-runtime-gl/src/error.rs index 299b09d..829bbbf 100644 --- a/librashader-runtime-gl/src/error.rs +++ b/librashader-runtime-gl/src/error.rs @@ -8,6 +8,7 @@ use thiserror::Error; /// Cumulative error type for OpenGL filter chains. #[derive(Error, Debug)] +#[non_exhaustive] pub enum FilterChainError { #[error("fbo initialization error")] FramebufferInit(u32), diff --git a/librashader-runtime-mtl/src/error.rs b/librashader-runtime-mtl/src/error.rs index 50f0eb6..2bf1e92 100644 --- a/librashader-runtime-mtl/src/error.rs +++ b/librashader-runtime-mtl/src/error.rs @@ -10,6 +10,7 @@ use thiserror::Error; /// Cumulative error type for Metal filter chains. #[derive(Error, Debug)] +#[non_exhaustive] pub enum FilterChainError { #[error("shader preset parse error")] ShaderPresetError(#[from] ParsePresetError), diff --git a/librashader-runtime-vk/src/error.rs b/librashader-runtime-vk/src/error.rs index 56e6041..ebbc579 100644 --- a/librashader-runtime-vk/src/error.rs +++ b/librashader-runtime-vk/src/error.rs @@ -9,6 +9,7 @@ use thiserror::Error; /// Cumulative error type for Vulkan filter chains. #[derive(Error, Debug)] +#[non_exhaustive] pub enum FilterChainError { #[error("shader preset parse error")] ShaderPresetError(#[from] ParsePresetError), diff --git a/librashader-runtime-wgpu/src/error.rs b/librashader-runtime-wgpu/src/error.rs index 85c007f..15a8fd2 100644 --- a/librashader-runtime-wgpu/src/error.rs +++ b/librashader-runtime-wgpu/src/error.rs @@ -7,6 +7,7 @@ use thiserror::Error; /// Cumulative error type for wgpu filter chains. #[derive(Error, Debug)] +#[non_exhaustive] pub enum FilterChainError { #[error("shader preset parse error")] ShaderPresetError(#[from] ParsePresetError),