forked from suyu/suyu
11f0f7598d
Move surface initialization code to a separate file. It's unlikely to use this code outside of Vulkan, but keeping platform-specific code (Win32, Xlib, Wayland) in its own translation unit keeps things cleaner.
18 lines
449 B
C++
18 lines
449 B
C++
// Copyright 2020 yuzu Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "video_core/vulkan_common/vulkan_wrapper.h"
|
|
|
|
namespace Core::Frontend {
|
|
class EmuWindow;
|
|
}
|
|
|
|
namespace Vulkan {
|
|
|
|
[[nodiscard]] vk::SurfaceKHR CreateSurface(const vk::Instance& instance,
|
|
const Core::Frontend::EmuWindow& emu_window);
|
|
|
|
} // namespace Vulkan
|