vk: Refactor some uber-headers

- VKHelpers was the rug everything was swept under for a long time.
  This commit essentially deprecates its usage across most of the backend.
This commit is contained in:
kd-11 2021-01-09 21:46:50 +03:00 committed by kd-11
parent 9d74d42f2a
commit c2cbc62be6
74 changed files with 3932 additions and 3760 deletions

View file

@ -5,13 +5,14 @@
#include "Utilities/Thread.h"
#if defined(_WIN32) || defined(HAVE_VULKAN)
#include "Emu/RSX/VK/VKHelpers.h"
#include "Emu/RSX/VK/vkutils/instance.hpp"
#endif
#include <chrono>
#include <condition_variable>
#include <mutex>
#include <thread>
#include <util/logs.hpp>
LOG_CHANNEL(cfg_log, "CFG");
@ -39,11 +40,11 @@ render_creator::render_creator(QObject *parent) : QObject(parent)
{
thread_ctrl::set_native_priority(-1);
vk::context device_enum_context;
if (device_enum_context.createInstance("RPCS3", true))
vk::instance device_enum_context;
if (device_enum_context.create("RPCS3", true))
{
device_enum_context.makeCurrentInstance();
std::vector<vk::physical_device>& gpus = device_enum_context.enumerateDevices();
device_enum_context.bind();
std::vector<vk::physical_device>& gpus = device_enum_context.enumerate_devices();
if (!gpus.empty())
{