Class which provides the run-time platform information Ogre runs on.
More...
#include <OgrePlatformInformation.h>
Class which provides the run-time platform information Ogre runs on.
- This class manages that provides a couple of functions to determine platform information of the run-time environment.
- Note
- This class is supposed to use by advanced user only.
◆ CpuFeatures
Enum describing the different CPU features we want to check for, platform-dependent.
Enumerator |
---|
CPU_FEATURE_NONE | |
◆ getCpuFeatures()
static uint Ogre::PlatformInformation::getCpuFeatures |
( |
| ) |
|
|
static |
Gets a or-masked of enum CpuFeatures that are supported by the CPU.
- Note
- Actual detecting are performs in the first time call to this function, and then all future calls with return internal cached value.
◆ getCpuIdentifier()
static const String& Ogre::PlatformInformation::getCpuIdentifier |
( |
| ) |
|
|
static |
Gets a string of the CPU identifier.
- Note
- Actual detecting are performs in the first time call to this function, and then all future calls with return internal cached value.
◆ getNumLogicalCores()
static uint32 Ogre::PlatformInformation::getNumLogicalCores |
( |
| ) |
|
|
static |
Returns the number of logical cores, including Hyper Threaded / SMT cores.
- Note
- Returns 0 if couldn't detect.
◆ hasCpuFeature()
static bool Ogre::PlatformInformation::hasCpuFeature |
( |
CpuFeatures |
feature | ) |
|
|
static |
Gets whether a specific feature is supported by the CPU.
- Note
- Actual detecting are performs in the first time call to this function, and then all future calls with return internal cached value.
◆ log()
static void Ogre::PlatformInformation::log |
( |
Log * |
pLog | ) |
|
|
static |
Write the CPU information to the passed in Log.
The documentation for this class was generated from the following file: