mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 08:15:44 +00:00
Added feature level version to card profiler version string for D3D11
This commit is contained in:
parent
86a95e748e
commit
34e877b6e0
2 changed files with 17 additions and 1 deletions
|
|
@ -47,12 +47,27 @@ void GFXD3D11CardProfiler::init()
|
||||||
|
|
||||||
mCardDescription = adapter.description;
|
mCardDescription = adapter.description;
|
||||||
mChipSet = adapter.chipSet;
|
mChipSet = adapter.chipSet;
|
||||||
mVersionString = adapter.driverVersion;
|
mVersionString = _getFeatureLevelStr();
|
||||||
mVideoMemory = adapter.vram;
|
mVideoMemory = adapter.vram;
|
||||||
}
|
}
|
||||||
Parent::init();
|
Parent::init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String GFXD3D11CardProfiler::_getFeatureLevelStr()
|
||||||
|
{
|
||||||
|
switch (D3D11->getFeatureLevel())
|
||||||
|
{
|
||||||
|
case D3D_FEATURE_LEVEL_11_0:
|
||||||
|
return String("Feature level 11.0");
|
||||||
|
case D3D_FEATURE_LEVEL_10_1:
|
||||||
|
return String("Feature level 10.1");
|
||||||
|
case D3D_FEATURE_LEVEL_10_0:
|
||||||
|
return String("Feature level 10.0");
|
||||||
|
default:
|
||||||
|
return String("Unknown feature level");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void GFXD3D11CardProfiler::setupCardCapabilities()
|
void GFXD3D11CardProfiler::setupCardCapabilities()
|
||||||
{
|
{
|
||||||
setCapability("maxTextureWidth", D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION);
|
setCapability("maxTextureWidth", D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION);
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ protected:
|
||||||
void setupCardCapabilities();
|
void setupCardCapabilities();
|
||||||
bool _queryCardCap(const String &query, U32 &foundResult);
|
bool _queryCardCap(const String &query, U32 &foundResult);
|
||||||
bool _queryFormat(const GFXFormat fmt, const GFXTextureProfile *profile, bool &inOutAutogenMips);
|
bool _queryFormat(const GFXFormat fmt, const GFXTextureProfile *profile, bool &inOutAutogenMips);
|
||||||
|
String _getFeatureLevelStr();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue