Share via


Include.Open(IncludeType,String) Method (Microsoft.DirectX.Direct3D)

Opens and reads the contents of a shader #include file.

Definition

Visual Basic MustOverride Public Function Open( _
    ByVal includeType As IncludeType, _
    ByVal filename As String _
) As StreamLeave Site
C# public abstract StreamLeave Site Open(
    IncludeType includeType,
    string filename
);
C++ public:
virtual StreamLeave SiteOpen(
    IncludeType includeType,
    StringLeave Sitefilename
) abstract;
JScript public abstract function Open(
    includeType : IncludeType,
    filename : String
) : StreamLeave Site;

Parameters

includeType Microsoft.DirectX.Direct3D.IncludeType
An IncludeType object that represents the #include file to open.
filename System.String
A StringLeave Site that contains the name of the #include file to open.

Return Value

System.IO.Stream
A StreamLeave Site object that contains the #include file data.