[native] Include all supported wsi backend headers

So applications actually can support multiple backends with the same .so
This commit is contained in:
Blisto91 2024-11-26 17:17:37 +01:00
parent d7bd3cd58e
commit 51bffe6348

View file

@ -2,12 +2,20 @@
#ifdef DXVK_WSI_WIN32
#error You shouldnt be using this code path.
#elif DXVK_WSI_SDL3
#endif
#ifdef DXVK_WSI_SDL3
#include "wsi/native_sdl3.h"
#elif DXVK_WSI_SDL2
#endif
#ifdef DXVK_WSI_SDL2
#include "wsi/native_sdl2.h"
#elif DXVK_WSI_GLFW
#endif
#ifdef DXVK_WSI_GLFW
#include "wsi/native_glfw.h"
#else
#endif
#if !definedDXVK_WSI_SDL3) && !defined(DXVK_WSI_SDL2) && !defined(DXVK_WSI_GLFW)
#error Unknown wsi!
#endif
#endif