Microsoft DirectX 8.1 (C++) |
Sets values in the vertex constant array.
HRESULT SetVertexShaderConstant( DWORD Register, CONST void* pConstantData, DWORD ConstantCount );
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be D3DERR_INVALIDCALL.
This is the method used to load the constant registers of the vertex shader assembler. When loading transformation matrices, the application should transpose them row/column and load them into consecutive constant registers.
Header: Declared in D3d8.h.
Import Library: Use D3d8.lib.