| 140 | } |
| 141 | |
| 142 | void GPUSwapChainVulkan::Begin(RenderTask* task) |
| 143 | { |
| 144 | GPUSwapChain::Begin(task); |
| 145 | |
| 146 | // Wait for the backbuffer to be available |
| 147 | if (_currentImageIndex != -1) |
| 148 | { |
| 149 | auto& backBuffer = _backBuffers[_currentImageIndex]; |
| 150 | if (backBuffer.SubmitCmdBuffer) |
| 151 | { |
| 152 | backBuffer.SubmitCmdBuffer->Wait(); |
| 153 | backBuffer.SubmitCmdBuffer = nullptr; |
| 154 | } |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | bool GPUSwapChainVulkan::Resize(int32 width, int32 height) |
| 159 | { |