librashader_runtime_vk/
error.rs1use gpu_allocator::AllocationError;
3use librashader_preprocess::PreprocessError;
4use librashader_presets::ParsePresetError;
5use librashader_reflect::error::{ShaderCompileError, ShaderReflectError};
6use librashader_runtime::image::ImageError;
7use thiserror::Error;
8
9#[derive(Error, Debug)]
11#[non_exhaustive]
12pub enum FilterChainError {
13 #[error("a vulkan handle that is required to be not null is null")]
14 HandleIsNull,
15 #[error("shader preset parse error")]
16 ShaderPresetError(#[from] ParsePresetError),
17 #[error("shader preprocess error")]
18 ShaderPreprocessError(#[from] PreprocessError),
19 #[error("shader compile error")]
20 ShaderCompileError(#[from] ShaderCompileError),
21 #[error("shader reflect error")]
22 ShaderReflectError(#[from] ShaderReflectError),
23 #[error("lut loading error")]
24 LutLoadError(#[from] ImageError),
25 #[error("vulkan error")]
26 VulkanResult(#[from] ash::vk::Result),
27 #[error("could not find a valid vulkan memory type")]
28 VulkanMemoryError(u32),
29 #[error("could not allocate gpu memory")]
30 AllocationError(#[from] AllocationError),
31 #[error("allocation is already freed")]
32 AllocationDoesNotExist,
33 #[error("unreachable")]
34 Infallible(#[from] std::convert::Infallible),
35}
36
37pub type Result<T> = std::result::Result<T, FilterChainError>;