Get a shader-reflection variable by name.
public:
ID3D11ShaderReflectionVariable* GetVariableByName(
LPCSTR Name
)
Name
Type: LPCSTR
[in] Variable name.
Type: ID3D11ShaderReflectionVariable *
Returns a sentinel object (end of list marker). To determine if GetVariableByName successfully completed, call ID3D11ShaderReflectionVariable::GetDesc and check the returned HRESULT; any return value other than success means that GetVariableByName failed.
This method’s interface is hosted in the out-of-box DLL D3DCompiler_xx.dll.
Header: Declared in d3d11shader_x.h (d3d11shader.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).