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

22 lines
503 B
C++

#include "d3d_shared.h"
#include "overlay.h"
bool cfg_inited = false;
ImVec2 window_size;
overlay_params params {};
struct swapchain_stats sw_stats {};
uint32_t vendorID;
void init_d3d_shared(){
vendorID = get_device_id_dxgi();
if (cfg_inited)
return;
parse_overlay_config(&params, getenv("MANGOHUD_CONFIG"));
cfg_inited = true;
// init_cpu_stats(params);
}
void d3d_run(){
check_keybinds(sw_stats, params, vendorID);
update_hud_info(sw_stats, params, vendorID);
}