Skip to content

Commit

Permalink
[native] Include all supported wsi backend headers
Browse files Browse the repository at this point in the history
So applications actually can support multiple backends with the same .so
  • Loading branch information
Blisto91 authored Nov 26, 2024
1 parent d7bd3cd commit 55e7120
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions include/native/wsi/native_wsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 not defined(DXVK_WSI_SDL3) || DXVK_WSI_SDL2 || DXVK_WSI_GLFW
#error Unknown wsi!
#endif
#endif

0 comments on commit 55e7120

Please sign in to comment.