mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
Vulkan: use pkg-config instead of checking for Linux (#3440)
Makes Vulkan optional on Linux / makes it possible on FreeBSD.
This commit is contained in:
parent
669d953529
commit
07af701afe
8 changed files with 57 additions and 22 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <dxgi1_4.h>
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) || defined(__linux__)
|
||||
#if defined(_WIN32) || defined(HAVE_VULKAN)
|
||||
#include "Emu/RSX/VK/VKHelpers.h"
|
||||
#endif
|
||||
|
||||
|
@ -143,7 +143,7 @@ Render_Creator::Render_Creator()
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(WIN32) || defined(__linux__)
|
||||
#if defined(WIN32) || defined(HAVE_VULKAN)
|
||||
// check for vulkan adapters
|
||||
vk::context device_enum_context;
|
||||
u32 instance_handle = device_enum_context.createInstance("RPCS3", true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue