ID3D11FunctionReflection インターフェイス (d3d11shader.h)

関数リフレクション インターフェイスは、関数情報にアクセスします。

メモ このインターフェイスは、すべての Direct3D 11 プラットフォームで使用できる HLSL シェーダー リンク テクノロジの一部であり、プリコンパイル済みの HLSL 関数を作成し、それらをライブラリにパッケージ化し、実行時に完全なシェーダーにリンクできます。

 

メソッド

ID3D11FunctionReflection インターフェイスには、これらのメソッドがあります。

 
ID3D11FunctionReflection::GetConstantBufferByIndex

ID3D11FunctionReflection::GetConstantBufferByIndex (d3d11shader.h) メソッドは、関数のインデックスによって定数バッファーを取得します。
ID3D11FunctionReflection::GetConstantBufferByName

関数の名前で定数バッファーを取得します。 (ID3D11FunctionReflection.GetConstantBufferByName)
ID3D11FunctionReflection::GetDesc

関数の関数記述子構造体を入力します。 (ID3D11FunctionReflection.GetDesc)
ID3D11FunctionReflection::GetFunctionParameter

関数パラメーター リフレクターを取得します。 (ID3D11FunctionReflection.GetFunctionParameter)
ID3D11FunctionReflection::GetResourceBindingDesc

リソースが関数にバインドされる方法の説明を取得します。 (ID3D11FunctionReflection.GetResourceBindingDesc)
ID3D11FunctionReflection::GetResourceBindingDescByName

リソースが関数にバインドされる方法の説明を取得します。 (ID3D11FunctionReflection.GetResourceBindingDescByName)
ID3D11FunctionReflection::GetVariableByName

名前で変数を取得します。 (ID3D11FunctionReflection.GetVariableByName)

注釈

関数リフレクション インターフェイスを取得するには、 ID3D11LibraryReflection::GetFunctionByIndex を呼び出します。 これは COM インターフェイスではないので、参照カウントを気にしたり、インターフェイスを解放したりする必要はありません。

ID3D11FunctionReflection には、D3dcompiler_47.dll 以降のバージョンの DLL が必要です。
 

要件

要件
対象プラットフォーム Windows
ヘッダー d3d11shader.h

こちらもご覧ください

シェーダー インターフェイス