Condividi tramite


Metodo ID3D12ShaderReflectionConstantBuffer::GetVariableByName (d3d12shader.h)

Ottiene una variabile shader-reflection in base al nome.

Sintassi

ID3D12ShaderReflectionVariable * GetVariableByName(
  [in] LPCSTR Name
);

Parametri

[in] Name

Tipo: LPCSTR

Nome variabile.

Valore restituito

Tipo: ID3D12ShaderReflectionVariable*

Restituisce un oggetto sentinel (indicatore di fine elenco). Per determinare se GetVariableByName è stato completato correttamente, chiamare ID3D12ShaderReflectionVariable::GetDesc e controllare l'HRESULT restituito; qualsiasi valore restituito diverso da success indica che GetVariableByName non è riuscito.

Commenti

L'interfaccia di questo metodo è ospitata nella DLL predefinita D3DCompiler_xx.dll.

Requisiti

Requisito Valore
Piattaforma di destinazione Windows
Intestazione d3d12shader.h

Vedi anche

ID3D12ShaderReflectionConstantBuffer