1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use {
ash::vk, ccthw_ash_allocator::AllocatorError,
ccthw_ash_instance::InstanceError, thiserror::Error,
};
#[derive(Debug, Error)]
pub enum GraphicsError {
#[error("No suitable physical device could be found!")]
NoSuitablePhysicalDevice,
#[error(transparent)]
RuntimeError(#[from] anyhow::Error),
#[error(transparent)]
InstanceError(#[from] InstanceError),
#[error(transparent)]
AllocatorError(#[from] AllocatorError),
#[error(transparent)]
VulkanError(#[from] vk::Result),
}