[wsi] Move DxvkWindowState to wsi platform header

This commit is contained in:
Joshua Ashton 2022-08-14 16:57:14 +00:00 committed by Philip Rebohle
parent efa6523e3e
commit b875d49c85
3 changed files with 22 additions and 11 deletions

View File

@ -0,0 +1,16 @@
#pragma once
#include <windows.h>
namespace dxvk::wsi {
/**
* \brief Impl-dependent state
*/
struct DxvkWindowState {
LONG style = 0;
LONG exstyle = 0;
RECT rect = { 0, 0, 0, 0 };
};
}

5
src/wsi/wsi_platform.h Normal file
View File

@ -0,0 +1,5 @@
#pragma once
#ifdef DXVK_WSI_WIN32
#include "win32/wsi_platform_win32.h"
#endif

View File

@ -3,22 +3,12 @@
#include <windows.h>
#include "wsi_monitor.h"
#include "wsi_platform.h"
#include "../vulkan/vulkan_loader.h"
namespace dxvk::wsi {
/**
* \brief Impl-dependent state
*/
struct DxvkWindowState {
#ifdef DXVK_WSI_WIN32
LONG style = 0;
LONG exstyle = 0;
RECT rect = { 0, 0, 0, 0 };
#endif
};
/**
* \brief The size of the window
*