3 #include "../../debug_ui.h"
58 ImVec2 window_location(box_x, box_y);
59 ImVec2 window_location_offset(box_x + 1.6, box_y + 1.0);
61 ImVec2 window_size(3000, 1000);
81 DXGI_SWAP_CHAIN_DESC sd;
83 LPTSTR window_title =
NULL;
84 GetWindowText(sd.OutputWindow, window_title, 255);
89 ImGui::Text(
" buffer_count: %s", std::to_string(sd.BufferCount).c_str());
91 ImGui::Text(
" format: %s", std::to_string(sd.BufferDesc.Format).c_str());
92 ImGui::Text(
" refresh_rate: %s/%s", std::to_string(sd.BufferDesc.RefreshRate.Denominator).c_str(), std::to_string(sd.BufferDesc.RefreshRate.Numerator).c_str());
93 ImGui::Text(
" scaling: %s", std::to_string(sd.BufferDesc.Scaling).c_str());
94 ImGui::Text(
" scanline_ordering: %s", std::to_string(sd.BufferDesc.ScanlineOrdering).c_str());
95 ImGui::Text(
" resolution: %sx%s", std::to_string(sd.BufferDesc.Height).c_str(), std::to_string(sd.BufferDesc.Width).c_str());
96 ImGui::Text(
" buffer_usage: %s", std::to_string(sd.BufferUsage).c_str());
97 ImGui::Text(
" flags: %s", std::to_string(sd.Flags).c_str());
100 ImGui::Text(
" count: %s", std::to_string(sd.SampleDesc.Count).c_str());
101 ImGui::Text(
" quality: %s", std::to_string(sd.SampleDesc.Quality).c_str());
102 ImGui::Text(
" swap_effect: %s", std::to_string(sd.SwapEffect).c_str());
103 ImGui::Text(
" windowed: %s", std::to_string(sd.Windowed).c_str());
135 DXGI_SWAP_CHAIN_DESC sd;
137 LPTSTR window_title =
NULL;
138 GetWindowText(sd.OutputWindow, window_title, 255);
143 ImGui::Text(
" buffer_count: %s", std::to_string(sd.BufferCount).c_str());
145 ImGui::Text(
" format: %s", std::to_string(sd.BufferDesc.Format).c_str());
146 ImGui::Text(
" refresh_rate: %s/%s", std::to_string(sd.BufferDesc.RefreshRate.Denominator).c_str(), std::to_string(sd.BufferDesc.RefreshRate.Numerator).c_str());
147 ImGui::Text(
" scaling: %s", std::to_string(sd.BufferDesc.Scaling).c_str());
148 ImGui::Text(
" scanline_ordering: %s", std::to_string(sd.BufferDesc.ScanlineOrdering).c_str());
149 ImGui::Text(
" resolution: %sx%s", std::to_string(sd.BufferDesc.Height).c_str(), std::to_string(sd.BufferDesc.Width).c_str());
150 ImGui::Text(
" buffer_usage: %s", std::to_string(sd.BufferUsage).c_str());
151 ImGui::Text(
" flags: %s", std::to_string(sd.Flags).c_str());
154 ImGui::Text(
" count: %s", std::to_string(sd.SampleDesc.Count).c_str());
155 ImGui::Text(
" quality: %s", std::to_string(sd.SampleDesc.Quality).c_str());
156 ImGui::Text(
" swap_effect: %s", std::to_string(sd.SwapEffect).c_str());
157 ImGui::Text(
" windowed: %s", std::to_string(sd.Windowed).c_str());