Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Shaders.Parser.IncludeHandler Interface Reference

Callback interface to handle included file requested by the PreProcessor. More...

Inheritance diagram for SiliconStudio.Shaders.Parser.IncludeHandler:
SiliconStudio.Shaders.Parser.DefaultIncludeHandler

Public Member Functions

Stream Open (IncludeType type, string fileName, Stream parentStream)
 A user-implemented method for opening and reading the contents of a shader #include file. More...
 
void Close (Stream stream)
 A user-implemented method for closing a shader #include file. More...
 

Detailed Description

Callback interface to handle included file requested by the PreProcessor.

Definition at line 10 of file IncludeHandler.cs.

Member Function Documentation

void SiliconStudio.Shaders.Parser.IncludeHandler.Close ( Stream  stream)

A user-implemented method for closing a shader #include file.

If IncludeHandler.Open was successful, Close is guaranteed to be called before the API using the IncludeHandler interface returns.

Parameters
streamThis is a reference that was returned by the corresponding IncludeHandler.Open call.

Implemented in SiliconStudio.Shaders.Parser.DefaultIncludeHandler.

Stream SiliconStudio.Shaders.Parser.IncludeHandler.Open ( IncludeType  type,
string  fileName,
Stream  parentStream 
)

A user-implemented method for opening and reading the contents of a shader #include file.

Parameters
typeA IncludeType-typed value that indicates the location of the #include file.
fileNameName of the #include file.
parentStreamPointer to the container that includes the #include file.
Returns
Stream that is associated with fileName to be read. This reference remains valid until IncludeHandler.Close is called.

Implemented in SiliconStudio.Shaders.Parser.DefaultIncludeHandler.


The documentation for this interface was generated from the following file: