Skip to main content

create_d3d_device

Function create_d3d_device 

Source
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