ID3D11ShaderReflection::GetVariableByName Method

Gets a variable by name.

Syntax

public:
ID3D11ShaderReflectionVariable* GetVariableByName(
         LPCSTR Name
)  

Parameters

Name
Type: LPCSTR 

[in] A pointer to a string containing the variable name.

Return value

Type: ID3D11ShaderReflectionVariable *

Returns a ID3D11ShaderReflectionVariable Interface interface.

Remarks

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

Requirements

Header: Declared in d3d11shader_x.h (d3d11shader.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11ShaderReflection

ID3D11ShaderReflection Members