D3D10_EFFECT_DESC 结构 (d3d10effect.h)

描述效果。

语法

typedef struct _D3D10_EFFECT_DESC {
  BOOL IsChildEffect;
  UINT ConstantBuffers;
  UINT SharedConstantBuffers;
  UINT GlobalVariables;
  UINT SharedGlobalVariables;
  UINT Techniques;
} D3D10_EFFECT_DESC;

成员

IsChildEffect

类型: BOOL

如果效果是子效果,则为 TRUE;否则为 FALSE

ConstantBuffers

类型: UINT

常量缓冲区的数目。

SharedConstantBuffers

类型: UINT

在效果池中共享的常量缓冲区数。

GlobalVariables

类型: UINT

全局变量的数目。

SharedGlobalVariables

类型: UINT

效果池中共享的全局变量数。

Techniques

类型: UINT

技术的数量。

注解

若要获取效果说明,请调用 ID3D10Effect::GetDesc

要求

要求
Header d3d10effect.h (包括 D3D10.h)

另请参阅

Direct3D 10) (效果结构