Microsoft DirectX 8.1 (C++)

IDirect3DDevice8::GetPixelShaderConstant

Retrieves the values in the pixel constant array.

HRESULT GetPixelShaderConstant(
   DWORD Register,
   void* pConstantData,
   DWORD ConstantCount
);

Parameters

Register
[in] Register address at which to start retrieving data from the pixel constant array.
pConstantData
[in, out] Pointer to the data block to hold the retrieved values from the pixel constant array. The size of the data block is (ConstantCount * 4 * sizeof(float)).
ConstantCount
[in] Number of constants to retrieve from the pixel constant array. Each constant is comprised of four floating-point values.

Return Values

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

This is the method used to retrieve the values in the constant registers of the pixel shader assembler.

Requirements

  Header: Declared in D3d8.h.
  Import Library: Use D3d8.lib.

See Also

IDirect3DDevice8::SetPixelShaderConstant