ID3DXInclude

ID3DXInclude is a user-implemented interface to provide callbacks for #include directives during shader compilation. Each of the methods in this interface must be implemented by the user which will then be used as callbacks to the application when one of the following occurs:

ID3DXInclude Members

Method Description
ID3DXInclude::Close A user-implemented method for closing a shader #include file.
ID3DXInclude::Open A user-implemented method for opening and reading the contents of a shader #include file.

Remarks

A user creates an ID3DXInclude interface by implementing a class that derives from this interface, and implementing all the interface methods.

The LPD3DXINCLUDE type is defined as a pointer to this interface.

typedef interface ID3DXInclude ID3DXInclude;
typedef interface ID3DXInclude *LPD3DXINCLUDE;