class EngineShaderIncludeHandler

Shader include handler for the engine.

It loads includes relative to the application working directory and supports special $ENGINE$ folder for built-in includes.

Public

Methods

FindInclude

HShaderInclude FindInclude(const String &name) const override

Attempts to find a shader include resource based on its name.

FindIncludeSource

TOptional<String> FindIncludeSource(const String &name) const override

Attempts to find a shader include based on the include name and returns the include source code if found.

AddSearchPath

void AddSearchPath(const Path &path) override

Registers a path in which to look for shader include files, along the default places.

DetermineFullPath

Path DetermineFullPath(const String &name) const

Converts a shader include name to a full path to the include file.

Private

Fields

mSearchPaths

Vector<Path> mSearchPaths