1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00
OpenDX/src/dxvk/hud/dxvk_hud_config.h

46 lines
878 B
C
Raw Normal View History

#pragma once
#include "../dxvk_include.h"
2018-04-03 14:49:13 +02:00
namespace dxvk::hud {
/**
* \brief HUD element
*
* These flags can be used to enable
* or disable HUD elements on demand.
*/
enum class HudElement {
2018-04-03 14:49:13 +02:00
DeviceInfo = 0,
Framerate = 1,
Frametimes = 2,
StatDrawCalls = 3,
StatSubmissions = 4,
StatPipelines = 5,
StatMemory = 6,
DxvkVersion = 7,
};
using HudElements = Flags<HudElement>;
/**
* \brief HUD configuration
*/
struct HudConfig {
HudConfig();
HudConfig(const std::string& configStr);
HudElements elements;
};
/**
* \brief Gets HUD configuration from config strnig
*
* \param [in] configStr Configuration string
* \returns HUD configuration struct
*/
HudConfig parseHudConfigStr(const std::string& configStr);
}