Moving GpuResourceManager.

This commit is contained in:
Anish Bhobe 2024-07-22 23:39:37 +02:00
parent b902d08ece
commit 0d5af2b525
10 changed files with 13 additions and 14 deletions

View File

@ -6,7 +6,9 @@ add_library(util_helper STATIC
helpers.h
helpers.cpp
frame.cpp
frame.h)
frame.h
gpu_resource_manager.cpp
gpu_resource_manager.h)
target_link_libraries(util_helper PRIVATE aster_core)
target_include_directories(util_helper PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

View File

@ -1,9 +1,9 @@
// =============================================
// Aster: pipeline_utils.h
// Aster: gpu_resource_manager.cpp
// Copyright (c) 2020-2024 Anish Bhobe
// =============================================
#include "render_resource_manager.h"
#include "gpu_resource_manager.h"
#include "buffer.h"
#include "device.h"

View File

@ -1,20 +1,18 @@
// =============================================
// Aster: pipeline_utils.h
// Aster: gpu_resource_manager.h
// Copyright (c) 2020-2024 Anish Bhobe
// =============================================
#pragma once
#include "global.h"
#include "buffer.h"
#include "image.h"
#include <EASTL/deque.h>
#include <EASTL/vector_map.h>
struct Device;
struct Texture;
struct UniformStorageBuffer;
struct StorageBuffer;
struct GpuResourceHandle
{

View File

@ -8,8 +8,6 @@ find_path(TINYGLTF_INCLUDE_DIRS "tiny_gltf.h")
add_executable(model_render model_render.cpp
pipeline_utils.cpp
pipeline_utils.h
render_resource_manager.cpp
render_resource_manager.h
model_loader.cpp
model_loader.h
light_manager.cpp

View File

@ -5,6 +5,7 @@
#include "light_manager.h"
#include "buffer.h"
#include "glm/ext/matrix_transform.hpp"
struct Light

View File

@ -8,7 +8,7 @@
#include "global.h"
// TODO: Separate files so you only import handles.
#include "render_resource_manager.h"
#include "gpu_resource_manager.h"
struct DirectionalLight
{

View File

@ -16,7 +16,7 @@
#include "device.h"
#include "helpers.h"
#include "image.h"
#include "render_resource_manager.h"
#include "gpu_resource_manager.h"
#include <glm/gtc/type_ptr.hpp>
#include <EASTL/array.h>

View File

@ -8,7 +8,7 @@
#include "buffer.h"
#include "global.h"
#include "render_resource_manager.h"
#include "gpu_resource_manager.h"
#include "nodes.h"
#include <tiny_gltf.h>

View File

@ -20,7 +20,7 @@
#include "model_loader.h"
#include "pipeline_utils.h"
#include "render_resource_manager.h"
#include "gpu_resource_manager.h"
#include <EASTL/array.h>
#include <stb_image.h>

View File

@ -7,7 +7,7 @@
#include "device.h"
#include "helpers.h"
#include "render_resource_manager.h"
#include "gpu_resource_manager.h"
#include "swapchain.h"
#include <EASTL/array.h>