| 779 | #endif |
| 780 | |
| 781 | void 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 | |
| 808 | void GPUDevice::Dispose() |
| 809 | { |
no test coverage detected