| 189 | } |
| 190 | |
| 191 | void App::Render_Internal() |
| 192 | { |
| 193 | if(UpdateShaders()) |
| 194 | { |
| 195 | DestroyPSOs(); |
| 196 | CreatePSOs(); |
| 197 | } |
| 198 | |
| 199 | AppSettings::UpdateCBuffer(); |
| 200 | |
| 201 | DX12::BeginFrame(); |
| 202 | swapChain.BeginFrame(); |
| 203 | |
| 204 | Render(appTimer); |
| 205 | |
| 206 | // Update the profiler |
| 207 | const uint32 displayWidth = swapChain.Width(); |
| 208 | const uint32 displayHeight = swapChain.Height(); |
| 209 | Profiler::GlobalProfiler.EndFrame(displayWidth, displayHeight); |
| 210 | |
| 211 | DrawLog(); |
| 212 | |
| 213 | ImGuiHelper::EndFrame(DX12::CmdList, swapChain.BackBuffer().RTV.CPUHandle, displayWidth, displayHeight); |
| 214 | |
| 215 | swapChain.EndFrame(); |
| 216 | |
| 217 | DX12::EndFrame(swapChain.D3DSwapChain(), swapChain.NumVSYNCIntervals()); |
| 218 | } |
| 219 | |
| 220 | void App::BeforeReset_Internal() |
| 221 | { |
nothing calls this directly
no test coverage detected