SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
ResourceManager.hpp File Reference
#include <functional>
#include <mutex>
#include <any>
#include <memory>
#include <array>
#include "BufferBase.hpp"
#include "Shader.hpp"
#include <Runtime/Texture.hpp>

Go to the source code of this file.

Classes

class  Sleak::RenderEngine::ResourceManager

Namespaces

namespace  Sleak
 Root namespace for everything the engine exposes.
namespace  Sleak::RenderEngine
 Backend-facing rendering layer shared by the four graphics backends.

Macros

#define IMPLEMENT_RESOURCE_MANAGER

Enumerations

enum class  Sleak::RenderEngine::ResourceType : uint8_t { Sleak::RenderEngine::Buffer = 0 , Sleak::RenderEngine::Shader = 1 , Sleak::RenderEngine::Texture = 2 }
 Coarse kind tag for a graphics resource. More...

Macro Definition Documentation

◆ IMPLEMENT_RESOURCE_MANAGER

#define IMPLEMENT_RESOURCE_MANAGER
Value:
std::function<std::any(BufferType, uint32_t, void*)> ResourceManager::BufferCreationFunc; \
std::function<std::any(const std::string&)> ResourceManager::ShaderCreateFunc;\
std::function<std::any(const std::string&)> ResourceManager::TextureCreateFunc; \
std::function<std::any(const void*, uint32_t, uint32_t, TextureFormat, uint32_t)> ResourceManager::TextureFromMemoryCreateFunc; \
std::function<std::any(const std::array<std::string, 6>&)> ResourceManager::CubemapTextureCreateFunc; \
std::function<std::any(const std::string&)> ResourceManager::CubemapPanoramaCreateFunc; \
std::mutex ResourceManager::threadManager;

Definition at line 14 of file ResourceManager.hpp.