ID3D12ShaderReflectionConstantBuffer::GetVariableByName method (d3d12shader.h)

Gets a shader-reflection variable by name.

Syntax

ID3D12ShaderReflectionVariable * GetVariableByName(
  [in] LPCSTR Name
);

Parameters

[in] Name

Type: LPCSTR

Variable name.

Return value

Type: ID3D12ShaderReflectionVariable*

Returns a sentinel object (end of list marker). To determine if GetVariableByName successfully completed, call ID3D12ShaderReflectionVariable::GetDesc and check the returned HRESULT; any return value other than success means that GetVariableByName failed.

Remarks

This method's interface is hosted in the out-of-box DLL D3DCompiler_xx.dll.

Requirements

Requirement Value
Target Platform Windows
Header d3d12shader.h

See also

ID3D12ShaderReflectionConstantBuffer