Photon Common Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::os Namespace Reference

Enumerations

enum class  EWindowsVersion {
  Unknown = 0 , Windows_2000 , Windows_XP , Windows_Vista ,
  Windows_7 , Windows_8 , Windows_8_1 , Windows_10
}
 

Functions

EWindowsVersion get_windows_version ()
 Get current Windows version at runtime.
 
std::size_t get_L1_cache_line_size_in_bytes ()
 Get size of L1 cache at runtime.
 
std::filesystem::path get_executable_path ()
 Get the path to the currently running executable. Answering the question, "Where am I?".
 

Enumeration Type Documentation

◆ EWindowsVersion

enum class ph::os::EWindowsVersion
strong
Enumerator
Unknown 
Windows_2000 
Windows_XP 
Windows_Vista 
Windows_7 
Windows_8 
Windows_8_1 
Windows_10 

Function Documentation

◆ get_executable_path()

std::filesystem::path ph::os::get_executable_path ( )

Get the path to the currently running executable. Answering the question, "Where am I?".

Returns
Path to the executable. Empty if cannot obtain the path.

◆ get_L1_cache_line_size_in_bytes()

std::size_t ph::os::get_L1_cache_line_size_in_bytes ( )

Get size of L1 cache at runtime.

Returns
Size in bytes.

◆ get_windows_version()

EWindowsVersion ph::os::get_windows_version ( )

Get current Windows version at runtime.