Moving GpuResourceManager.
This commit is contained in:
parent
b902d08ece
commit
0d5af2b525
|
|
@ -6,7 +6,9 @@ add_library(util_helper STATIC
|
||||||
helpers.h
|
helpers.h
|
||||||
helpers.cpp
|
helpers.cpp
|
||||||
frame.cpp
|
frame.cpp
|
||||||
frame.h)
|
frame.h
|
||||||
|
gpu_resource_manager.cpp
|
||||||
|
gpu_resource_manager.h)
|
||||||
|
|
||||||
target_link_libraries(util_helper PRIVATE aster_core)
|
target_link_libraries(util_helper PRIVATE aster_core)
|
||||||
target_include_directories(util_helper PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
target_include_directories(util_helper PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
// =============================================
|
// =============================================
|
||||||
// Aster: pipeline_utils.h
|
// Aster: gpu_resource_manager.cpp
|
||||||
// Copyright (c) 2020-2024 Anish Bhobe
|
// Copyright (c) 2020-2024 Anish Bhobe
|
||||||
// =============================================
|
// =============================================
|
||||||
|
|
||||||
#include "render_resource_manager.h"
|
#include "gpu_resource_manager.h"
|
||||||
|
|
||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
|
|
@ -1,20 +1,18 @@
|
||||||
// =============================================
|
// =============================================
|
||||||
// Aster: pipeline_utils.h
|
// Aster: gpu_resource_manager.h
|
||||||
// Copyright (c) 2020-2024 Anish Bhobe
|
// Copyright (c) 2020-2024 Anish Bhobe
|
||||||
// =============================================
|
// =============================================
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "buffer.h"
|
|
||||||
#include "image.h"
|
|
||||||
|
|
||||||
#include <EASTL/deque.h>
|
#include <EASTL/deque.h>
|
||||||
#include <EASTL/vector_map.h>
|
#include <EASTL/vector_map.h>
|
||||||
|
|
||||||
struct Device;
|
struct Device;
|
||||||
struct Texture;
|
struct Texture;
|
||||||
struct UniformStorageBuffer;
|
struct StorageBuffer;
|
||||||
|
|
||||||
struct GpuResourceHandle
|
struct GpuResourceHandle
|
||||||
{
|
{
|
||||||
|
|
@ -8,8 +8,6 @@ find_path(TINYGLTF_INCLUDE_DIRS "tiny_gltf.h")
|
||||||
add_executable(model_render model_render.cpp
|
add_executable(model_render model_render.cpp
|
||||||
pipeline_utils.cpp
|
pipeline_utils.cpp
|
||||||
pipeline_utils.h
|
pipeline_utils.h
|
||||||
render_resource_manager.cpp
|
|
||||||
render_resource_manager.h
|
|
||||||
model_loader.cpp
|
model_loader.cpp
|
||||||
model_loader.h
|
model_loader.h
|
||||||
light_manager.cpp
|
light_manager.cpp
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
#include "light_manager.h"
|
#include "light_manager.h"
|
||||||
|
|
||||||
|
#include "buffer.h"
|
||||||
#include "glm/ext/matrix_transform.hpp"
|
#include "glm/ext/matrix_transform.hpp"
|
||||||
|
|
||||||
struct Light
|
struct Light
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
|
||||||
// TODO: Separate files so you only import handles.
|
// TODO: Separate files so you only import handles.
|
||||||
#include "render_resource_manager.h"
|
#include "gpu_resource_manager.h"
|
||||||
|
|
||||||
struct DirectionalLight
|
struct DirectionalLight
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
#include "image.h"
|
#include "image.h"
|
||||||
#include "render_resource_manager.h"
|
#include "gpu_resource_manager.h"
|
||||||
|
|
||||||
#include <glm/gtc/type_ptr.hpp>
|
#include <glm/gtc/type_ptr.hpp>
|
||||||
#include <EASTL/array.h>
|
#include <EASTL/array.h>
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
|
||||||
#include "render_resource_manager.h"
|
#include "gpu_resource_manager.h"
|
||||||
#include "nodes.h"
|
#include "nodes.h"
|
||||||
|
|
||||||
#include <tiny_gltf.h>
|
#include <tiny_gltf.h>
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#include "model_loader.h"
|
#include "model_loader.h"
|
||||||
#include "pipeline_utils.h"
|
#include "pipeline_utils.h"
|
||||||
#include "render_resource_manager.h"
|
#include "gpu_resource_manager.h"
|
||||||
|
|
||||||
#include <EASTL/array.h>
|
#include <EASTL/array.h>
|
||||||
#include <stb_image.h>
|
#include <stb_image.h>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
#include "render_resource_manager.h"
|
#include "gpu_resource_manager.h"
|
||||||
#include "swapchain.h"
|
#include "swapchain.h"
|
||||||
|
|
||||||
#include <EASTL/array.h>
|
#include <EASTL/array.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue