mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(D3D11) Add logging after device creation so we can see which
feature level it used
This commit is contained in:
parent
a0e4d64c3b
commit
b900555494
@ -813,6 +813,39 @@ static bool d3d11_init_swapchain(d3d11_video_t* d3d11,
|
||||
D3D11_SDK_VERSION, &d3d11->device,
|
||||
&d3d11->supportedFeatureLevel, &d3d11->context)))
|
||||
return false;
|
||||
switch (d3d11->supportedFeatureLevel)
|
||||
{
|
||||
case D3D_FEATURE_LEVEL_9_1:
|
||||
RARCH_LOG("[D3D11] Device created (Feature Level: 9.1)\n");
|
||||
break;
|
||||
case D3D_FEATURE_LEVEL_9_2:
|
||||
RARCH_LOG("[D3D11] Device created (Feature Level: 9.2)\n");
|
||||
break;
|
||||
case D3D_FEATURE_LEVEL_9_3:
|
||||
RARCH_LOG("[D3D11] Device created (Feature Level: 9.3)\n");
|
||||
break;
|
||||
case D3D_FEATURE_LEVEL_10_0:
|
||||
RARCH_LOG("[D3D11] Device created (Feature Level: 10.0)\n");
|
||||
break;
|
||||
case D3D_FEATURE_LEVEL_10_1:
|
||||
RARCH_LOG("[D3D11] Device created (Feature Level: 10.1)\n");
|
||||
break;
|
||||
case D3D_FEATURE_LEVEL_11_0:
|
||||
RARCH_LOG("[D3D11] Device created (Feature Level: 11.0)\n");
|
||||
break;
|
||||
case D3D_FEATURE_LEVEL_11_1:
|
||||
RARCH_LOG("[D3D11] Device created (Feature Level: 11.1)\n");
|
||||
break;
|
||||
case D3D_FEATURE_LEVEL_12_0:
|
||||
RARCH_LOG("[D3D11] Device created (Feature Level: 12.0)\n");
|
||||
break;
|
||||
case D3D_FEATURE_LEVEL_12_1:
|
||||
RARCH_LOG("[D3D11] Device created (Feature Level: 12.1)\n");
|
||||
break;
|
||||
default:
|
||||
RARCH_LOG("[D3D11] Device created (Feature Level: N/A)\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
d3d11->device->lpVtbl->QueryInterface(
|
||||
|
Loading…
x
Reference in New Issue
Block a user