class Includer

Defined at line 598 of file ../../third_party/glslang/src/glslang/Public/ShaderLang.h

Interface to #include handlers.

To support #include, a client of Glslang does the following:

1. Call setStringsWithNames to set the source strings and associated

names. For example, the names could be the names of the files

containing the shader sources.

2. Call parse with an Includer.

When the Glslang parser encounters an #include directive, it calls

the Includer's include method with the requested include name

together with the current string name. The returned IncludeResult

contains the fully resolved name of the included source, together

with the source text that should replace the #include directive

in the source stream. After parsing that source, Glslang will

release the IncludeResult object.

Public Methods

IncludeResult * includeSystem (const char * , const char * , size_t )

For the "system" or

<

>-style includes; search the "system" paths.

Defined at line 643 of file ../../third_party/glslang/src/glslang/Public/ShaderLang.h

IncludeResult * includeLocal (const char * , const char * , size_t )

For the "local"-only aspect of a "" include. Should not search in the

"system" paths, because on returning a failure, the parser will

call includeSystem() to look in the "system" locations.

Defined at line 650 of file ../../third_party/glslang/src/glslang/Public/ShaderLang.h

void releaseInclude (IncludeResult * )

Signals that the parser will no longer use the contents of the

specified IncludeResult.

void ~Includer ()

Defined at line 657 of file ../../third_party/glslang/src/glslang/Public/ShaderLang.h

Records