class IShaderIncludeHandler

Interface that provides a method for finding a shader include resource based on the name of the include that was provided in a shader file.

Public

Methods

~IShaderIncludeHandler

virtual ~IShaderIncludeHandler() noexcept = default

FindInclude

virtual HShaderInclude FindInclude(const String &name) const = 0

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

FindIncludeSource

virtual TOptional<String> FindIncludeSource(const String &name) const = 0

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

AddSearchPath

virtual void AddSearchPath(const Path &path)

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