Microsoft DirectX 8.1 (Visual Basic) |
Sets values in the vertex constant array.
object.SetVertexShaderConstant( _ Register As Long, _ ConstantData As Any, _ ConstantCount As Long)
If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
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.