Fixes and updates to graphics api

This commit is contained in:
Wojtek Figat
2026-02-20 23:49:49 +01:00
parent 08d9ae0ae6
commit 6fd58c418e
9 changed files with 67 additions and 29 deletions

View File

@@ -1,6 +1,7 @@
// Copyright (c) Wojciech Figat. All rights reserved.
#include "GPUSwapChain.h"
#include "GPUContext.h"
#include "GPUDevice.h"
#include "Textures/GPUTexture.h"
#include "Engine/Core/Log.h"
@@ -42,6 +43,11 @@ GPUSwapChain::GPUSwapChain()
#endif
}
void GPUSwapChain::CopyBackbuffer(GPUContext* context, GPUTexture* dst)
{
context->Draw(dst, GetBackBufferView());
}
Task* GPUSwapChain::DownloadDataAsync(TextureData& result)
{
if (_downloadTask)