IDirect3DDevice9::SetPixelShaderConstantF

浮動小数点型のシェーダー定数を設定します。

HRESULT 
SetPixelShaderConstantF(
  UINT StartRegister,
  CONST float * pConstantData,
  UINT Vector4fCount
);

パラメータ

  • StartRegister
    最初の定数値を格納するレジスタ番号です。
  • pConstantData
    定数の配列へのポインター
  • Vector4fCount
    定数の配列内の 4 つの浮動小数点ベクトルの数です。

戻り値

メソッドが成功した場合は、D3D_OK を返します。失敗した場合は、D3DERR_INVALIDCALL を返します。

要件

ヘッダー: D3D9.h 宣言

ライブラリ: D3D9.lib 内容

関連項目

IDirect3DDevice9::GetPixelShaderConstantF