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

このシェーダー リフレクション インターフェイスは、定数バッファーへのアクセスを提供します。

メソッド

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

 
ID3D11ShaderReflectionConstantBuffer::GetDesc

定数バッファーの説明を取得します。 (ID3D11ShaderReflectionConstantBuffer.GetDesc)
ID3D11ShaderReflectionConstantBuffer::GetVariableByIndex

ID3D11ShaderReflectionConstantBuffer::GetVariableByIndex (d3d11shader.h) メソッドは、インデックスによってシェーダー リフレクション変数を取得します。
ID3D11ShaderReflectionConstantBuffer::GetVariableByName

シェーダーリフレクション変数を名前で取得します。 (ID3D11ShaderReflectionConstantBuffer.GetVariableByName)

解説

定数バッファー インターフェイスを作成するには、 ID3D11ShaderReflection::GetConstantBufferByIndex または ID3D11ShaderReflection::GetConstantBufferByName を呼び出します。 これは COM インターフェイスではないので、参照カウントを心配したり、インターフェイスを解放したりする必要はありません。

要件

   
サポートされている最小のクライアント Windows 7 [デスクトップ アプリ |UWP アプリ]
サポートされている最小のサーバー Windows Server 2008 R2 [デスクトップ アプリ |UWP アプリ]
対象プラットフォーム Windows
ヘッダー d3d11shader.h

関連項目

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