//! Convenience module to reference types that are stored in the backend's enum use thiserror::Error; pub type Device = ::Device; pub type Gpu = hal::adapter::Gpu; pub type Buffer = ::Buffer; pub type Memory = ::Memory; pub type Swapchain = ::Swapchain; pub type Surface = ::Surface; pub type Semaphore = ::Semaphore; pub type Fence = ::Fence; pub type CommandPool = ::CommandPool; pub type CommandBuffer = ::CommandBuffer; pub type CommandQueue = ::CommandQueue; pub type DescriptorSetLayout = ::DescriptorSetLayout; pub type DescriptorSet = ::DescriptorSet; pub type PipelineLayout = ::PipelineLayout; pub type GraphicsPipeline = ::GraphicsPipeline; pub type ShaderModule = ::ShaderModule; pub type Sampler = ::Sampler; pub type Image = ::Image; pub type ImageView = ::ImageView; pub type Framebuffer = ::Framebuffer; pub type RenderPass = ::RenderPass; pub type Adapter = hal::adapter::Adapter; pub type QueueGroup = hal::queue::QueueGroup; pub type DescriptorAllocator = rendy_descriptor::DescriptorAllocator; pub type DynamicAllocator = rendy_memory::DynamicAllocator; pub type DynamicBlock = rendy_memory::DynamicBlock; pub type RDescriptorSet = rendy_descriptor::DescriptorSet; #[derive(Error, Debug)] pub enum LockPoisoned { #[error("Device lock poisoned")] Device, #[error("Map lock poisoned")] Map, #[error("Other lock poisoned")] Other, } #[derive(Error, Debug)] pub enum HalErrorWrapper { #[error("Device Creation Error: {0}")] DeviceCreationError(#[from] hal::device::CreationError), #[error("Buffer Creation Error: {0}")] BufferCreationError(#[from] hal::buffer::CreationError), #[error("Image Creation Error: {0}")] ImageCreationError(#[from] hal::image::CreationError), #[error("View Error: {0}")] ImageViewError(#[from] hal::image::ViewError), #[error("Out of memory on {0}")] OutOfMemory(#[from] hal::device::OutOfMemory), #[error("Device Lost: {0}")] DeviceLost(#[from] hal::device::DeviceLost), #[error("Allocation Error: {0}")] AllocationError(#[from] hal::device::AllocationError), #[error("Bind Error: {0}")] BindError(#[from] hal::device::BindError), #[error("Map Error: {0}")] MapError(#[from] hal::device::MapError), }