Monado OpenXR Runtime
|
Misc D3D11 helper routines. More...
#include "d3d_d3d11_helpers.hpp"
#include "util/u_logging.h"
#include <dxgi1_6.h>
#include <d3d11_4.h>
#include <wil/com.h>
#include <wil/result.h>
#include <vector>
Functions | |
HRESULT | xrt::auxiliary::d3d::d3d11::tryCreateDevice (const wil::com_ptr< IDXGIAdapter > &adapter, D3D_DRIVER_TYPE driver_type, unsigned int creation_flags, const std::vector< D3D_FEATURE_LEVEL > &feature_levels, wil::com_ptr< ID3D11Device > &out_device, wil::com_ptr< ID3D11DeviceContext > &out_context) |
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 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().