1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-15 16:29:16 +01:00
dxvk/src/wsi/glfw/wsi_platform_glfw.h
2023-01-08 10:36:25 +01:00

23 lines
391 B
C++

#pragma once
#include "../../vulkan/vulkan_loader.h"
#include <GLFW/glfw3.h>
#include "../wsi_monitor.h"
namespace dxvk::wsi {
/**
* \brief Impl-dependent state
*/
struct DxvkWindowState {
};
inline bool isDisplayValid(int32_t displayId) {
int32_t displayCount = 0;
glfwGetMonitors(&displayCount);
return displayId < displayCount && displayId >= 0;
}
}