MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Render_Internal

Method Render_Internal

SampleFramework12/v1.00/App.cpp:191–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191void 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
220void App::BeforeReset_Internal()
221{

Callers

nothing calls this directly

Calls 12

UpdateShadersFunction · 0.85
DestroyPSOsFunction · 0.85
CreatePSOsFunction · 0.85
UpdateCBufferFunction · 0.85
BeginFrameMethod · 0.80
D3DSwapChainMethod · 0.80
NumVSYNCIntervalsMethod · 0.80
BeginFrameFunction · 0.70
EndFrameFunction · 0.70
WidthMethod · 0.45
HeightMethod · 0.45
EndFrameMethod · 0.45

Tested by

no test coverage detected