Microsoft DirectX 8.1 (C++)

IDirect3DDevice8::GetVertexShaderConstant

Retrieves the values in the vertex constant array.

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

Parameters

Register
[in] Register address at which to start retrieving data from the vertex constant array.
pConstantData
[out] Pointer to the data block to hold the retrieved values from the vertex constant array. The size of the data block is (ConstantCount * 4 * sizeof(float)).
ConstantCount
[in] Number of constants to retrieve from the vertex 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 vertex shader assembler.

Requirements

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

See Also

IDirect3DDevice8::SetVertexShaderConstant