Timestamp:
Nov 18, 2022, 8:59:18 PM (21 months ago)
Author:
Vladislav Belov
Message:

Moves post processing out of scene rendering to avoid framebuffer pass duplicate.

Comments By: phosit, Stan

Differential Revision: https://code.wildfiregames.com/D4827

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/graphics/GameView.cpp

    r26250 r27232  
    234234}
    235235
    236 void CGameView::Render()
    237 {
    238     g_Renderer.GetSceneRenderer().RenderScene(g_Renderer.GetDeviceCommandContext(), *this);
     236void CGameView::Prepare(
     237    Renderer::Backend::IDeviceCommandContext* deviceCommandContext)
     238{
     239    g_Renderer.GetSceneRenderer().PrepareScene(deviceCommandContext, *this);
     240}
     241
     242void CGameView::Render(
     243    Renderer::Backend::IDeviceCommandContext* deviceCommandContext)
     244{
     245    g_Renderer.GetSceneRenderer().RenderScene(deviceCommandContext);
     246}
     247
     248void CGameView::RenderOverlays(
     249    Renderer::Backend::IDeviceCommandContext* deviceCommandContext)
     250{
     251    g_Renderer.GetSceneRenderer().RenderSceneOverlays(deviceCommandContext);
    239252}
    240253
Note: See TracChangeset for help on using the changeset viewer.