| 201 | } |
| 202 | |
| 203 | void BeginFrame(uint32 displayWidth, uint32 displayHeight, float timeDelta) |
| 204 | { |
| 205 | Assert_(CurrBeginFrame != DX12::CurrentCPUFrame); |
| 206 | |
| 207 | ImGuiIO& io = ImGui::GetIO(); |
| 208 | io.DisplaySize = ImVec2(float(displayWidth), float(displayHeight)); |
| 209 | io.DeltaTime = timeDelta; |
| 210 | |
| 211 | // Read keyboard modifiers inputs |
| 212 | io.KeyCtrl = (GetKeyState(VK_CONTROL) & 0x8000) != 0; |
| 213 | io.KeyShift = (GetKeyState(VK_SHIFT) & 0x8000) != 0; |
| 214 | io.KeyAlt = (GetKeyState(VK_MENU) & 0x8000) != 0; |
| 215 | |
| 216 | ImGui::NewFrame(); |
| 217 | |
| 218 | #if UseAsserts_ |
| 219 | CurrBeginFrame = DX12::CurrentCPUFrame; |
| 220 | #endif |
| 221 | } |
| 222 | |
| 223 | void EndFrame(ID3D12GraphicsCommandList* cmdList, D3D12_CPU_DESCRIPTOR_HANDLE rtv, uint32 displayWidth, uint32 displayHeight) |
| 224 | { |
no test coverage detected