ID3D10ShaderReflectionConstantBuffer::GetVariableByIndex 方法 (d3d10shader.h)

按索引获取着色器反射变量。

语法

ID3D10ShaderReflectionVariable * GetVariableByIndex(
  [in] UINT Index
);

参数

[in] Index

类型: UINT

从零开始的索引。

返回值

类型: ID3D10ShaderReflectionVariable*

指向着色器反射变量接口的指针 (请参阅 ID3D10ShaderReflectionVariable Interface) 。

要求

   
目标平台 Windows
标头 d3d10shader.h

另请参阅

ID3D10ShaderReflectionConstantBuffer 接口