Share via


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

Compiles an effect.

Definition

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

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.