Share via


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

Obtém uma variável de reflexão de sombreador por nome.

Sintaxe

ID3D12ShaderReflectionVariable * GetVariableByName(
  [in] LPCSTR Name
);

Parâmetros

[in] Name

Tipo: LPCSTR

Nome da variável.

Retornar valor

Tipo: ID3D12ShaderReflectionVariable*

Retorna um objeto sentinela (fim do marcador de lista). Para determinar se GetVariableByName foi concluído com êxito, chame ID3D12ShaderReflectionVariable::GetDesc e marcar HRESULT retornado; qualquer valor retornado diferente de success significa que GetVariableByName falhou.

Comentários

A interface desse método é hospedada na D3DCompiler_xx.dll de DLL pronta para uso.

Requisitos

Requisito Valor
Plataforma de Destino Windows
Cabeçalho d3d12shader.h

Confira também

ID3D12ShaderReflectionConstantBuffer