veloren/voxygen/src/render/mod.rs

37 lines
730 B
Rust
Raw Normal View History

2019-01-07 21:10:31 +00:00
mod mesh;
mod model;
mod renderer;
mod shader_set;
// Reexports
pub use self::{
mesh::Mesh,
model::Model,
shader_set::ShaderSet,
renderer::Renderer,
};
// Library
use rendy;
#[cfg(not(any(feature = "dx12", feature = "metal", feature = "vulkan")))]
type Backend = rendy::empty::Backend;
#[cfg(feature = "dx12")]
type Backend = rendy::dx12::Backend;
#[cfg(feature = "metal")]
type Backend = rendy::metal::Backend;
#[cfg(feature = "vulkan")]
type Backend = rendy::vulkan::Backend;
/// Used to represent one of many possible errors that may be omitted by the rendering code
#[derive(Debug)]
pub enum RenderErr {}
/// Used to represent a specific rendering configuration
pub trait Pipeline {
type Vertex;
}