mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Device creation now logs requested feature levels
This commit is contained in:
parent
ac2d16599c
commit
7ec8e727d2
@ -81,6 +81,8 @@ extern "C" {
|
|||||||
|
|
||||||
UINT flId;
|
UINT flId;
|
||||||
for (flId = 0 ; flId < FeatureLevels; flId++) {
|
for (flId = 0 ; flId < FeatureLevels; flId++) {
|
||||||
|
Logger::info(str::format("D3D11CreateDevice: Probing ", pFeatureLevels[flId]));
|
||||||
|
|
||||||
if (D3D11Device::CheckFeatureLevelSupport(adapter, pFeatureLevels[flId]))
|
if (D3D11Device::CheckFeatureLevelSupport(adapter, pFeatureLevels[flId]))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -94,7 +96,6 @@ extern "C" {
|
|||||||
const D3D_FEATURE_LEVEL fl = pFeatureLevels[flId];
|
const D3D_FEATURE_LEVEL fl = pFeatureLevels[flId];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
Logger::info(str::format("D3D11CreateDevice: Using feature level ", fl));
|
Logger::info(str::format("D3D11CreateDevice: Using feature level ", fl));
|
||||||
|
|
||||||
// Write back the actual feature level
|
// Write back the actual feature level
|
||||||
|
Loading…
x
Reference in New Issue
Block a user