ID3DXEffectCompiler

The ID3DXEffectCompiler interface compiles an effect from a function or from a vertex shader.

ID3DXBaseEffect
   ID3DXEffect
   ID3DXEffectCompiler

ID3DXEffectCompiler Members

Method Description
ID3DXEffectCompiler::CompileEffect Compile an effect.
ID3DXEffectCompiler::CompileShader Compiles a shader from an effect that contains one or more functions.
ID3DXEffectCompiler::GetLiteral Gets a literal status of a parameter. A literal parameter has a value that doesn't change during the lifetime of an effect.
ID3DXEffectCompiler::SetLiteral Toggles the literal status of a parameter. A literal parameter has a value that doesn't change during the lifetime of an effect.

Remarks

The ID3DXEffectCompiler interface is obtained by calling D3DXCreateEffectCompiler, D3DXCreateEffectCompilerFromFile, or D3DXCreateEffectCompilerFromResource.

The LPD3DXEFFECTCOMPILER type is defined as a pointer to this interface.

typedef interface ID3DXEffectCompiler ID3DXEffectCompiler;
typedef interface ID3DXEffectCompiler *LPD3DXEFFECTCOMPILER;

See Also

D3DXCreateEffectCompiler, D3DXCreateEffectCompilerFromFile, D3DXCreateEffectCompilerFromResource

Requirements

Header: Declared in D3dx9effect.h.

Import Library: Use D3dx9.lib.