//! Direct3D11 shader runtime errors. //! use librashader_preprocess::PreprocessError; use librashader_presets::ParsePresetError; use librashader_reflect::error::{ShaderCompileError, ShaderReflectError}; use librashader_runtime::image::ImageError; use thiserror::Error; /// Cumulative error type for Direct3D11 filter chains. #[derive(Error, Debug)] pub enum FilterChainError { #[error("unable to get direct3d context")] Direct3DContextError, #[error("direct3d driver error")] Direct3DError(#[from] windows::core::Error), #[error("SPIRV reflection error")] SpirvCrossReflectError(#[from] spirv_cross::ErrorCode), #[error("shader preset parse error")] ShaderPresetError(#[from] ParsePresetError), #[error("shader preprocess error")] ShaderPreprocessError(#[from] PreprocessError), #[error("shader compile error")] ShaderCompileError(#[from] ShaderCompileError), #[error("shader reflect error")] ShaderReflectError(#[from] ShaderReflectError), #[error("lut loading error")] LutLoadError(#[from] ImageError), } /// Result type for Direct3D11 filter chains. pub type Result = std::result::Result;