#include #include namespace dxvk::wsi { inline GLFWwindow* fromHwnd(HWND hWindow) { return reinterpret_cast(hWindow); } inline HWND toHwnd(GLFWwindow* pWindow) { return reinterpret_cast(pWindow); } // Offset so null HMONITORs go to -1 inline int32_t fromHmonitor(HMONITOR hMonitor) { return static_cast(reinterpret_cast(hMonitor)) - 1; } // Offset so -1 display id goes to 0 == NULL inline HMONITOR toHmonitor(int32_t displayId) { return reinterpret_cast(static_cast(displayId + 1)); } }