| 90 | } |
| 91 | |
| 92 | void RenderTask::OnBegin(GPUContext* context) |
| 93 | { |
| 94 | Begin(this, context); |
| 95 | if (SwapChain) |
| 96 | SwapChain->Begin(this); |
| 97 | |
| 98 | _prevTask = GPUDevice::Instance->CurrentTask; |
| 99 | GPUDevice::Instance->CurrentTask = this; |
| 100 | LastUsedFrame = Engine::FrameCount; |
| 101 | FrameCount++; |
| 102 | } |
| 103 | |
| 104 | void RenderTask::OnRender(GPUContext* context) |
| 105 | { |