From da7aded00d391cfb9f3e3ce531126eb8faf216fb Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Wed, 17 Aug 2022 18:06:25 -0700 Subject: [PATCH 1/2] Vulkan: Remove unused swap chain functions These were added in 5e29508b8f4747e92e8de68b75971f26e4a78cd4 and 1f2d43c8709e5fab2f8c3c7de81bdf160b5f6363, but were replaced with CONFIG_CHANGE_BIT_VSYNC and CONFIG_CHANGE_BIT_STEREO_MODE in e4b205c76937d379cd9043939e2cef1651b1a21b. --- Source/Core/VideoBackends/Vulkan/VKSwapChain.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/Core/VideoBackends/Vulkan/VKSwapChain.h b/Source/Core/VideoBackends/Vulkan/VKSwapChain.h index d83ee57051..5e67217f2d 100644 --- a/Source/Core/VideoBackends/Vulkan/VKSwapChain.h +++ b/Source/Core/VideoBackends/Vulkan/VKSwapChain.h @@ -34,8 +34,6 @@ public: VkSurfaceKHR GetSurface() const { return m_surface; } VkSurfaceFormatKHR GetSurfaceFormat() const { return m_surface_format; } AbstractTextureFormat GetTextureFormat() const { return m_texture_format; } - bool IsVSyncEnabled() const { return m_vsync_enabled; } - bool IsStereoEnabled() const { return m_layers == 2; } VkSwapchainKHR GetSwapChain() const { return m_swap_chain; } u32 GetWidth() const { return m_width; } u32 GetHeight() const { return m_height; } From 3c38f5c1d22c5b15703fe9ae6b3d566a8d426637 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Wed, 17 Aug 2022 18:16:50 -0700 Subject: [PATCH 2/2] D3DCommon: Remove unused swap chain functions These were added in ea15080d8f59a62ba347ff4c6037116035bc69b4 (which added D3DCommon), but never were used. --- Source/Core/VideoBackends/D3DCommon/SwapChain.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/Source/Core/VideoBackends/D3DCommon/SwapChain.h b/Source/Core/VideoBackends/D3DCommon/SwapChain.h index b632423bd5..debdd4d77a 100644 --- a/Source/Core/VideoBackends/D3DCommon/SwapChain.h +++ b/Source/Core/VideoBackends/D3DCommon/SwapChain.h @@ -29,9 +29,6 @@ public: AbstractTextureFormat GetFormat() const { return m_texture_format; } u32 GetWidth() const { return m_width; } u32 GetHeight() const { return m_height; } - u32 GetLayers() const { return m_stereo ? 2u : 1u; } - bool IsStereoEnabled() const { return m_stereo; } - bool HasExclusiveFullscreen() const { return m_has_fullscreen; } // Mode switches. bool GetFullscreen() const;