Monado OpenXR Runtime
|
Misc D3D11/12 helper routines. More...
#include "xrt/xrt_defines.h"
#include "util/u_logging.h"
#include <dxgi.h>
#include <wil/com.h>
#include <utility>
Go to the source code of this file.
Functions | |
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/12 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().