| 156 | } |
| 157 | |
| 158 | bool GPUSwapChainVulkan::Resize(int32 width, int32 height) |
| 159 | { |
| 160 | // Check if size won't change |
| 161 | if (width == _width && height == _height) |
| 162 | return false; |
| 163 | |
| 164 | // Wait for GPU to flush commands |
| 165 | _device->WaitForGPU(); |
| 166 | |
| 167 | return CreateSwapChain(width, height); |
| 168 | } |
| 169 | |
| 170 | void GPUSwapChainVulkan::CopyBackbuffer(GPUContext* context, GPUTexture* dst) |
| 171 | { |
no test coverage detected