EffectCompiler.CompileEffect(ShaderFlags,String) Method (Microsoft.DirectX.Direct3D)
Compiles an effect.
Definition
Visual Basic Public Function CompileEffect( _
ByVal flags As ShaderFlags, _
ByRef errorMessages As String _
) As GraphicsStreamC# public GraphicsStream CompileEffect(
ShaderFlags flags,
out string errorMessages
);C++ public:
GraphicsStream^ CompileEffect(
ShaderFlags flags,
[Out] String^% errorMessages
);JScript public function CompileEffect(
flags : ShaderFlags,
errorMessages : String
) : GraphicsStream;
Parameters
flags Microsoft.DirectX.Direct3D.ShaderFlags
One or more ShaderFlags that specify compile options, or 0.errorMessages System.String
String that contains at least the first compile error message that occurs, including effect compiler errors and high-level language compile errors.
Return Value
Microsoft.DirectX.GraphicsStream
A GraphicsStream object that contains the compiled effect.
Remarks
Exceptions
The method call is invalid. For example, a method's parameter might contain an invalid value.