class EditorShaderIncludeHandler

Shader include handler for the editor.

It uses project library to find the includes, and supports special keywords for built-in includes that reside outside of the project library.

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.

staticDetermineFullPath

static Path DetermineFullPath(const String &name)

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