Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Path.h File Reference
#include <array>
#include <string>
#include <filesystem>
#include <ostream>
#include <string_view>
#include "Engine/Files/AssetPath.h"
#include "Engine/Files/GeneratedAssetManifest.h"
Include dependency graph for Path.h:

Go to the source code of this file.

Classes

class  Engine::Core::ConstexprPath< N >
class  Engine::Core::Path
 Centralized accessors for project and asset paths. More...

Namespaces

namespace  Engine
namespace  Engine::Core
 Manages IBL (Image-Based Lighting) resources for specular reflections.

Macros

#define CREATE_ASSET_PATH(assetPath)
 creates an asset path with verification that it exists at the specified location on disk
#define CREATE_MESH_ASSET_PATH(assetPath, objectName)
 Creates an asset path with verification that the file exists. Points to a specific mesh inside a gltf file.

Functions

template<size_t N>
 Engine::Core::ConstexprPath (const char(&)[N]) -> ConstexprPath< N >
template<size_t N>
std::ostream & Engine::Core::operator<< (std::ostream &stream, const ConstexprPath< N > &path)
template<size_t N>
consteval bool Engine::Core::assetExists (const ConstexprPath< N > &path)

Macro Definition Documentation

◆ CREATE_ASSET_PATH

#define CREATE_ASSET_PATH ( assetPath)
Value:
[] \
{ \
constexpr auto verifiedAssetPath = ( assetPath ); \
static_assert( \
::Engine::Core::assetExists( verifiedAssetPath ), \
"Asset path is not present in GeneratedAssetManifest" \
); \
return verifiedAssetPath; \
}()
consteval bool assetExists(const ConstexprPath< N > &path)
Definition Path.h:101

creates an asset path with verification that it exists at the specified location on disk

Parameters
assetPathpath to verify

Definition at line 217 of file Path.h.

◆ CREATE_MESH_ASSET_PATH

#define CREATE_MESH_ASSET_PATH ( assetPath,
objectName )
Value:
[] \
{ \
constexpr auto path = CREATE_ASSET_PATH( assetPath ); \
Asset::MeshPath meshAsset( path.fsPath(), objectName ); \
return meshAsset; \
}()
#define CREATE_ASSET_PATH(assetPath)
creates an asset path with verification that it exists at the specified location on disk
Definition Path.h:217
Identifies a named mesh-like asset inside an asset file.
Definition AssetPath.h:40

Creates an asset path with verification that the file exists. Points to a specific mesh inside a gltf file.

Parameters
assetPathpath to verify
objectNamename of the mesh inside the gltf file

Definition at line 234 of file Path.h.