Microsoft DirectX 9.0 SDK Update (October 2004)

EffectCompiler.FromStream Method

Language:

Note: This documentation is preliminary and is subject to change.

Creates an effect compiler from an ASCII or binary effect description in a stream.

Definition

Visual Basic .NET Public Shared Function FromStream( _
    ByVal sourceData As Stream, _
    ByVal includeFile As Include, _
    ByVal flags As ShaderFlags _
) As EffectCompiler
C# public static EffectCompiler FromStream(
    Stream sourceData,
    Include includeFile,
    ShaderFlags flags
);
Managed C++ public: static EffectCompiler* FromStream(
    Stream *sourceData,
    Include *includeFile,
    ShaderFlags flags
);
JScript .NET public static function FromStream(
    sourceData : Stream,
    includeFile : Include,
    flags : ShaderFlags
) : EffectCompiler;

Parameters

sourceData System.IO.Stream. A Stream Leave Site object that contains the data used to create the EffectCompiler.
includeFile Microsoft.DirectX.Direct3D.Include. Optional Include object to use for handling #include directives. If this value is null, #include directives are either honored when compiling from a file, or cause an error when compiled from a resource or memory.
flags Microsoft.DirectX.Direct3D.ShaderFlags. One or more compile options identified by the ShaderFlags enumeration.

Return Value

Microsoft.DirectX.Direct3D.EffectCompiler . An EffectCompiler that represents the effect compiler.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
InvalidDataException The data is invalid.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center