mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-09-27 22:30:52 +08:00
We use the SDL Vulkan headers
This commit is contained in:
Vendored
+2
-454
File diff suppressed because it is too large
Load Diff
@@ -179,25 +179,6 @@ AC_SUBST(GLESLIB)
|
|||||||
AC_SUBST(GLES2LIB)
|
AC_SUBST(GLES2LIB)
|
||||||
AC_SUBST(XLIB)
|
AC_SUBST(XLIB)
|
||||||
|
|
||||||
dnl Check for Vulkan Header
|
|
||||||
have_vulkan_hdr=no
|
|
||||||
vsdk_include_dir="${VULKAN_SDK}/include"
|
|
||||||
vulkan_header="vulkan/vulkan.h"
|
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
|
||||||
CPPFLAGS="${save_CPPFLAGS} -I$vsdk_include_dir"
|
|
||||||
AC_CHECK_HEADER($vulkan_header,
|
|
||||||
have_vulkan_hdr=yes,
|
|
||||||
have_vulkan_hdr=no)
|
|
||||||
CPPFLAGS="$save_CPPFLAGS"
|
|
||||||
if test x$have_vulkan_hdr = xyes; then
|
|
||||||
# vulkan.h has been found in either $VULKAN_SDK/include or along the
|
|
||||||
# the standard include path. Unfortunately there seems no easy
|
|
||||||
# way to find out which, so...
|
|
||||||
if test -n "$VULKAN_SDK" -a -f "$vsdk_include_dir/$vulkan_header"; then
|
|
||||||
CFLAGS="$CFLAGS -I$vsdk_include_dir"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Check for SDL_ttf
|
dnl Check for SDL_ttf
|
||||||
AC_CHECK_LIB(SDL2_ttf, TTF_Init, have_SDL_ttf=yes)
|
AC_CHECK_LIB(SDL2_ttf, TTF_Init, have_SDL_ttf=yes)
|
||||||
if test x$have_SDL_ttf = xyes; then
|
if test x$have_SDL_ttf = xyes; then
|
||||||
|
|||||||
@@ -31,7 +31,12 @@ int main(int argc, char *argv[])
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
#define VK_NO_PROTOTYPES
|
#define VK_NO_PROTOTYPES
|
||||||
|
#ifdef HAVE_VULKAN_H
|
||||||
|
#include <vulkan/vulkan.h>
|
||||||
|
#else
|
||||||
|
/* SDL includes a copy for building on systems without the Vulkan SDK */
|
||||||
#include "../src/video/khronos/vulkan/vulkan.h"
|
#include "../src/video/khronos/vulkan/vulkan.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define VULKAN_FUNCTIONS() \
|
#define VULKAN_FUNCTIONS() \
|
||||||
VULKAN_DEVICE_FUNCTION(vkAcquireNextImageKHR) \
|
VULKAN_DEVICE_FUNCTION(vkAcquireNextImageKHR) \
|
||||||
|
|||||||
Reference in New Issue
Block a user