Function TRAP::Graphics::RenderCommand::Flush#

Function Documentation#

void TRAP::Graphics::RenderCommand::Flush(const Window &window = *TRAP::Application::GetWindow())#

Flush renderer for the given window.

  1. Stops graphics and compute recording.

  2. Submits the graphics and compute commands.

  3. Presents the rendered image to the screen.

  4. Starts graphics and compute recording for the next frame.

    Remark

    Headless mode: This function is not available in headless mode.

Note

TRAP::Application automatically flushes for the main window.

Parameters:

windowWindow to flush renderer. Default: Main Window.