ID3D12ShaderReflection::GetVariableByName 方法 (d3d12shader.h)
按名称获取变量。
语法
ID3D12ShaderReflectionVariable * GetVariableByName(
[in] LPCSTR Name
);
参数
[in] Name
类型: LPCSTR
指向包含变量名称的字符串的指针。
返回值
类型: ID3D12ShaderReflectionVariable*
返回 ID3D12ShaderReflectionVariable 接口 。
备注
此方法的接口托管在现成的 DLL D3DCompiler_xx.dll 中。
要求
目标平台 | Windows |
标头 | d3d12shader.h |
请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈