summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2020-03-12 03:52:47 -0400
committerGitHub <noreply@github.com>2020-03-12 03:52:47 -0400
commit15acce847d44564afcc5b49ef26171fe4c4e51d2 (patch)
tree92fb4573007ef87e27f5a7d7518e59f780fd9dec /Source/Core/Common
parentbb7623e3ba4c5ed1d7089e6c9be388d0f0272c2e (diff)
parentcdb0aa850da6fead21224eeed82df34e87e08fcc (diff)
Merge pull request #8666 from stenzek/fix-macos-vulkan-yet-again
Fix Vulkan/MoltenVK on macOS yet again
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/WindowSystemInfo.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/Core/Common/WindowSystemInfo.h b/Source/Core/Common/WindowSystemInfo.h
index 03f230f8e6..244a985cdf 100644
--- a/Source/Core/Common/WindowSystemInfo.h
+++ b/Source/Core/Common/WindowSystemInfo.h
@@ -18,8 +18,10 @@ enum class WindowSystemType
struct WindowSystemInfo
{
WindowSystemInfo() = default;
- WindowSystemInfo(WindowSystemType type_, void* display_connection_, void* render_surface_)
- : type(type_), display_connection(display_connection_), render_surface(render_surface_)
+ WindowSystemInfo(WindowSystemType type_, void* display_connection_, void* render_window_,
+ void* render_surface_)
+ : type(type_), display_connection(display_connection_), render_window(render_window_),
+ render_surface(render_surface_)
{
}
@@ -29,9 +31,14 @@ struct WindowSystemInfo
// Connection to a display server. This is used on X11 and Wayland platforms.
void* display_connection = nullptr;
- // Render surface. This is a pointer to the native window handle, which depends
+ // Render window. This is a pointer to the native window handle, which depends
// on the platform. e.g. HWND for Windows, Window for X11. If the surface is
// set to nullptr, the video backend will run in headless mode.
+ void* render_window = nullptr;
+
+ // Render surface. Depending on the host platform, this may differ from the window.
+ // This is kept seperate as input may require a different handle to rendering, and
+ // during video backend startup the surface pointer may change (MoltenVK).
void* render_surface = nullptr;
// Scale of the render surface. For hidpi systems, this will be >1.