pub fn create_d3d_device() -> Result<(ID3D11Device, ID3D11DeviceContext), Error>Expand description
Creates an [windows::Win32::Graphics::Direct3D11::ID3D11Device] and an
[windows::Win32::Graphics::Direct3D11::ID3D11DeviceContext].
§Errors
Error::WindowsErrorwhen the underlyingD3D11CreateDevicecall failsError::FeatureLevelNotSatisfiedwhen the created device does not support at least feature level 11.0