Share via


EffectCompiler.CompileEffect(ShaderFlags) Method (Microsoft.DirectX.Direct3D)

Compiles an effect.

Definition

Visual Basic Public Function CompileEffect( _
    ByVal flags As ShaderFlags _
) As GraphicsStream
C# public GraphicsStream CompileEffect(
    ShaderFlags flags
);
C++ public:
GraphicsStreamCompileEffect(
    ShaderFlags flags
);
JScript public function CompileEffect(
    flags : ShaderFlags
) : GraphicsStream;

Parameters

flags Microsoft.DirectX.Direct3D.ShaderFlags
One or more ShaderFlags that specify compile options, or 0.

Return Value

Microsoft.DirectX.GraphicsStream
A GraphicsStream object that contains the compiled effect.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.