d3d11 0.3.0

Safe(r) bindings to the D3D11 API
Documentation
#[cfg(target_os = "windows")]
pub mod native;
#[cfg(target_os = "windows")]
pub use native::*;

#[cfg(feature = "fxc_wine")]
pub mod wine;
#[cfg(all(not(target_os = "windows"), feature = "fxc_wine"))]
pub use wine::*;

pub enum ShaderTarget {
    Vertex,
    Pixel,
    Geometry,
    Hull,
    Domain,
    Compute,
}

impl ShaderTarget {
    pub fn profile(&self) -> &'static str {
        match self {
            Self::Vertex => "vs_5_0",
            Self::Pixel => "ps_5_0",
            Self::Geometry => "gs_5_0",
            Self::Hull => "hs_5_0",
            Self::Domain => "ds_5_0",
            Self::Compute => "cs_5_0",
        }
    }
}