[UI] Loop thread to main thread WindowedAppContext

This commit is contained in:
Triang3l
2021-08-28 19:38:24 +03:00
parent f540c188bf
commit 6ce5330f5f
95 changed files with 2343 additions and 1235 deletions

View File

@@ -27,7 +27,7 @@ class D3D12Provider : public GraphicsProvider {
static bool IsD3D12APIAvailable();
static std::unique_ptr<D3D12Provider> Create(Window* main_window);
static std::unique_ptr<D3D12Provider> Create();
std::unique_ptr<GraphicsContext> CreateContext(
Window* target_window) override;
@@ -147,7 +147,7 @@ class D3D12Provider : public GraphicsProvider {
}
private:
explicit D3D12Provider(Window* main_window);
D3D12Provider() = default;
static bool EnableIncreaseBasePriorityPrivilege();
bool Initialize();