Monado OpenXR Runtime
|
Misc D3D11 helper routines. More...
#include "d3d_d3d11_helpers.hpp"
#include "util/u_logging.h"
#include <dxgi1_6.h>
#include <wil/com.h>
#include <wil/result.h>
#include <vector>
Functions | |
template<typename T > | |
static wil::com_ptr< T > | xrt::auxiliary::d3d::try_create_dxgi_factory () |
wil::com_ptr< IDXGIAdapter > | xrt::auxiliary::d3d::getAdapterByIndex (uint16_t index, u_logging_level log_level=U_LOGGING_INFO) |
Create a DXGI Adapter, using our priorities. More... | |
wil::com_ptr< IDXGIAdapter > | xrt::auxiliary::d3d::getAdapterByLUID (const xrt_luid_t &luid, u_logging_level log_level=U_LOGGING_INFO) |
Create a DXGI Adapter, for the provided LUID. More... | |
Misc D3D11 helper routines.
wil::com_ptr< IDXGIAdapter > xrt::auxiliary::d3d::getAdapterByIndex | ( | uint16_t | index, |
u_logging_level | log_level = U_LOGGING_INFO |
||
) |
Create a DXGI Adapter, using our priorities.
We try to use IDXGIFactory6::EnumAdapterByGpuPreference preferring HIGH_PERFORMANCE, if it's available
index | The requested adapter index |
log_level | The level to compare against for internal log messages |
wil::ResultException | in case of error |
References xrt::auxiliary::d3d::getAdapterByIndex().
Referenced by xrt::auxiliary::d3d::getAdapterByIndex(), and oxr_d3d_get_requirements().
wil::com_ptr< IDXGIAdapter > xrt::auxiliary::d3d::getAdapterByLUID | ( | const xrt_luid_t & | luid, |
u_logging_level | log_level = U_LOGGING_INFO |
||
) |
Create a DXGI Adapter, for the provided LUID.
luid | The requested adapter luid |
log_level | The level to compare against for internal log messages |
wil::ResultException | in case of error |
References xrt::auxiliary::d3d::getAdapterByLUID().
Referenced by xrt::auxiliary::d3d::getAdapterByLUID(), and oxr_d3d_get_requirements().