ID3D12ShaderReflectionConstantBuffer::GetVariableByName メソッド (d3d12shader.h)

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

構文

ID3D12ShaderReflectionVariable * GetVariableByName(
  [in] LPCSTR Name
);

パラメーター

[in] Name

種類: LPCSTR

変数名。

戻り値

種類: ID3D12ShaderReflectionVariable*

Sentinel オブジェクト (リスト マーカーの末尾) を返します。 GetVariableByName が正常に完了したかどうかを確認するには、ID3D12ShaderReflectionVariable::GetDesc を呼び出し、返された HRESULT をチェックします。成功以外の戻り値は、GetVariableByName が失敗したことを意味します。

注釈

このメソッドのインターフェイスは、すぐに使用できない DLL D3DCompiler_xx.dll でホストされます。

要件

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

こちらもご覧ください

ID3D12ShaderReflectionConstantBuffer