Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientFilesystemAssetResolver Class Referencefinal

Resolves asset URIs to files in the local filesystem. More...

#include <RadientFilesystemAssetResolver.hpp>

Inheritance diagram for Diligent::RadientFilesystemAssetResolver:
Diligent::ObjectBase< IRadientAssetResolver > Diligent::RefCountedObject< Base >

Static Public Member Functions

static bool HasURIScheme (const std::string &URI)
static std::string GetBaseDirectory (const char *BaseURI)
 Returns the directory portion of BaseURI, including its trailing separator.
static std::string ResolveFilesystemURI (const char *URI, const char *BaseURI)
 Resolves a relative filesystem URI and normalizes the resulting path.
static std::string ResolveFilesystemPathForRead (const char *URI, const char *BaseURI)
 Resolves a relative filesystem URI without normalizing the resulting path.

Additional Inherited Members

Public Member Functions inherited from Diligent::RefCountedObject< Base >
template<class TPreObjectDestroy>
ReferenceCounterValueType Release (TPreObjectDestroy &&PreObjectDestroy)

Detailed Description

Resolves asset URIs to files in the local filesystem.

Member Function Documentation

◆ HasURIScheme()

bool Diligent::RadientFilesystemAssetResolver::HasURIScheme ( const std::string & URI)
static

Returns true if URI contains a non-filesystem scheme. Windows drive letters are treated as filesystem paths rather than URI schemes.