Método ID3D11ShaderReflectionConstantBuffer::GetVariableByName (d3d11shader.h)

Obtiene una variable de reflexión de sombreador por nombre.

Sintaxis

ID3D11ShaderReflectionVariable * GetVariableByName(
  [in] LPCSTR Name
);

Parámetros

[in] Name

Tipo: LPCSTR

Nombre de variable.

Valor devuelto

Tipo: ID3D11ShaderReflectionVariable*

Devuelve un objeto sentinel (final del marcador de lista). Para determinar si GetVariableByName se completó correctamente, llame a ID3D11ShaderReflectionVariable::GetDesc y compruebe el HRESULT devuelto; cualquier valor devuelto distinto de correcto significa que se produjo un error en GetVariableByName.

Comentarios

La interfaz de este método se hospeda en el archivo DLL de fábrica D3DCompiler_xx.dll.

Requisitos

Requisito Value
Plataforma de destino Windows
Encabezado d3d11shader.h
Library D3DCompiler.lib
Archivo DLL D3DCompiler_47.dll

Consulte también

Id3D11ShaderReflectionConstantBuffer (Interfaz)