diff options
| author | 2021-01-16 20:24:23 -0300 | |
|---|---|---|
| committer | 2021-02-13 02:16:21 -0300 | |
| commit | dde19e7d7556ac1af0dd7d0ad89746c1d6c08aa8 (patch) | |
| tree | df41b4e8f2d2974695a9eada0d52f48708c7340c /src | |
| parent | gpu: Report renderer errors with exceptions (diff) | |
| download | yuzu-dde19e7d7556ac1af0dd7d0ad89746c1d6c08aa8.tar.gz yuzu-dde19e7d7556ac1af0dd7d0ad89746c1d6c08aa8.tar.xz yuzu-dde19e7d7556ac1af0dd7d0ad89746c1d6c08aa8.zip | |
vulkan_wrapper: Pull Windows symbols
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_wrapper.h | 11 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.cpp | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_wrapper.h b/src/video_core/vulkan_common/vulkan_wrapper.h index 4d8f14357..0c0e7230d 100644 --- a/src/video_core/vulkan_common/vulkan_wrapper.h +++ b/src/video_core/vulkan_common/vulkan_wrapper.h | |||
| @@ -15,8 +15,19 @@ | |||
| 15 | #include <vector> | 15 | #include <vector> |
| 16 | 16 | ||
| 17 | #define VK_NO_PROTOTYPES | 17 | #define VK_NO_PROTOTYPES |
| 18 | #ifdef _WIN32 | ||
| 19 | #define VK_USE_PLATFORM_WIN32_KHR | ||
| 20 | #endif | ||
| 18 | #include <vulkan/vulkan.h> | 21 | #include <vulkan/vulkan.h> |
| 19 | 22 | ||
| 23 | // Sanitize macros | ||
| 24 | #ifdef CreateEvent | ||
| 25 | #undef CreateEvent | ||
| 26 | #endif | ||
| 27 | #ifdef CreateSemaphore | ||
| 28 | #undef CreateSemaphore | ||
| 29 | #endif | ||
| 30 | |||
| 20 | #include "common/common_types.h" | 31 | #include "common/common_types.h" |
| 21 | 32 | ||
| 22 | #ifdef _MSC_VER | 33 | #ifdef _MSC_VER |
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp index b36d6a7c8..9ff32aec4 100644 --- a/src/yuzu/configuration/configure_graphics.cpp +++ b/src/yuzu/configuration/configure_graphics.cpp | |||
| @@ -2,6 +2,9 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | // Include this early to include Vulkan headers how we want to | ||
| 6 | #include "video_core/vulkan_common/vulkan_wrapper.h" | ||
| 7 | |||
| 5 | #include <QColorDialog> | 8 | #include <QColorDialog> |
| 6 | #include <QComboBox> | 9 | #include <QComboBox> |
| 7 | #include <QVulkanInstance> | 10 | #include <QVulkanInstance> |