Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Core::MaterialStore Class Reference

#include <AssetRegistry.h>

Collaboration diagram for Engine::Core::MaterialStore:

Classes

struct  Record

Public Member Functions

 MaterialStore (AssetManager *assetManager=nullptr)
void setAssetManager (AssetManager *assetManager)
Assets::MaterialHandle load (const Asset::MeshPath &materialPath)
bool isValid (Assets::MaterialHandle handle) const
const Asset::MeshPathpath (Assets::MaterialHandle handle) const
Assets::MaterialAssetRef ref (Assets::MaterialHandle handle) const

Static Private Member Functions

static std::string keyFor (const Asset::MeshPath &materialPath)

Private Attributes

AssetManagerassetManager_ = nullptr
std::vector< Recordrecords_
std::unordered_map< std::string, uint32_t > pathToIndex_

Detailed Description

Definition at line 72 of file AssetRegistry.h.

Constructor & Destructor Documentation

◆ MaterialStore()

Engine::Core::MaterialStore::MaterialStore ( AssetManager * assetManager = nullptr)
explicit

Member Function Documentation

◆ isValid()

bool Engine::Core::MaterialStore::isValid ( Assets::MaterialHandle handle) const
nodiscard

◆ keyFor()

std::string Engine::Core::MaterialStore::keyFor ( const Asset::MeshPath & materialPath)
staticnodiscardprivate

◆ load()

Assets::MaterialHandle Engine::Core::MaterialStore::load ( const Asset::MeshPath & materialPath)
nodiscard

◆ path()

const Asset::MeshPath * Engine::Core::MaterialStore::path ( Assets::MaterialHandle handle) const
nodiscard

◆ ref()

Assets::MaterialAssetRef Engine::Core::MaterialStore::ref ( Assets::MaterialHandle handle) const
nodiscard

◆ setAssetManager()

void Engine::Core::MaterialStore::setAssetManager ( AssetManager * assetManager)

Member Data Documentation

◆ assetManager_

AssetManager* Engine::Core::MaterialStore::assetManager_ = nullptr
private

Definition at line 95 of file AssetRegistry.h.

◆ pathToIndex_

std::unordered_map<std::string, uint32_t> Engine::Core::MaterialStore::pathToIndex_
private

Definition at line 97 of file AssetRegistry.h.

◆ records_

std::vector<Record> Engine::Core::MaterialStore::records_
private

Definition at line 96 of file AssetRegistry.h.


The documentation for this class was generated from the following file:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Asset/AssetRegistry.h