![]() |
Paradox Game Engine
v1.0.0 beta06
|
Callback interface to handle included file requested by the PreProcessor. More...
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... | |
Callback interface to handle included file requested by the PreProcessor.
Definition at line 10 of file IncludeHandler.cs.
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.
stream | This 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.
type | A IncludeType-typed value that indicates the location of the #include file. |
fileName | Name of the #include file. |
parentStream | Pointer to the container that includes the #include file. |
Implemented in SiliconStudio.Shaders.Parser.DefaultIncludeHandler.