summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common/vulkan_instance.h
blob: 5acca9756a064142243ddc4f417ba3135252c77a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2020 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include <utility>

#include "common/common_types.h"
#include "common/dynamic_library.h"
#include "core/frontend/emu_window.h"
#include "video_core/vulkan_common/vulkan_wrapper.h"

namespace Vulkan {

[[nodiscard]] std::pair<vk::Instance, u32> CreateInstance(
    const Common::DynamicLibrary& library, vk::InstanceDispatch& dld,
    Core::Frontend::WindowSystemType window_type = Core::Frontend::WindowSystemType::Headless,
    bool enable_debug_utils = false, bool enable_layers = false);

} // namespace Vulkan