Skip to content

Commit

Permalink
Remove unused includes
Browse files Browse the repository at this point in the history
  • Loading branch information
sndels committed Aug 6, 2024
1 parent 825f49b commit 94f81e0
Show file tree
Hide file tree
Showing 68 changed files with 18 additions and 123 deletions.
3 changes: 0 additions & 3 deletions src/Allocators.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#include "Allocators.hpp"

#include "wheels/allocators/utils.hpp"
#include "wheels/assert.hpp"

using namespace wheels;

// These are used everywhere and init()/destroy() order relative to other
Expand Down
5 changes: 1 addition & 4 deletions src/App.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
#include "App.hpp"

#include "Allocators.hpp"
#include "gfx/DescriptorAllocator.hpp"
#include "Window.hpp"
#include "gfx/VkUtils.hpp"
#include "render/RenderResources.hpp"
#include "render/Renderer.hpp"
#include "scene/Scene.hpp"
#include "scene/World.hpp"
#include "utils/InputHandler.hpp"
#include "utils/Logger.hpp"
#include "utils/Ui.hpp"
#include "utils/Utils.hpp"

#include <GLFW/glfw3.h>
Expand All @@ -18,8 +17,6 @@
#include <glm/gtx/component_wise.hpp>
#include <glm/gtx/transform.hpp>
#include <imgui.h>
#include <iostream>
#include <limits>
#include <stdexcept>
#include <thread>
#include <wheels/allocators/linear_allocator.hpp>
Expand Down
3 changes: 0 additions & 3 deletions src/App.hpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
#ifndef PROSPER_APP_HPP
#define PROSPER_APP_HPP

#include "Window.hpp"
#include "gfx/Device.hpp"
#include "gfx/RingBuffer.hpp"
#include "gfx/Swapchain.hpp"
#include "render/Fwd.hpp"
#include "render/RenderResourceHandle.hpp"
#include "scene/Camera.hpp"
#include "scene/DrawType.hpp"
#include "scene/Fwd.hpp"
#include "utils/Profiler.hpp"
#include "utils/SceneStats.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <GLFW/glfw3.h>
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <iostream>

#ifdef _WIN32

Expand Down
2 changes: 0 additions & 2 deletions src/Window.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef PROSPER_WINDOW_HPP
#define PROSPER_WINDOW_HPP

#include "utils/InputHandler.hpp"

#include <wheels/allocators/tlsf_allocator.hpp>
#include <wheels/containers/pair.hpp>

Expand Down
1 change: 0 additions & 1 deletion src/gfx/Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <cinttypes>
#include <cstring>
#include <iostream>
#include <memory>
#include <stdexcept>

#ifdef _WIN32
Expand Down
1 change: 1 addition & 0 deletions src/gfx/ShaderReflection.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "ShaderReflection.hpp"

#include "Device.hpp"
#include "utils/Utils.hpp"

#include <algorithm>
#include <cstring>
Expand Down
1 change: 0 additions & 1 deletion src/gfx/ShaderReflection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "Allocators.hpp"
#include "gfx/Fwd.hpp"
#include "utils/Hashes.hpp"
#include "utils/Utils.hpp"

#include <filesystem>
#include <variant>
Expand Down
3 changes: 0 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
#include <cstdlib>
#include <cxxopts.hpp>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include <tomlcpp.hpp>

#ifdef LIVEPP_PATH
Expand Down
1 change: 0 additions & 1 deletion src/render/ComputePass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "gfx/DescriptorAllocator.hpp"
#include "gfx/Device.hpp"
#include "gfx/VkUtils.hpp"
#include "render/RenderTargets.hpp"
#include "utils/Logger.hpp"
#include "utils/Utils.hpp"

Expand Down
1 change: 0 additions & 1 deletion src/render/ComputePass.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "gfx/Fwd.hpp"
#include "gfx/ShaderReflection.hpp"
#include "utils/Fwd.hpp"
#include "utils/Utils.hpp"

#include <functional>
Expand Down
1 change: 0 additions & 1 deletion src/render/DebugRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "gfx/DescriptorAllocator.hpp"
#include "gfx/VkUtils.hpp"
#include "render/LightClustering.hpp"
#include "render/RenderResources.hpp"
#include "render/RenderTargets.hpp"
#include "render/Utils.hpp"
Expand Down
5 changes: 2 additions & 3 deletions src/render/DebugRenderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
#define PROSPER_RENDER_DEBUG_RENDERER_HPP

#include "gfx/Fwd.hpp"
#include "gfx/Resources.hpp"
#include "gfx/ShaderReflection.hpp"
#include "render/Fwd.hpp"
#include "render/RenderResourceHandle.hpp"
#include "scene/Fwd.hpp"
#include "utils/Fwd.hpp"
#include "utils/Utils.hpp"

#include <wheels/allocators/scoped_scratch.hpp>
#include <wheels/containers/hash_set.hpp>
Expand Down Expand Up @@ -52,7 +51,7 @@ class DebugRenderer

bool m_initialized{false};

wheels::StaticArray<vk::PipelineShaderStageCreateInfo, 2> m_shaderStages{};
wheels::StaticArray<vk::PipelineShaderStageCreateInfo, 2> m_shaderStages;
wheels::Optional<ShaderReflection> m_vertReflection;
wheels::Optional<ShaderReflection> m_fragReflection;

Expand Down
2 changes: 0 additions & 2 deletions src/render/DeferredShading.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "DeferredShading.hpp"

#include "gfx/VkUtils.hpp"
#include "render/GBufferRenderer.hpp"
#include "render/LightClustering.hpp"
#include "render/RenderResources.hpp"
Expand All @@ -13,7 +12,6 @@
#include "utils/Profiler.hpp"
#include "utils/Utils.hpp"

#include <fstream>
#include <imgui.h>

using namespace glm;
Expand Down
3 changes: 0 additions & 3 deletions src/render/DeferredShading.hpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
#ifndef PROSPER_RENDER_DEFERRED_SHADING_HPP
#define PROSPER_RENDER_DEFERRED_SHADING_HPP

#include "gfx/Fwd.hpp"
#include "render/ComputePass.hpp"
#include "render/Fwd.hpp"
#include "render/RenderResourceHandle.hpp"
#include "scene/DrawType.hpp"
#include "scene/Fwd.hpp"
#include "utils/Fwd.hpp"
#include "utils/Utils.hpp"

#include <wheels/allocators/scoped_scratch.hpp>
#include <wheels/containers/optional.hpp>
Expand Down
2 changes: 0 additions & 2 deletions src/render/ForwardRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#include "render/Utils.hpp"
#include "scene/Camera.hpp"
#include "scene/Light.hpp"
#include "scene/Material.hpp"
#include "scene/Mesh.hpp"
#include "scene/Scene.hpp"
#include "scene/World.hpp"
#include "scene/WorldRenderStructs.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/render/ForwardRenderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "render/RenderResourceHandle.hpp"
#include "scene/DrawType.hpp"
#include "scene/Fwd.hpp"
#include "utils/Fwd.hpp"
#include "utils/Utils.hpp"

#include <wheels/allocators/scoped_scratch.hpp>
#include <wheels/containers/inline_array.hpp>
Expand Down
3 changes: 0 additions & 3 deletions src/render/GBufferRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
#include "gfx/DescriptorAllocator.hpp"
#include "gfx/VkUtils.hpp"
#include "render/DrawStats.hpp"
#include "render/LightClustering.hpp"
#include "render/MeshletCuller.hpp"
#include "render/RenderResources.hpp"
#include "render/RenderTargets.hpp"
#include "scene/Camera.hpp"
#include "scene/Material.hpp"
#include "scene/Mesh.hpp"
#include "scene/Scene.hpp"
#include "scene/World.hpp"
#include "scene/WorldRenderStructs.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/render/GBufferRenderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "render/RenderResourceHandle.hpp"
#include "scene/DrawType.hpp"
#include "scene/Fwd.hpp"
#include "utils/Fwd.hpp"

#include <wheels/allocators/scoped_scratch.hpp>
#include <wheels/containers/static_array.hpp>
Expand Down
1 change: 0 additions & 1 deletion src/render/HierarchicalDepthDownsampler.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "HierarchicalDepthDownsampler.hpp"

#include "gfx/VkUtils.hpp"
#include "render/ComputePass.hpp"
#include "render/RenderResources.hpp"
#include "utils/Profiler.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/render/ImGuiRenderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "gfx/Fwd.hpp"
#include "render/Fwd.hpp"
#include "render/RenderResourceHandle.hpp"
#include "utils/Fwd.hpp"

#include <imgui.h>
#include <vulkan/vulkan.hpp>
Expand Down
1 change: 0 additions & 1 deletion src/render/ImageBasedLighting.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef PROSPER_RENDER_IMAGE_BASED_LIGHTING_HPP
#define PROSPER_RENDER_IMAGE_BASED_LIGHTING_HPP

#include "gfx/Fwd.hpp"
#include "render/ComputePass.hpp"
#include "render/Fwd.hpp"
#include "scene/Fwd.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/render/LightClustering.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "LightClustering.hpp"

#include "gfx/VkUtils.hpp"
#include "render/RenderResources.hpp"
#include "scene/Camera.hpp"
#include "scene/Light.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/render/LightClustering.hpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#ifndef PROSPER_RENDER_LIGHT_CLUSTERING_HPP
#define PROSPER_RENDER_LIGHT_CLUSTERING_HPP

#include "gfx/Fwd.hpp"
#include "render/ComputePass.hpp"
#include "render/Fwd.hpp"
#include "render/RenderResourceHandle.hpp"
#include "scene/Fwd.hpp"
#include "utils/Fwd.hpp"

#include <wheels/allocators/scoped_scratch.hpp>

Expand Down
4 changes: 0 additions & 4 deletions src/render/MeshletCuller.hpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#ifndef PROSPER_RENDER_MESHLET_CULLER_HPP
#define PROSPER_RENDER_MESHLET_CULLER_HPP

#include "gfx/Fwd.hpp"
#include "gfx/Resources.hpp"
#include "render/ComputePass.hpp"
#include "render/Fwd.hpp"
#include "render/RenderResourceHandle.hpp"
#include "scene/Fwd.hpp"
#include "utils/Fwd.hpp"
#include "utils/Utils.hpp"

#include <wheels/allocators/scoped_scratch.hpp>
#include <wheels/containers/hash_set.hpp>
Expand Down
1 change: 0 additions & 1 deletion src/render/RenderResourceCollection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "Allocators.hpp"
#include "gfx/Device.hpp"
#include "render/RenderResourceHandle.hpp"
#include "utils/Utils.hpp"

#include <vulkan/vulkan.hpp>
Expand Down
1 change: 0 additions & 1 deletion src/render/RenderResources.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define PROSPER_RENDER_RESOURCES_HPP

#include "gfx/Resources.hpp"
#include "gfx/RingBuffer.hpp"
#include "render/RenderImageCollection.hpp"
#include "render/RenderResourceCollection.hpp"
#include "scene/DebugGeometry.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/render/RenderTargets.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef PROSPER_RENDER_TARGETS_HPP
#define PROSPER_RENDER_TARGETS_HPP

#include "Fwd.hpp"
#include "RenderResourceHandle.hpp"

#include <vulkan/vulkan.hpp>
Expand Down
1 change: 0 additions & 1 deletion src/render/RtReference.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "render/RenderResourceHandle.hpp"
#include "scene/DrawType.hpp"
#include "scene/Fwd.hpp"
#include "utils/Fwd.hpp"
#include "utils/Utils.hpp"

#include <wheels/allocators/scoped_scratch.hpp>
Expand Down
1 change: 0 additions & 1 deletion src/render/SkyboxRenderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "render/Fwd.hpp"
#include "render/RenderResourceHandle.hpp"
#include "scene/Fwd.hpp"
#include "utils/Fwd.hpp"

#include <wheels/allocators/scoped_scratch.hpp>
#include <wheels/containers/static_array.hpp>
Expand Down
2 changes: 0 additions & 2 deletions src/render/TemporalAntiAliasing.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "TemporalAntiAliasing.hpp"

#include "gfx/VkUtils.hpp"
#include "render/RenderResources.hpp"
#include "render/RenderTargets.hpp"
#include "render/Utils.hpp"
Expand All @@ -9,7 +8,6 @@
#include "utils/Ui.hpp"
#include "utils/Utils.hpp"

#include <fstream>
#include <glm/glm.hpp>
#include <imgui.h>

Expand Down
3 changes: 0 additions & 3 deletions src/render/TemporalAntiAliasing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
#define PROSPER_RENDER_TEMPORAL_ANTI_ALIASING_HPP

#include "RenderResourceHandle.hpp"
#include "gfx/Fwd.hpp"
#include "render/ComputePass.hpp"
#include "render/Fwd.hpp"
#include "scene/Fwd.hpp"
#include "utils/ForEach.hpp"
#include "utils/Fwd.hpp"
#include "utils/Utils.hpp"

#include <wheels/allocators/scoped_scratch.hpp>
#include <wheels/containers/static_array.hpp>
Expand Down
2 changes: 0 additions & 2 deletions src/render/TextureDebug.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#include "TextureDebug.hpp"

#include "gfx/VkUtils.hpp"
#include "render/RenderResources.hpp"
#include "utils/Hashes.hpp"
#include "utils/Profiler.hpp"
#include "utils/Ui.hpp"
#include "utils/Utils.hpp"

#include <algorithm>
#include <fstream>
#include <imgui.h>

using namespace glm;
Expand Down
1 change: 0 additions & 1 deletion src/render/TextureDebug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "render/Fwd.hpp"
#include "render/RenderResourceHandle.hpp"
#include "utils/ForEach.hpp"
#include "utils/Fwd.hpp"
#include "utils/Utils.hpp"

#include <glm/glm.hpp>
Expand Down
1 change: 0 additions & 1 deletion src/render/TextureReadback.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "TextureReadback.hpp"

#include "gfx/VkUtils.hpp"
#include "render/RenderResources.hpp"
#include "utils/Profiler.hpp"

Expand Down
1 change: 0 additions & 1 deletion src/render/TextureReadback.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "gfx/Resources.hpp"
#include "render/ComputePass.hpp"
#include "render/Fwd.hpp"
#include "utils/Fwd.hpp"

#include <glm/glm.hpp>
#include <wheels/allocators/scoped_scratch.hpp>
Expand Down
2 changes: 0 additions & 2 deletions src/render/ToneMap.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#include "ToneMap.hpp"

#include "gfx/VkUtils.hpp"
#include "render/RenderResources.hpp"
#include "render/Utils.hpp"
#include "utils/Profiler.hpp"
#include "utils/Utils.hpp"

#include <fstream>
#include <glm/glm.hpp>
#include <imgui.h>

Expand Down
Loading

0 comments on commit 94f81e0

Please sign in to comment.