Synvael/crates/renderer/src/error.rs
Serkyo 7034a24498 feat(renderer): implement physical device selection
Added logic to enumerate and score physical devices, preferring discrete GPUs. Added NoSuitableGpu error variant and documentation for the selection process.
2026-04-30 13:46:46 +02:00

11 lines
319 B
Rust

use thiserror::Error;
#[derive(Debug, Error)]
pub enum RendererError {
#[error("Failed to load Vulkan library")]
LoadFailed(#[from] ash::LoadingError),
#[error("Failed to create Vulkan instance")]
InstanceCreateFailed(#[from] ash::vk::Result),
#[error("No suitable GPU found")]
NoSuitableGpu,
}