MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Draw

Method Draw

Source/Engine/Graphics/GPUDevice.cpp:781–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779#endif
780
781void GPUDevice::Draw()
782{
783 PROFILE_MEM(Graphics);
784 DrawBegin();
785
786 auto context = GetMainContext();
787
788 // Begin frame
789 context->FrameBegin();
790 RenderBegin();
791 _res->TasksManager.FrameBegin();
792 Render2D::BeginFrame();
793
794 // Perform actual drawing
795 Engine::Draw();
796 EngineService::OnDraw();
797 RenderTask::DrawAll();
798
799 // End frame
800 Render2D::EndFrame();
801 _res->TasksManager.FrameEnd();
802 RenderEnd();
803 context->FrameEnd();
804
805 DrawEnd();
806}
807
808void GPUDevice::Dispose()
809{

Callers 2

OnCollectDrawCallsMethod · 0.45
CopyBackbufferMethod · 0.45

Calls 3

DrawFunction · 0.70
FrameBeginMethod · 0.45
FrameEndMethod · 0.45

Tested by

no test coverage detected