次の方法で共有


ID3DXEffectCompiler

ID3DXEffectCompiler インターフェイスは、関数または頂点シェーダーからのエフェクトをコンパイルします。

ID3DXBaseEffect
   ID3DXEffect
   

ID3DXEffectCompiler メンバー

メソッド 説明
ID3DXEffectCompiler::CompileEffect エフェクトをコンパイルします。
ID3DXEffectCompiler::CompileShader 1 つまたは複数の関数を含むエフェクトからのシェーダーをコンパイルします。
ID3DXEffectCompiler::GetLiteral パラメーターのリテラル ステータスを取得します。リテラル パラメーターの値は、エフェクトの有効期間中は変更されません。
ID3DXEffectCompiler::SetLiteral パラメーターのリテラル ステータスを切り替えます。リテラル パラメーターの値は、エフェクトの有効期間中は変更されません。

解説 

ID3DXEffectCompiler インターフェイスは、D3DXCreateEffectCompilerD3DXCreateEffectCompilerFromFile、または D3DXCreateEffectCompilerFromResource を呼び出すことによって取得されます。

LPD3DXEFFECTCOMPILER 型は、このインターフェイスへのポインターとして定義されています。

typedef interface ID3DXEffectCompiler ID3DXEffectCompiler;
typedef interface ID3DXEffectCompiler *LPD3DXEFFECTCOMPILER;

関連項目

D3DXCreateEffectCompiler, D3DXCreateEffectCompilerFromFile, D3DXCreateEffectCompilerFromResource

要件

ヘッダー: D3DX9Effect.h 宣言

ライブラリ: D3dx9.lib 内容