Skip to content

Commit

Permalink
code refine
Browse files Browse the repository at this point in the history
  • Loading branch information
K1ngst0m committed Oct 28, 2023
1 parent ceef91d commit 0ec086d
Show file tree
Hide file tree
Showing 18 changed files with 3 additions and 18 deletions.
1 change: 0 additions & 1 deletion engine/api/vulkan/buffer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef VULKAN_BUFFER_H_
#define VULKAN_BUFFER_H_

#include "api/gpuResource.h"
#include "vkUtils.h"

namespace aph::vk
Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/commandBuffer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "commandBuffer.h"
#include "api/gpuResource.h"
#include "device.h"

namespace aph::vk
Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/commandBuffer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef COMMANDBUFFER_H_
#define COMMANDBUFFER_H_

#include "api/gpuResource.h"
#include "vkUtils.h"

namespace aph::vk
Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/descriptorSet.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef DESCRIPTORSET_H_
#define DESCRIPTORSET_H_

#include "api/gpuResource.h"
#include "threads/spinlock.h"
#include "vkUtils.h"

Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/device.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "device.h"
#include "api/gpuResource.h"

const VkAllocationCallbacks* gVkAllocator = aph::vk::vkAllocator();

Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/image.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef VULKAN_IMAGE_H_
#define VULKAN_IMAGE_H_

#include "api/gpuResource.h"
#include "vkUtils.h"

namespace aph::vk
Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/instance.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define INSTANCE_H_

#include "threads/threadPool.h"
#include "api/gpuResource.h"
#include "vkUtils.h"

namespace aph::vk
Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/physicalDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define PHYSICALDEVICE_H_

#include "instance.h"
#include "api/gpuResource.h"

namespace aph::vk
{
Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/pipeline.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef PIPELINE_H_
#define PIPELINE_H_

#include "api/gpuResource.h"
#include "vkUtils.h"

namespace aph::vk
Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/queue.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef QUEUE_H_
#define QUEUE_H_

#include "api/gpuResource.h"
#include "vkUtils.h"

namespace aph::vk
Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/sampler.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef APH_SAMPLER_H
#define APH_SAMPLER_H

#include "api/gpuResource.h"
#include "vkUtils.h"

namespace aph::vk
Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/shader.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef VULKAN_SHADER_H_
#define VULKAN_SHADER_H_

#include "api/gpuResource.h"
#include "vkUtils.h"

namespace aph::vk
Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/swapChain.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define VULKAN_SWAPCHAIN_H_

#include "wsi/wsi.h"
#include "api/gpuResource.h"
#include "vkUtils.h"

namespace aph::vk
Expand Down
1 change: 0 additions & 1 deletion engine/api/vulkan/syncPrimitive.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "common/objectPool.h"
#include "threads/spinlock.h"
#include "api/gpuResource.h"
#include "vkUtils.h"

namespace aph::vk
Expand Down
2 changes: 1 addition & 1 deletion engine/api/vulkan/vkInit.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef VKLINIT_H_
#define VKLINIT_H_

#include <vulkan/vulkan.h>
#include <volk.h>

#include <vector>

Expand Down
3 changes: 2 additions & 1 deletion engine/api/vulkan/vkUtils.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef VKLUTILS_H_
#define VKLUTILS_H_

#include "api/gpuResource.h"
#if defined(__linux__)
#define VK_USE_PLATFORM_XCB_KHR
#endif
Expand All @@ -12,6 +11,8 @@
#include "common/logger.h"
#include "common/objectPool.h"

#include "../gpuResource.h"

// Custom define for better code readability
#define VK_FLAGS_NONE 0
// Default fence timeout in nanoseconds
Expand Down
1 change: 0 additions & 1 deletion engine/renderer/api/vulkan/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "scene/mesh.h"
#include "common/common.h"

#include "api/gpuResource.h"
#include "common/assetManager.h"

#include "volk.h"
Expand Down
1 change: 0 additions & 1 deletion engine/renderer/api/vulkan/sceneRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "ui/ui.h"

#include "api/gpuResource.h"
#include "api/vulkan/vkUtils.h"
#include "common/assetManager.h"

Expand Down

0 comments on commit 0ec086d

Please sign in to comment.