ID3D11FunctionReflection::GetConstantBufferByIndex メソッド (d3d11shader.h)

関数のインデックスによって定数バッファーを取得します。

構文

ID3D11ShaderReflectionConstantBuffer * GetConstantBufferByIndex(
  [in] UINT BufferIndex
);

パラメーター

[in] BufferIndex

型: UINT

0 から始まるインデックス。

戻り値

種類: ID3D11ShaderReflectionConstantBuffer*

定数バッファーを表す ID3D11ShaderReflectionConstantBuffer インターフェイスへのポインター。

注釈

定数バッファーは、スカラー定数またはテクスチャ定数をシェーダーに提供します。 シェーダーでは、1 つ以上の定数バッファーを使用できます。 最適なパフォーマンスを得るには、更新される頻度に基づいて定数をバッファーに分割します。

要件

要件
対象プラットフォーム Windows
ヘッダー d3d11shader.h
Library D3DCompiler.lib
[DLL] D3DCompiler_47.dll

こちらもご覧ください

ID3D11FunctionReflection