IDirect3DDevice9::SetPixelShaderConstantF 方法 (d3d9helper.h)

设置浮点着色器常量。

语法

HRESULT SetPixelShaderConstantF(
  [in] UINT        StartRegister,
  [in] const float *pConstantData,
  [in] UINT        Vector4fCount
);

参数

[in] StartRegister

类型: UINT

将包含第一个常量值的寄存器号。

[in] pConstantData

类型: const float*

指向常量数组的指针。

[in] Vector4fCount

类型: UINT

常量数组中四个浮点向量的数目。

返回值

类型: HRESULT

如果方法成功,则返回值D3D_OK。 如果 方法失败,则可以D3DERR_INVALIDCALL返回值。

要求

要求
目标平台 Windows
标头 d3d9helper.h (包括 D3D9.h)
Library D3D9.lib

另请参阅

IDirect3DDevice9

IDirect3DDevice9::GetPixelShaderConstantF