Monado OpenXR Runtime
|
Misc D3D11/12 helper routines. More...
#include "xrt/xrt_defines.h"
#include "util/u_logging.h"
#include <dxgi.h>
#include <d3d11.h>
#include <wil/com.h>
#include <utility>
Go to the source code of this file.
Functions | |
std::pair< wil::com_ptr< ID3D11Device >, wil::com_ptr< ID3D11DeviceContext > > | xrt::auxiliary::d3d::d3d11::createDevice (const wil::com_ptr< IDXGIAdapter > &adapter=nullptr, u_logging_level log_level=U_LOGGING_INFO) |
Create a D3D11 Device object. More... | |
Misc D3D11/12 helper routines.
std::pair< wil::com_ptr< ID3D11Device >, wil::com_ptr< ID3D11DeviceContext > > xrt::auxiliary::d3d::d3d11::createDevice | ( | const wil::com_ptr< IDXGIAdapter > & | adapter = nullptr , |
u_logging_level | log_level = U_LOGGING_INFO |
||
) |
Create a D3D11 Device object.
adapter | optional: adapter to create on. |
log_level | The level to compare against for internal log messages |
wil::ResultException | in case of error |
References xrt::auxiliary::d3d::d3d11::createDevice().
Referenced by xrt::auxiliary::d3d::d3d11::createDevice().