direct3d11 0.1.7

Safe Direct3D 11 bindings. Currently just a minimal implementation mostly for use with direct2d, but I plan to flesh out the API eventually. If you're excited by this project and would like to contribute, pull requests are always open.
Documentation
use dxgi::device::Device as DxgiDevice;
use winapi::shared::dxgi::IDXGIDevice;
use winapi::um::d3d11::ID3D11Device;
use wio::com::ComPtr;

pub mod builder;

#[derive(Clone)]
pub struct Device {
    ptr: ComPtr<ID3D11Device>,
}

impl Device {
    pub fn create<'a>() -> builder::DeviceBuilder<'a> {
        Default::default()
    }

    pub fn as_dxgi(&self) -> DxgiDevice {
        unsafe { DxgiDevice::from_raw(self.ptr.cast::<IDXGIDevice>().unwrap().into_raw()) }
    }
}

com_wrapper!(Device: ID3D11Device);