libs/vkd3d: Create Vulkan instance when creating D3D12 device.

We link directly to the Vulkan loader library and use few exported
procedures. According to the documentation the loader library
exports all core Vulkan procedures on Windows, Linux and Android.
This commit is contained in:
Józef Kucia
2016-09-22 16:56:58 +02:00
parent 19eca43f2c
commit f86ca50443
6 changed files with 375 additions and 2 deletions

View File

@@ -38,6 +38,12 @@ then
VKD3D_CHECK_CFLAGS([-Wvla])
fi
dnl Check for headers
AC_CHECK_HEADERS([vulkan/vulkan.h], [], [AC_MSG_ERROR([vulkan.h not found.])])
dnl Check for libraries
AC_CHECK_LIB([vulkan], [vkGetInstanceProcAddr], [], [AC_MSG_ERROR([libvulkan not found.])])
dnl Check for __sync_add_and_fetch
AC_MSG_CHECKING([for __sync_add_and_fetch])
AC_LINK_IFELSE(