Skip to content

Commit

Permalink
Don't use relative include paths
Browse files Browse the repository at this point in the history
Sometimes difficult to follow and hard to search for users
  • Loading branch information
sndels committed Aug 6, 2024
1 parent f8f4576 commit 825f49b
Show file tree
Hide file tree
Showing 98 changed files with 580 additions and 579 deletions.
6 changes: 3 additions & 3 deletions src/gfx/DescriptorAllocator.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "DescriptorAllocator.hpp"

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

#include <wheels/containers/static_array.hpp>

Expand Down
4 changes: 2 additions & 2 deletions src/gfx/DescriptorAllocator.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef PROSPER_GFX_DESCRIPTOR_ALLOCATOR_HPP
#define PROSPER_GFX_DESCRIPTOR_ALLOCATOR_HPP

#include "../Allocators.hpp"
#include "Fwd.hpp"
#include "Allocators.hpp"
#include "gfx/Fwd.hpp"

#include <vulkan/vulkan.hpp>
#include <wheels/allocators/allocator.hpp>
Expand Down
18 changes: 9 additions & 9 deletions src/gfx/Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
#include <intrin.h>
#endif // _WIN32

#include "../Allocators.hpp"
#include "../Window.hpp"
#include "../utils/ForEach.hpp"
#include "../utils/Logger.hpp"
#include "../utils/Utils.hpp"
#include "ShaderIncludes.hpp"
#include "ShaderReflection.hpp"
#include "Swapchain.hpp"
#include "VkUtils.hpp"
#include "Allocators.hpp"
#include "Window.hpp"
#include "gfx/ShaderIncludes.hpp"
#include "gfx/ShaderReflection.hpp"
#include "gfx/Swapchain.hpp"
#include "gfx/VkUtils.hpp"
#include "utils/ForEach.hpp"
#include "utils/Logger.hpp"
#include "utils/Utils.hpp"

#include <GLFW/glfw3.h>
#include <wheels/containers/hash_map.hpp>
Expand Down
6 changes: 3 additions & 3 deletions src/gfx/Device.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef PROSPER_GFX_DEVICE_HPP
#define PROSPER_GFX_DEVICE_HPP

#include "../utils/Hashes.hpp"
#include "Resources.hpp"
#include "ShaderReflection.hpp"
#include "gfx/Resources.hpp"
#include "gfx/ShaderReflection.hpp"
#include "utils/Hashes.hpp"

#include <atomic>
#include <filesystem>
Expand Down
6 changes: 3 additions & 3 deletions src/gfx/RingBuffer.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef PROSPER_GFX_RING_BUFFER_HPP
#define PROSPER_GFX_RING_BUFFER_HPP

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

#include <wheels/containers/inline_array.hpp>
#include <wheels/containers/span.hpp>
Expand Down
4 changes: 2 additions & 2 deletions src/gfx/ShaderIncludes.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "ShaderIncludes.hpp"

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

#include <charconv>
#include <wheels/containers/pair.hpp>
Expand Down
8 changes: 4 additions & 4 deletions src/gfx/ShaderReflection.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef PROSPER_GFX_SHADER_REFLECTION_HPP
#define PROSPER_GFX_SHADER_REFLECTION_HPP

#include "../Allocators.hpp"
#include "../utils/Hashes.hpp"
#include "../utils/Utils.hpp"
#include "Fwd.hpp"
#include "Allocators.hpp"
#include "gfx/Fwd.hpp"
#include "utils/Hashes.hpp"
#include "utils/Utils.hpp"

#include <filesystem>
#include <variant>
Expand Down
8 changes: 4 additions & 4 deletions src/gfx/Swapchain.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "Swapchain.hpp"

#include "../utils/Logger.hpp"
#include "../utils/Utils.hpp"
#include "Device.hpp"
#include "VkUtils.hpp"
#include "gfx/Device.hpp"
#include "gfx/VkUtils.hpp"
#include "utils/Logger.hpp"
#include "utils/Utils.hpp"

#include <stdexcept>
#include <wheels/containers/span.hpp>
Expand Down
4 changes: 2 additions & 2 deletions src/gfx/Swapchain.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef PROSPER_GFX_SWAPCHAIN_HPP
#define PROSPER_GFX_SWAPCHAIN_HPP

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

#include <vulkan/vulkan.hpp>
#include <wheels/allocators/allocator.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/gfx/VkUtils.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "VkUtils.hpp"

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

#include <wheels/containers/static_array.hpp>

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

#include "../gfx/DescriptorAllocator.hpp"
#include "../gfx/Device.hpp"
#include "../gfx/VkUtils.hpp"
#include "../utils/Logger.hpp"
#include "../utils/Utils.hpp"
#include "RenderTargets.hpp"
#include "gfx/DescriptorAllocator.hpp"
#include "gfx/Device.hpp"
#include "gfx/VkUtils.hpp"
#include "render/RenderTargets.hpp"
#include "utils/Logger.hpp"
#include "utils/Utils.hpp"

#include <glm/glm.hpp>
#include <imgui.h>
Expand Down
8 changes: 4 additions & 4 deletions src/render/ComputePass.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef PROSPER_RENDER_COMPUTE_PASS_HPP
#define PROSPER_RENDER_COMPUTE_PASS_HPP

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

#include <functional>
#include <glm/glm.hpp>
Expand Down
20 changes: 10 additions & 10 deletions src/render/DebugRenderer.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#include "DebugRenderer.hpp"

#include "../gfx/DescriptorAllocator.hpp"
#include "../gfx/VkUtils.hpp"
#include "../scene/Camera.hpp"
#include "../utils/Logger.hpp"
#include "../utils/Profiler.hpp"
#include "../utils/Utils.hpp"
#include "LightClustering.hpp"
#include "RenderResources.hpp"
#include "RenderTargets.hpp"
#include "Utils.hpp"
#include "gfx/DescriptorAllocator.hpp"
#include "gfx/VkUtils.hpp"
#include "render/LightClustering.hpp"
#include "render/RenderResources.hpp"
#include "render/RenderTargets.hpp"
#include "render/Utils.hpp"
#include "scene/Camera.hpp"
#include "utils/Logger.hpp"
#include "utils/Profiler.hpp"
#include "utils/Utils.hpp"

#include <imgui.h>

Expand Down
14 changes: 7 additions & 7 deletions src/render/DebugRenderer.hpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#ifndef PROSPER_RENDER_DEBUG_RENDERER_HPP
#define PROSPER_RENDER_DEBUG_RENDERER_HPP

#include "../gfx/Fwd.hpp"
#include "../gfx/Resources.hpp"
#include "../gfx/ShaderReflection.hpp"
#include "../scene/Fwd.hpp"
#include "../utils/Fwd.hpp"
#include "Fwd.hpp"
#include "RenderResourceHandle.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 <wheels/allocators/scoped_scratch.hpp>
#include <wheels/containers/hash_set.hpp>
Expand Down
24 changes: 12 additions & 12 deletions src/render/DeferredShading.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#include "DeferredShading.hpp"

#include "../gfx/VkUtils.hpp"
#include "../scene/Camera.hpp"
#include "../scene/Light.hpp"
#include "../scene/World.hpp"
#include "../scene/WorldRenderStructs.hpp"
#include "../utils/Profiler.hpp"
#include "../utils/Utils.hpp"
#include "GBufferRenderer.hpp"
#include "LightClustering.hpp"
#include "RenderResources.hpp"
#include "RenderTargets.hpp"
#include "Utils.hpp"
#include "gfx/VkUtils.hpp"
#include "render/GBufferRenderer.hpp"
#include "render/LightClustering.hpp"
#include "render/RenderResources.hpp"
#include "render/RenderTargets.hpp"
#include "render/Utils.hpp"
#include "scene/Camera.hpp"
#include "scene/Light.hpp"
#include "scene/World.hpp"
#include "scene/WorldRenderStructs.hpp"
#include "utils/Profiler.hpp"
#include "utils/Utils.hpp"

#include <fstream>
#include <imgui.h>
Expand Down
16 changes: 8 additions & 8 deletions src/render/DeferredShading.hpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#ifndef PROSPER_RENDER_DEFERRED_SHADING_HPP
#define PROSPER_RENDER_DEFERRED_SHADING_HPP

#include "../gfx/Fwd.hpp"
#include "../scene/DrawType.hpp"
#include "../scene/Fwd.hpp"
#include "../utils/Fwd.hpp"
#include "../utils/Utils.hpp"
#include "ComputePass.hpp"
#include "Fwd.hpp"
#include "RenderResourceHandle.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
38 changes: 19 additions & 19 deletions src/render/ForwardRenderer.cpp
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#include "ForwardRenderer.hpp"

#include "../gfx/DescriptorAllocator.hpp"
#include "../gfx/VkUtils.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"
#include "../utils/Logger.hpp"
#include "../utils/Profiler.hpp"
#include "../utils/Utils.hpp"
#include "DrawStats.hpp"
#include "HierarchicalDepthDownsampler.hpp"
#include "LightClustering.hpp"
#include "MeshletCuller.hpp"
#include "RenderResources.hpp"
#include "RenderTargets.hpp"
#include "Utils.hpp"
#include "gfx/DescriptorAllocator.hpp"
#include "gfx/VkUtils.hpp"
#include "render/DrawStats.hpp"
#include "render/HierarchicalDepthDownsampler.hpp"
#include "render/LightClustering.hpp"
#include "render/MeshletCuller.hpp"
#include "render/RenderResources.hpp"
#include "render/RenderTargets.hpp"
#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"
#include "utils/Logger.hpp"
#include "utils/Profiler.hpp"
#include "utils/Utils.hpp"

#include <imgui.h>

Expand Down
14 changes: 7 additions & 7 deletions src/render/ForwardRenderer.hpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#ifndef PROSPER_RENDER_FORWARD_RENDERER_HPP
#define PROSPER_RENDER_FORWARD_RENDERER_HPP

#include "../gfx/Fwd.hpp"
#include "../gfx/ShaderReflection.hpp"
#include "../scene/DrawType.hpp"
#include "../scene/Fwd.hpp"
#include "../utils/Fwd.hpp"
#include "Fwd.hpp"
#include "RenderResourceHandle.hpp"
#include "gfx/Fwd.hpp"
#include "gfx/ShaderReflection.hpp"
#include "render/Fwd.hpp"
#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/inline_array.hpp>
Expand Down
32 changes: 16 additions & 16 deletions src/render/GBufferRenderer.cpp
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#include "GBufferRenderer.hpp"

#include "../gfx/DescriptorAllocator.hpp"
#include "../gfx/VkUtils.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"
#include "../utils/Logger.hpp"
#include "../utils/Profiler.hpp"
#include "../utils/Utils.hpp"
#include "DrawStats.hpp"
#include "LightClustering.hpp"
#include "MeshletCuller.hpp"
#include "RenderResources.hpp"
#include "RenderTargets.hpp"
#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"
#include "utils/Logger.hpp"
#include "utils/Profiler.hpp"
#include "utils/Utils.hpp"
#include "wheels/assert.hpp"

#include <cstdint>
Expand Down
14 changes: 7 additions & 7 deletions src/render/GBufferRenderer.hpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#ifndef PROSPER_RENDER_GBUFFER_RENDERER_HPP
#define PROSPER_RENDER_GBUFFER_RENDERER_HPP

#include "../gfx/Fwd.hpp"
#include "../gfx/ShaderReflection.hpp"
#include "../scene/DrawType.hpp"
#include "../scene/Fwd.hpp"
#include "../utils/Fwd.hpp"
#include "Fwd.hpp"
#include "RenderResourceHandle.hpp"
#include "gfx/Fwd.hpp"
#include "gfx/ShaderReflection.hpp"
#include "render/Fwd.hpp"
#include "render/HierarchicalDepthDownsampler.hpp"
#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
Loading

0 comments on commit 825f49b

Please sign in to comment.