Método ID3D12ShaderReflectionConstantBuffer::GetVariableByName (d3d12shader.h)

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

Sintaxis

ID3D12ShaderReflectionVariable * GetVariableByName(
  [in] LPCSTR Name
);

Parámetros

[in] Name

Tipo: LPCSTR

Nombre de variable.

Valor devuelto

Tipo: ID3D12ShaderReflectionVariable*

Devuelve un objeto sentinel (final del marcador de lista). Para determinar si GetVariableByName se completó correctamente, llame a ID3D12ShaderReflectionVariable::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 la D3DCompiler_xx.dll DLL lista para usar.

Requisitos

Requisito Value
Plataforma de destino Windows
Encabezado d3d12shader.h

Consulte también

ID3D12ShaderReflectionConstantBuffer