Rihen Rihen NkentseuDocumentation

PlatformCapabilities

struct

Structure of the platform hardware capabilities (run time)

Include
#include "NKPlatform/NkPlatformConfig.h"
Namespace
nkentseu::platform
Link (Jenga)
nkentseudependson(["NKPlatform"])
C++
struct PlatformCapabilities

Hierarchy

Base classes : none. Derived classes : none.

Hierarchy : PlatformCapabilitiesPlatformCapabilities

Members · 14

totalPhysicalMemoryTotal physical memory in bytes
availablePhysicalMemoryAvailable physical memory in bytes
pageSizeSize of a system memory page in bytes
processorCountNumber of physical cores detected
logicalProcessorCountNumber of logical cores (with HT/SMT)
hasDisplayTells whether a graphical display is available
primaryScreenWidthWidth of the main screen in pixels
primaryScreenHeightHeight of the main screen in pixels
hasSSESSE support (x86/x64)
hasSSE2SSE2 support (x86/x64)
hasAVXAVX support (x86/x64)
hasAVX2AVX2 support (x86/x64)
hasNEONNEON support (ARM)
PlatformCapabilitiesDefault constructor (detection through system APIs)

Member details

totalPhysicalMemory

#
field
size_t totalPhysicalMemory

Total physical memory in bytes

availablePhysicalMemory

#
field
size_t availablePhysicalMemory

Available physical memory in bytes

pageSize

#
field
size_t pageSize

Size of a system memory page in bytes

processorCount

#
field
int processorCount

Number of physical cores detected

logicalProcessorCount

#
field
int logicalProcessorCount

Number of logical cores (with HT/SMT)

hasDisplay

#
field
bool hasDisplay

Tells whether a graphical display is available

primaryScreenWidth

#
field
int primaryScreenWidth

Width of the main screen in pixels

primaryScreenHeight

#
field
int primaryScreenHeight

Height of the main screen in pixels

hasSSE

#
field
bool hasSSE

SSE support (x86/x64)

hasSSE2

#
field
bool hasSSE2

SSE2 support (x86/x64)

hasAVX

#
field
bool hasAVX

AVX support (x86/x64)

hasAVX2

#
field
bool hasAVX2

AVX2 support (x86/x64)

hasNEON

#
field
bool hasNEON

NEON support (ARM)

PlatformCapabilities

#
constructor
PlatformCapabilities()

Default constructor (detection through system APIs)