Added ash and thiserror dependencies to the renderer crate. Defined RendererError for typed Vulkan failure handling. Implemented the Renderer struct with basic Vulkan Entry and Instance creation.
9 lines
261 B
Rust
9 lines
261 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)
|
|
} |