You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MangoHud/src/win/d3d_shared.cpp

26 lines
622 B
C++

4 years ago
#include "d3d_shared.h"
#include "overlay.h"
4 years ago
bool cfg_inited = false;
ImVec2 window_size;
overlay_params params {};
struct swapchain_stats sw_stats {};
uint32_t vendorID;
kiero::RenderType::Enum dx_version;
4 years ago
void init_d3d_shared(){
if (!logger) logger = std::make_unique<Logger>(&params);
vendorID = get_device_id_dxgi();
4 years ago
if (cfg_inited)
return;
parse_overlay_config(&params, getenv("MANGOHUD_CONFIG"), false);
_params = &params;
4 years ago
cfg_inited = true;
// init_cpu_stats(params);
}
void d3d_run(){
check_keybinds(params, vendorID);
update_hud_info(sw_stats, params, vendorID);
}