diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-25 23:58:52 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:33 +0200 |
commit | a49532c8eb29807814214ab326ff970f5a964a03 (patch) | |
tree | 9de6e5b974641d7ee9a94235299325dc31eed186 /src/video_core | |
parent | gl_shader_cache: Rename Program abstractions into Pipeline (diff) | |
download | yuzu-a49532c8eb29807814214ab326ff970f5a964a03.tar yuzu-a49532c8eb29807814214ab326ff970f5a964a03.tar.gz yuzu-a49532c8eb29807814214ab326ff970f5a964a03.tar.bz2 yuzu-a49532c8eb29807814214ab326ff970f5a964a03.tar.lz yuzu-a49532c8eb29807814214ab326ff970f5a964a03.tar.xz yuzu-a49532c8eb29807814214ab326ff970f5a964a03.tar.zst yuzu-a49532c8eb29807814214ab326ff970f5a964a03.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/renderer_vulkan.cpp | 13 | ||||
-rw-r--r-- | src/video_core/renderer_vulkan/vk_scheduler.h | 2 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.cpp b/src/video_core/renderer_vulkan/renderer_vulkan.cpp index 7e39b65bd..d50647ba7 100644 --- a/src/video_core/renderer_vulkan/renderer_vulkan.cpp +++ b/src/video_core/renderer_vulkan/renderer_vulkan.cpp @@ -97,14 +97,19 @@ RendererVulkan::RendererVulkan(Core::TelemetrySession& telemetry_session_, Core::Frontend::EmuWindow& emu_window, Core::Memory::Memory& cpu_memory_, Tegra::GPU& gpu_, std::unique_ptr<Core::Frontend::GraphicsContext> context_) try - : RendererBase(emu_window, std::move(context_)), telemetry_session(telemetry_session_), - cpu_memory(cpu_memory_), gpu(gpu_), library(OpenLibrary()), + : RendererBase(emu_window, std::move(context_)), + telemetry_session(telemetry_session_), + cpu_memory(cpu_memory_), + gpu(gpu_), + library(OpenLibrary()), instance(CreateInstance(library, dld, VK_API_VERSION_1_1, render_window.GetWindowInfo().type, true, Settings::values.renderer_debug.GetValue())), debug_callback(Settings::values.renderer_debug ? CreateDebugCallback(instance) : nullptr), surface(CreateSurface(instance, render_window)), - device(CreateDevice(instance, dld, *surface)), memory_allocator(device, false), - state_tracker(gpu), scheduler(device, state_tracker), + device(CreateDevice(instance, dld, *surface)), + memory_allocator(device, false), + state_tracker(gpu), + scheduler(device, state_tracker), swapchain(*surface, device, scheduler, render_window.GetFramebufferLayout().width, render_window.GetFramebufferLayout().height, false), blit_screen(cpu_memory, render_window, device, memory_allocator, swapchain, scheduler, diff --git a/src/video_core/renderer_vulkan/vk_scheduler.h b/src/video_core/renderer_vulkan/vk_scheduler.h index 6600fb142..cf39a2363 100644 --- a/src/video_core/renderer_vulkan/vk_scheduler.h +++ b/src/video_core/renderer_vulkan/vk_scheduler.h @@ -6,11 +6,11 @@ #include <atomic> #include <condition_variable> -#include <queue> #include <cstddef> #include <memory> #include <thread> #include <utility> +#include <queue> #include "common/alignment.h" #include "common/common_types.h" |