summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2021-12-09 18:22:16 -0800
committerPokechu22 <Pokechu022@gmail.com>2021-12-10 14:49:57 -0800
commit20257634209dba85d2cd51ad42e660090a5224e6 (patch)
tree9b89dd27ea346edb18349c7e68b3f498c178d64f /Source/Core/VideoBackends
parent9304fe7124c145c859daeef37a247591c68c7c61 (diff)
Treewide: Adjust order of includes
Diffstat (limited to 'Source/Core/VideoBackends')
-rw-r--r--Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp3
-rw-r--r--Source/Core/VideoBackends/D3D/D3DMain.cpp3
-rw-r--r--Source/Core/VideoBackends/D3D/D3DState.cpp3
-rw-r--r--Source/Core/VideoBackends/D3D/D3DSwapChain.cpp1
-rw-r--r--Source/Core/VideoBackends/D3D/DXPipeline.cpp3
-rw-r--r--Source/Core/VideoBackends/D3D/DXPipeline.h2
-rw-r--r--Source/Core/VideoBackends/D3D/DXShader.cpp2
-rw-r--r--Source/Core/VideoBackends/D3D/DXTexture.cpp3
-rw-r--r--Source/Core/VideoBackends/D3D/DXTexture.h2
-rw-r--r--Source/Core/VideoBackends/D3D12/D3D12BoundingBox.cpp2
-rw-r--r--Source/Core/VideoBackends/D3D12/D3D12Renderer.cpp3
-rw-r--r--Source/Core/VideoBackends/D3D12/D3D12SwapChain.cpp1
-rw-r--r--Source/Core/VideoBackends/D3D12/D3D12VertexManager.cpp2
-rw-r--r--Source/Core/VideoBackends/D3D12/DX12Pipeline.cpp3
-rw-r--r--Source/Core/VideoBackends/D3D12/DX12Texture.cpp2
-rw-r--r--Source/Core/VideoBackends/D3D12/DescriptorAllocator.cpp1
-rw-r--r--Source/Core/VideoBackends/D3D12/DescriptorHeapManager.cpp2
-rw-r--r--Source/Core/VideoBackends/D3D12/VideoBackend.cpp3
-rw-r--r--Source/Core/VideoBackends/D3DCommon/D3DCommon.cpp4
-rw-r--r--Source/Core/VideoBackends/D3DCommon/Shader.cpp4
-rw-r--r--Source/Core/VideoBackends/Null/NullBackend.cpp9
-rw-r--r--Source/Core/VideoBackends/OGL/OGLMain.cpp3
-rw-r--r--Source/Core/VideoBackends/OGL/OGLPipeline.cpp3
-rw-r--r--Source/Core/VideoBackends/OGL/OGLShader.cpp1
-rw-r--r--Source/Core/VideoBackends/OGL/OGLTexture.cpp3
-rw-r--r--Source/Core/VideoBackends/OGL/SamplerCache.cpp2
-rw-r--r--Source/Core/VideoBackends/Software/EfbCopy.cpp1
-rw-r--r--Source/Core/VideoBackends/Software/SWOGLWindow.cpp3
-rw-r--r--Source/Core/VideoBackends/Software/SWTexture.cpp3
-rw-r--r--Source/Core/VideoBackends/Software/SWmain.cpp3
-rw-r--r--Source/Core/VideoBackends/Software/SetupUnit.cpp6
-rw-r--r--Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp2
-rw-r--r--Source/Core/VideoBackends/Vulkan/StagingBuffer.cpp3
-rw-r--r--Source/Core/VideoBackends/Vulkan/VKBoundingBox.cpp3
-rw-r--r--Source/Core/VideoBackends/Vulkan/VKMain.cpp3
-rw-r--r--Source/Core/VideoBackends/Vulkan/VKRenderer.cpp3
-rw-r--r--Source/Core/VideoBackends/Vulkan/VKShader.cpp3
-rw-r--r--Source/Core/VideoBackends/Vulkan/VKTexture.cpp3
-rw-r--r--Source/Core/VideoBackends/Vulkan/VulkanContext.cpp3
-rw-r--r--Source/Core/VideoBackends/Vulkan/VulkanLoader.cpp4
40 files changed, 75 insertions, 38 deletions
diff --git a/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp b/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp
index f4ab892a18..830ae1f9a4 100644
--- a/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp
+++ b/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp
@@ -1,12 +1,13 @@
// Copyright 2014 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/D3D/D3DBoundingBox.h"
+
#include <algorithm>
#include <array>
#include "Common/CommonTypes.h"
#include "Common/MsgHandler.h"
-#include "VideoBackends/D3D/D3DBoundingBox.h"
#include "VideoBackends/D3D/D3DState.h"
#include "VideoBackends/D3DCommon/D3DCommon.h"
diff --git a/Source/Core/VideoBackends/D3D/D3DMain.cpp b/Source/Core/VideoBackends/D3D/D3DMain.cpp
index f101f60321..a74fb1bb2f 100644
--- a/Source/Core/VideoBackends/D3D/D3DMain.cpp
+++ b/Source/Core/VideoBackends/D3D/D3DMain.cpp
@@ -1,6 +1,8 @@
// Copyright 2008 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/D3D/VideoBackend.h"
+
#include <memory>
#include <string>
@@ -15,7 +17,6 @@
#include "VideoBackends/D3D/D3DRender.h"
#include "VideoBackends/D3D/D3DSwapChain.h"
#include "VideoBackends/D3D/D3DVertexManager.h"
-#include "VideoBackends/D3D/VideoBackend.h"
#include "VideoBackends/D3DCommon/D3DCommon.h"
#include "VideoCommon/FramebufferManager.h"
diff --git a/Source/Core/VideoBackends/D3D/D3DState.cpp b/Source/Core/VideoBackends/D3D/D3DState.cpp
index 63d5a61cca..7fd103d0bd 100644
--- a/Source/Core/VideoBackends/D3D/D3DState.cpp
+++ b/Source/Core/VideoBackends/D3D/D3DState.cpp
@@ -1,6 +1,8 @@
// Copyright 2014 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/D3D/D3DState.h"
+
#include <algorithm>
#include <array>
@@ -10,7 +12,6 @@
#include "Common/MsgHandler.h"
#include "VideoBackends/D3D/D3DBase.h"
-#include "VideoBackends/D3D/D3DState.h"
#include "VideoBackends/D3D/DXTexture.h"
#include "VideoBackends/D3DCommon/D3DCommon.h"
#include "VideoCommon/VideoConfig.h"
diff --git a/Source/Core/VideoBackends/D3D/D3DSwapChain.cpp b/Source/Core/VideoBackends/D3D/D3DSwapChain.cpp
index feec0fab5c..95ed7fdb2a 100644
--- a/Source/Core/VideoBackends/D3D/D3DSwapChain.cpp
+++ b/Source/Core/VideoBackends/D3D/D3DSwapChain.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/D3D/D3DSwapChain.h"
+
#include "VideoBackends/D3D/DXTexture.h"
namespace DX11
diff --git a/Source/Core/VideoBackends/D3D/DXPipeline.cpp b/Source/Core/VideoBackends/D3D/DXPipeline.cpp
index 0012d38403..0bdfeb0012 100644
--- a/Source/Core/VideoBackends/D3D/DXPipeline.cpp
+++ b/Source/Core/VideoBackends/D3D/DXPipeline.cpp
@@ -1,6 +1,8 @@
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/D3D/DXPipeline.h"
+
#include "Common/Assert.h"
#include "Common/Logging/Log.h"
@@ -8,7 +10,6 @@
#include "VideoBackends/D3D/D3DRender.h"
#include "VideoBackends/D3D/D3DState.h"
#include "VideoBackends/D3D/D3DVertexManager.h"
-#include "VideoBackends/D3D/DXPipeline.h"
#include "VideoBackends/D3D/DXShader.h"
#include "VideoBackends/D3D/DXTexture.h"
#include "VideoCommon/VideoConfig.h"
diff --git a/Source/Core/VideoBackends/D3D/DXPipeline.h b/Source/Core/VideoBackends/D3D/DXPipeline.h
index 1dc1f9b8de..611f709ecc 100644
--- a/Source/Core/VideoBackends/D3D/DXPipeline.h
+++ b/Source/Core/VideoBackends/D3D/DXPipeline.h
@@ -5,6 +5,8 @@
#include <d3d11.h>
#include <memory>
+
+#include "VideoBackends/D3D/D3DBase.h"
#include "VideoCommon/AbstractPipeline.h"
namespace DX11
diff --git a/Source/Core/VideoBackends/D3D/DXShader.cpp b/Source/Core/VideoBackends/D3D/DXShader.cpp
index 58d2ed6bf8..9f7619ce76 100644
--- a/Source/Core/VideoBackends/D3D/DXShader.cpp
+++ b/Source/Core/VideoBackends/D3D/DXShader.cpp
@@ -2,7 +2,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/D3D/DXShader.h"
+
#include "Common/Assert.h"
+
#include "VideoBackends/D3D/D3DBase.h"
namespace DX11
diff --git a/Source/Core/VideoBackends/D3D/DXTexture.cpp b/Source/Core/VideoBackends/D3D/DXTexture.cpp
index 1247b32fc7..097c4c28de 100644
--- a/Source/Core/VideoBackends/D3D/DXTexture.cpp
+++ b/Source/Core/VideoBackends/D3D/DXTexture.cpp
@@ -1,6 +1,8 @@
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/D3D/DXTexture.h"
+
#include <algorithm>
#include <cstddef>
@@ -9,7 +11,6 @@
#include "Common/Logging/Log.h"
#include "VideoBackends/D3D/D3DState.h"
-#include "VideoBackends/D3D/DXTexture.h"
#include "VideoBackends/D3DCommon/D3DCommon.h"
#include "VideoCommon/VideoConfig.h"
diff --git a/Source/Core/VideoBackends/D3D/DXTexture.h b/Source/Core/VideoBackends/D3D/DXTexture.h
index a49b4902e4..2248d45694 100644
--- a/Source/Core/VideoBackends/D3D/DXTexture.h
+++ b/Source/Core/VideoBackends/D3D/DXTexture.h
@@ -7,8 +7,10 @@
#include <memory>
#include <string>
#include <string_view>
+
#include "Common/CommonTypes.h"
+#include "VideoBackends/D3D/D3DBase.h"
#include "VideoCommon/AbstractFramebuffer.h"
#include "VideoCommon/AbstractStagingTexture.h"
#include "VideoCommon/AbstractTexture.h"
diff --git a/Source/Core/VideoBackends/D3D12/D3D12BoundingBox.cpp b/Source/Core/VideoBackends/D3D12/D3D12BoundingBox.cpp
index 9a548f0111..3c326455dd 100644
--- a/Source/Core/VideoBackends/D3D12/D3D12BoundingBox.cpp
+++ b/Source/Core/VideoBackends/D3D12/D3D12BoundingBox.cpp
@@ -2,7 +2,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/D3D12/D3D12BoundingBox.h"
+
#include "Common/Logging/Log.h"
+
#include "VideoBackends/D3D12/D3D12Renderer.h"
#include "VideoBackends/D3D12/DX12Context.h"
diff --git a/Source/Core/VideoBackends/D3D12/D3D12Renderer.cpp b/Source/Core/VideoBackends/D3D12/D3D12Renderer.cpp
index 60ba5eddc5..ece8f14d88 100644
--- a/Source/Core/VideoBackends/D3D12/D3D12Renderer.cpp
+++ b/Source/Core/VideoBackends/D3D12/D3D12Renderer.cpp
@@ -1,12 +1,13 @@
// Copyright 2019 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/D3D12/D3D12Renderer.h"
+
#include "Common/Logging/Log.h"
#include "VideoBackends/D3D12/Common.h"
#include "VideoBackends/D3D12/D3D12BoundingBox.h"
#include "VideoBackends/D3D12/D3D12PerfQuery.h"
-#include "VideoBackends/D3D12/D3D12Renderer.h"
#include "VideoBackends/D3D12/D3D12SwapChain.h"
#include "VideoBackends/D3D12/DX12Context.h"
#include "VideoBackends/D3D12/DX12Pipeline.h"
diff --git a/Source/Core/VideoBackends/D3D12/D3D12SwapChain.cpp b/Source/Core/VideoBackends/D3D12/D3D12SwapChain.cpp
index 5557fbfe2e..f7607fb437 100644
--- a/Source/Core/VideoBackends/D3D12/D3D12SwapChain.cpp
+++ b/Source/Core/VideoBackends/D3D12/D3D12SwapChain.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/D3D12/D3D12SwapChain.h"
+
#include "VideoBackends/D3D12/DX12Context.h"
#include "VideoBackends/D3D12/DX12Texture.h"
diff --git a/Source/Core/VideoBackends/D3D12/D3D12VertexManager.cpp b/Source/Core/VideoBackends/D3D12/D3D12VertexManager.cpp
index 057e662df2..b85e4e459c 100644
--- a/Source/Core/VideoBackends/D3D12/D3D12VertexManager.cpp
+++ b/Source/Core/VideoBackends/D3D12/D3D12VertexManager.cpp
@@ -1,8 +1,6 @@
// Copyright 2019 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include "Common/CommonTypes.h"
-
#include "VideoBackends/D3D12/D3D12VertexManager.h"
#include "Common/Align.h"
diff --git a/Source/Core/VideoBackends/D3D12/DX12Pipeline.cpp b/Source/Core/VideoBackends/D3D12/DX12Pipeline.cpp
index 776f1a8811..aa20f35bd6 100644
--- a/Source/Core/VideoBackends/D3D12/DX12Pipeline.cpp
+++ b/Source/Core/VideoBackends/D3D12/DX12Pipeline.cpp
@@ -1,12 +1,13 @@
// Copyright 2019 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/D3D12/DX12Pipeline.h"
+
#include "Common/Assert.h"
#include "Common/MsgHandler.h"
#include "VideoBackends/D3D12/Common.h"
#include "VideoBackends/D3D12/DX12Context.h"
-#include "VideoBackends/D3D12/DX12Pipeline.h"
#include "VideoBackends/D3D12/DX12Shader.h"
#include "VideoBackends/D3D12/DX12Texture.h"
#include "VideoBackends/D3D12/DX12VertexFormat.h"
diff --git a/Source/Core/VideoBackends/D3D12/DX12Texture.cpp b/Source/Core/VideoBackends/D3D12/DX12Texture.cpp
index 34d0670a1f..69b9b754d1 100644
--- a/Source/Core/VideoBackends/D3D12/DX12Texture.cpp
+++ b/Source/Core/VideoBackends/D3D12/DX12Texture.cpp
@@ -2,9 +2,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/D3D12/DX12Texture.h"
+
#include "Common/Align.h"
#include "Common/Assert.h"
#include "Common/StringUtil.h"
+
#include "VideoBackends/D3D12/Common.h"
#include "VideoBackends/D3D12/D3D12Renderer.h"
#include "VideoBackends/D3D12/D3D12StreamBuffer.h"
diff --git a/Source/Core/VideoBackends/D3D12/DescriptorAllocator.cpp b/Source/Core/VideoBackends/D3D12/DescriptorAllocator.cpp
index 5bd022d779..bfc1c43d8c 100644
--- a/Source/Core/VideoBackends/D3D12/DescriptorAllocator.cpp
+++ b/Source/Core/VideoBackends/D3D12/DescriptorAllocator.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/D3D12/DescriptorAllocator.h"
+
#include "VideoBackends/D3D12/DX12Context.h"
namespace DX12
diff --git a/Source/Core/VideoBackends/D3D12/DescriptorHeapManager.cpp b/Source/Core/VideoBackends/D3D12/DescriptorHeapManager.cpp
index 537561559c..e175d6ef63 100644
--- a/Source/Core/VideoBackends/D3D12/DescriptorHeapManager.cpp
+++ b/Source/Core/VideoBackends/D3D12/DescriptorHeapManager.cpp
@@ -2,7 +2,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/D3D12/DescriptorHeapManager.h"
+
#include "Common/Assert.h"
+
#include "VideoBackends/D3D12/DX12Context.h"
#include "VideoCommon/VideoConfig.h"
diff --git a/Source/Core/VideoBackends/D3D12/VideoBackend.cpp b/Source/Core/VideoBackends/D3D12/VideoBackend.cpp
index a82dd428a5..c3fd307a06 100644
--- a/Source/Core/VideoBackends/D3D12/VideoBackend.cpp
+++ b/Source/Core/VideoBackends/D3D12/VideoBackend.cpp
@@ -1,6 +1,8 @@
// Copyright 2016 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/D3D12/VideoBackend.h"
+
#include <string>
#include "Common/CommonTypes.h"
@@ -14,7 +16,6 @@
#include "VideoBackends/D3D12/D3D12SwapChain.h"
#include "VideoBackends/D3D12/D3D12VertexManager.h"
#include "VideoBackends/D3D12/DX12Context.h"
-#include "VideoBackends/D3D12/VideoBackend.h"
#include "VideoCommon/FramebufferManager.h"
#include "VideoCommon/ShaderCache.h"
diff --git a/Source/Core/VideoBackends/D3DCommon/D3DCommon.cpp b/Source/Core/VideoBackends/D3DCommon/D3DCommon.cpp
index 075c5abec6..0f491af434 100644
--- a/Source/Core/VideoBackends/D3DCommon/D3DCommon.cpp
+++ b/Source/Core/VideoBackends/D3DCommon/D3DCommon.cpp
@@ -1,6 +1,8 @@
// Copyright 2019 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/D3DCommon/D3DCommon.h"
+
#include <d3d11.h>
#include <d3d12.h>
#include <dxgi1_3.h>
@@ -10,7 +12,7 @@
#include "Common/DynamicLibrary.h"
#include "Common/MsgHandler.h"
#include "Common/StringUtil.h"
-#include "VideoBackends/D3DCommon/D3DCommon.h"
+
#include "VideoCommon/TextureConfig.h"
#include "VideoCommon/VideoConfig.h"
diff --git a/Source/Core/VideoBackends/D3DCommon/Shader.cpp b/Source/Core/VideoBackends/D3DCommon/Shader.cpp
index 26eeb78092..15be6cff43 100644
--- a/Source/Core/VideoBackends/D3DCommon/Shader.cpp
+++ b/Source/Core/VideoBackends/D3DCommon/Shader.cpp
@@ -1,6 +1,8 @@
// Copyright 2019 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/D3DCommon/Shader.h"
+
#include <fstream>
#include <wrl/client.h>
@@ -11,8 +13,6 @@
#include "Common/StringUtil.h"
#include "Common/Version.h"
-#include "VideoBackends/D3DCommon/Shader.h"
-
#include "VideoCommon/VideoBackendBase.h"
#include "VideoCommon/VideoConfig.h"
diff --git a/Source/Core/VideoBackends/Null/NullBackend.cpp b/Source/Core/VideoBackends/Null/NullBackend.cpp
index 78ce7f1afe..d6bd70c50a 100644
--- a/Source/Core/VideoBackends/Null/NullBackend.cpp
+++ b/Source/Core/VideoBackends/Null/NullBackend.cpp
@@ -6,15 +6,16 @@
// This backend tries not to do anything in the backend,
// but everything in VideoCommon.
-#include "VideoBackends/Null/NullRender.h"
-#include "VideoBackends/Null/NullVertexManager.h"
-#include "VideoBackends/Null/PerfQuery.h"
-#include "VideoBackends/Null/TextureCache.h"
#include "VideoBackends/Null/VideoBackend.h"
#include "Common/Common.h"
#include "Common/MsgHandler.h"
+#include "VideoBackends/Null/NullRender.h"
+#include "VideoBackends/Null/NullVertexManager.h"
+#include "VideoBackends/Null/PerfQuery.h"
+#include "VideoBackends/Null/TextureCache.h"
+
#include "VideoCommon/FramebufferManager.h"
#include "VideoCommon/VideoBackendBase.h"
#include "VideoCommon/VideoCommon.h"
diff --git a/Source/Core/VideoBackends/OGL/OGLMain.cpp b/Source/Core/VideoBackends/OGL/OGLMain.cpp
index 537058a565..b83c3af638 100644
--- a/Source/Core/VideoBackends/OGL/OGLMain.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLMain.cpp
@@ -33,6 +33,8 @@ Make AA apply instantly during gameplay if possible
*/
+#include "VideoBackends/OGL/VideoBackend.h"
+
#include <memory>
#include <string>
#include <vector>
@@ -49,7 +51,6 @@ Make AA apply instantly during gameplay if possible
#include "VideoBackends/OGL/OGLVertexManager.h"
#include "VideoBackends/OGL/ProgramShaderCache.h"
#include "VideoBackends/OGL/SamplerCache.h"
-#include "VideoBackends/OGL/VideoBackend.h"
#include "VideoCommon/FramebufferManager.h"
#include "VideoCommon/TextureCacheBase.h"
diff --git a/Source/Core/VideoBackends/OGL/OGLPipeline.cpp b/Source/Core/VideoBackends/OGL/OGLPipeline.cpp
index ee45fe868b..b4962cf270 100644
--- a/Source/Core/VideoBackends/OGL/OGLPipeline.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLPipeline.cpp
@@ -1,9 +1,10 @@
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/OGL/OGLPipeline.h"
+
#include "Common/Assert.h"
-#include "VideoBackends/OGL/OGLPipeline.h"
#include "VideoBackends/OGL/OGLRender.h"
#include "VideoBackends/OGL/OGLShader.h"
#include "VideoBackends/OGL/OGLVertexManager.h"
diff --git a/Source/Core/VideoBackends/OGL/OGLShader.cpp b/Source/Core/VideoBackends/OGL/OGLShader.cpp
index 11914f0355..4ba2143c6e 100644
--- a/Source/Core/VideoBackends/OGL/OGLShader.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLShader.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/OGL/OGLShader.h"
+
#include "VideoBackends/OGL/ProgramShaderCache.h"
namespace OGL
diff --git a/Source/Core/VideoBackends/OGL/OGLTexture.cpp b/Source/Core/VideoBackends/OGL/OGLTexture.cpp
index 83c1d1b419..cf3c5f772b 100644
--- a/Source/Core/VideoBackends/OGL/OGLTexture.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLTexture.cpp
@@ -1,11 +1,12 @@
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/OGL/OGLTexture.h"
+
#include "Common/Assert.h"
#include "Common/CommonTypes.h"
#include "Common/MsgHandler.h"
-#include "VideoBackends/OGL/OGLTexture.h"
#include "VideoBackends/OGL/SamplerCache.h"
namespace OGL
diff --git a/Source/Core/VideoBackends/OGL/SamplerCache.cpp b/Source/Core/VideoBackends/OGL/SamplerCache.cpp
index 286f654de2..ed14c11a47 100644
--- a/Source/Core/VideoBackends/OGL/SamplerCache.cpp
+++ b/Source/Core/VideoBackends/OGL/SamplerCache.cpp
@@ -2,11 +2,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/OGL/SamplerCache.h"
-#include "VideoBackends/OGL/OGLRender.h"
#include <memory>
#include "Common/CommonTypes.h"
+#include "VideoBackends/OGL/OGLRender.h"
#include "VideoCommon/VideoConfig.h"
namespace OGL
diff --git a/Source/Core/VideoBackends/Software/EfbCopy.cpp b/Source/Core/VideoBackends/Software/EfbCopy.cpp
index 31fdf3f421..c23ca5622c 100644
--- a/Source/Core/VideoBackends/Software/EfbCopy.cpp
+++ b/Source/Core/VideoBackends/Software/EfbCopy.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/Software/EfbCopy.h"
+
#include "Common/CommonTypes.h"
#include "Common/Logging/Log.h"
#include "Core/HW/Memmap.h"
diff --git a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp
index 0b185aeb64..387375cc85 100644
--- a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp
+++ b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp
@@ -1,6 +1,8 @@
// Copyright 2015 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/Software/SWOGLWindow.h"
+
#include <memory>
#include "Common/GL/GLContext.h"
@@ -8,7 +10,6 @@
#include "Common/Logging/Log.h"
#include "Common/MsgHandler.h"
-#include "VideoBackends/Software/SWOGLWindow.h"
#include "VideoBackends/Software/SWTexture.h"
SWOGLWindow::SWOGLWindow() = default;
diff --git a/Source/Core/VideoBackends/Software/SWTexture.cpp b/Source/Core/VideoBackends/Software/SWTexture.cpp
index a70f1b0704..082c26371e 100644
--- a/Source/Core/VideoBackends/Software/SWTexture.cpp
+++ b/Source/Core/VideoBackends/Software/SWTexture.cpp
@@ -2,12 +2,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/Software/SWTexture.h"
-#include "VideoBackends/Software/SWRenderer.h"
#include <cstring>
+
#include "Common/Assert.h"
#include "VideoBackends/Software/CopyRegion.h"
+#include "VideoBackends/Software/SWRenderer.h"
namespace SW
{
diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp
index fa6f89ba2d..6a12c467d8 100644
--- a/Source/Core/VideoBackends/Software/SWmain.cpp
+++ b/Source/Core/VideoBackends/Software/SWmain.cpp
@@ -1,6 +1,8 @@
// Copyright 2009 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/Software/VideoBackend.h"
+
#include <cstring>
#include <memory>
#include <string>
@@ -20,7 +22,6 @@
#include "VideoBackends/Software/SWTexture.h"
#include "VideoBackends/Software/SWVertexLoader.h"
#include "VideoBackends/Software/TextureCache.h"
-#include "VideoBackends/Software/VideoBackend.h"
#include "VideoCommon/FramebufferManager.h"
#include "VideoCommon/TextureCacheBase.h"
diff --git a/Source/Core/VideoBackends/Software/SetupUnit.cpp b/Source/Core/VideoBackends/Software/SetupUnit.cpp
index d73bdfc572..b2488a63d8 100644
--- a/Source/Core/VideoBackends/Software/SetupUnit.cpp
+++ b/Source/Core/VideoBackends/Software/SetupUnit.cpp
@@ -1,14 +1,12 @@
// Copyright 2009 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <cstring>
-
#include "VideoBackends/Software/SetupUnit.h"
-#include "Common/Logging/Log.h"
+#include <cstring>
+#include "Common/Logging/Log.h"
#include "VideoBackends/Software/Clipper.h"
-
#include "VideoCommon/OpcodeDecoding.h"
void SetupUnit::Init(u8 primitiveType)
diff --git a/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp b/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp
index a06cab771e..c28b3cced2 100644
--- a/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp
+++ b/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp
@@ -2,7 +2,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/Vulkan/ShaderCompiler.h"
-#include "VideoBackends/Vulkan/VulkanContext.h"
#include <cstddef>
#include <cstdlib>
@@ -23,6 +22,7 @@
#include "Common/StringUtil.h"
#include "Common/Version.h"
+#include "VideoBackends/Vulkan/VulkanContext.h"
#include "VideoCommon/VideoBackendBase.h"
#include "VideoCommon/VideoConfig.h"
diff --git a/Source/Core/VideoBackends/Vulkan/StagingBuffer.cpp b/Source/Core/VideoBackends/Vulkan/StagingBuffer.cpp
index af0152f8b4..5030350282 100644
--- a/Source/Core/VideoBackends/Vulkan/StagingBuffer.cpp
+++ b/Source/Core/VideoBackends/Vulkan/StagingBuffer.cpp
@@ -1,13 +1,14 @@
// Copyright 2016 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/Vulkan/StagingBuffer.h"
+
#include <algorithm>
#include <cstring>
#include "Common/Assert.h"
#include "VideoBackends/Vulkan/CommandBufferManager.h"
-#include "VideoBackends/Vulkan/StagingBuffer.h"
#include "VideoBackends/Vulkan/VulkanContext.h"
namespace Vulkan
diff --git a/Source/Core/VideoBackends/Vulkan/VKBoundingBox.cpp b/Source/Core/VideoBackends/Vulkan/VKBoundingBox.cpp
index 7e4b13408a..3138a31602 100644
--- a/Source/Core/VideoBackends/Vulkan/VKBoundingBox.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VKBoundingBox.cpp
@@ -1,6 +1,8 @@
// Copyright 2016 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/Vulkan/VKBoundingBox.h"
+
#include <vector>
#include "Common/Logging/Log.h"
@@ -9,7 +11,6 @@
#include "VideoBackends/Vulkan/ObjectCache.h"
#include "VideoBackends/Vulkan/StagingBuffer.h"
#include "VideoBackends/Vulkan/StateTracker.h"
-#include "VideoBackends/Vulkan/VKBoundingBox.h"
#include "VideoBackends/Vulkan/VKRenderer.h"
#include "VideoBackends/Vulkan/VulkanContext.h"
diff --git a/Source/Core/VideoBackends/Vulkan/VKMain.cpp b/Source/Core/VideoBackends/Vulkan/VKMain.cpp
index abe531aac3..56cf93a376 100644
--- a/Source/Core/VideoBackends/Vulkan/VKMain.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VKMain.cpp
@@ -1,6 +1,8 @@
// Copyright 2016 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/Vulkan/VideoBackend.h"
+
#include <vector>
#include "Common/Logging/LogManager.h"
@@ -14,7 +16,6 @@
#include "VideoBackends/Vulkan/VKRenderer.h"
#include "VideoBackends/Vulkan/VKSwapChain.h"
#include "VideoBackends/Vulkan/VKVertexManager.h"
-#include "VideoBackends/Vulkan/VideoBackend.h"
#include "VideoBackends/Vulkan/VulkanContext.h"
#include "VideoCommon/FramebufferManager.h"
diff --git a/Source/Core/VideoBackends/Vulkan/VKRenderer.cpp b/Source/Core/VideoBackends/Vulkan/VKRenderer.cpp
index 35c092c147..db5037f427 100644
--- a/Source/Core/VideoBackends/Vulkan/VKRenderer.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VKRenderer.cpp
@@ -1,6 +1,8 @@
// Copyright 2016 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/Vulkan/VKRenderer.h"
+
#include <algorithm>
#include <cstddef>
#include <cstdio>
@@ -22,7 +24,6 @@
#include "VideoBackends/Vulkan/VKBoundingBox.h"
#include "VideoBackends/Vulkan/VKPerfQuery.h"
#include "VideoBackends/Vulkan/VKPipeline.h"
-#include "VideoBackends/Vulkan/VKRenderer.h"
#include "VideoBackends/Vulkan/VKShader.h"
#include "VideoBackends/Vulkan/VKStreamBuffer.h"
#include "VideoBackends/Vulkan/VKSwapChain.h"
diff --git a/Source/Core/VideoBackends/Vulkan/VKShader.cpp b/Source/Core/VideoBackends/Vulkan/VKShader.cpp
index cd910b898a..3d5beae387 100644
--- a/Source/Core/VideoBackends/Vulkan/VKShader.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VKShader.cpp
@@ -1,12 +1,13 @@
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/Vulkan/VKShader.h"
+
#include "Common/Align.h"
#include "Common/Assert.h"
#include "VideoBackends/Vulkan/ObjectCache.h"
#include "VideoBackends/Vulkan/ShaderCompiler.h"
-#include "VideoBackends/Vulkan/VKShader.h"
#include "VideoBackends/Vulkan/VulkanContext.h"
namespace Vulkan
diff --git a/Source/Core/VideoBackends/Vulkan/VKTexture.cpp b/Source/Core/VideoBackends/Vulkan/VKTexture.cpp
index f744eb2e79..98128c85f6 100644
--- a/Source/Core/VideoBackends/Vulkan/VKTexture.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VKTexture.cpp
@@ -1,6 +1,8 @@
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/Vulkan/VKTexture.h"
+
#include <algorithm>
#include <cstddef>
#include <cstring>
@@ -17,7 +19,6 @@
#include "VideoBackends/Vulkan/StateTracker.h"
#include "VideoBackends/Vulkan/VKRenderer.h"
#include "VideoBackends/Vulkan/VKStreamBuffer.h"
-#include "VideoBackends/Vulkan/VKTexture.h"
#include "VideoBackends/Vulkan/VulkanContext.h"
namespace Vulkan
diff --git a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
index a571c6c38d..d8a2ab0a47 100644
--- a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
@@ -1,6 +1,8 @@
// Copyright 2016 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/Vulkan/VulkanContext.h"
+
#include <algorithm>
#include <array>
#include <cstring>
@@ -11,7 +13,6 @@
#include "Common/MsgHandler.h"
#include "Common/StringUtil.h"
-#include "VideoBackends/Vulkan/VulkanContext.h"
#include "VideoCommon/DriverDetails.h"
#include "VideoCommon/VideoCommon.h"
diff --git a/Source/Core/VideoBackends/Vulkan/VulkanLoader.cpp b/Source/Core/VideoBackends/Vulkan/VulkanLoader.cpp
index 7c94da05e7..6b1f688e78 100644
--- a/Source/Core/VideoBackends/Vulkan/VulkanLoader.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VulkanLoader.cpp
@@ -1,6 +1,8 @@
// Copyright 2016 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "VideoBackends/Vulkan/VulkanLoader.h"
+
#include <atomic>
#include <cstdarg>
#include <cstdlib>
@@ -10,8 +12,6 @@
#include "Common/FileUtil.h"
#include "Common/StringUtil.h"
-#include "VideoBackends/Vulkan/VulkanLoader.h"
-
#define VULKAN_MODULE_ENTRY_POINT(name, required) PFN_##name name;
#define VULKAN_INSTANCE_ENTRY_POINT(name, required) PFN_##name name;
#define VULKAN_DEVICE_ENTRY_POINT(name, required) PFN_##name name;