按名称获取变量。
语法
ID3D11ShaderReflectionVariable * GetVariableByName(
  [in] LPCSTR Name
);
参数
[in] Name
类型: LPCSTR
指向包含变量名称的字符串的指针。
返回值
类型: ID3D11ShaderReflectionVariable*
返回 ID3D11ShaderReflectionVariable 接口 。
注解
此方法的接口托管在现成的 DLL D3DCompiler_xx.dll 中。
要求
| 要求 | 值 | 
|---|---|
| 目标平台 | Windows | 
| 标头 | d3d11shader.h | 
| Library | D3DCompiler.lib | 
| DLL | D3DCompiler_47.dll |