Multi swapchain support (#257)

* multi swapchain draft

* uwp fix

* swapchain resize handling

* swapchain buffercount

* vsync toggle

* tests fix

* update

* everything removed from graphicsdevice regarding global screen params, engine refactor

* added GetSwapChainTexture() function to graphics device; screenshot() now requires swapChain

* linux fix: vulkan device needs window handle for instance creation

* refactor

* removed unused includes

* shader refactor and lensflare fix

* swapchain clearcolor and other refactors

* vulkan: no vector allocation in submit

* tests fix

* refactors

* lens flare canvas size fix

* gui refactor for canvas support

* refactors

* removed global canvas state

* msaa fix

* fixes

* refactor to minimize interface changes

* gui changes

* checkbox fix

* gui fixes

* fixes

* input system will accept window handle

* editor fixes

* refactor and removed resolution related system events

* small editor update

* refactor: renderpath inherits from canvas

* fixed tests duh

* image refactor

* image fix

* removed every using namespace std

* pushconstant fix

* editor: object picking only when necessary

* removed include

* dx12: copy fence waiting performed on CPU

* dx12 copyallocator update

* vulkan: copy allocator with timeline semaphores

* missing include

* dx12 copy allocator update

* refactor

* editor update

* vulkan copy allocator fix

* dx12 update

* vulkan, dx12 fixes

* version bump

* vsync event helper

* documentation update

* updated vulkan, dx12, dxc
This commit is contained in:
Turánszki János
2021-04-22 10:36:22 +01:00
committed by GitHub
parent 762e194a85
commit f1ced24f05
141 changed files with 75281 additions and 50418 deletions
+4 -8
View File
@@ -4,8 +4,6 @@
#include <fstream>
using namespace std;
#define MAX_LOADSTRING 100
// Global Variables:
@@ -119,9 +117,9 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
int x = CW_USEDEFAULT, y = 0, w = CW_USEDEFAULT, h = 0;
bool fullscreen = false;
bool borderless = false;
string voidStr = "";
std::string voidStr = "";
ifstream file("config.ini");
std::ifstream file("config.ini");
if (file.is_open())
{
int enabled;
@@ -201,17 +199,15 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
}
break;
case WM_SIZE:
wiEvent::FireEvent(SYSTEM_EVENT_CHANGE_RESOLUTION, lParam);
break;
case WM_DPICHANGED:
wiEvent::FireEvent(SYSTEM_EVENT_CHANGE_DPI, wParam);
editor.SetWindow(hWnd);
break;
case WM_HOTKEY:
switch (wParam)
{
case PRINTSCREEN:
{
wiHelper::screenshot();
wiHelper::screenshot(editor.swapChain);
}
break;
default: