Direct3DDevice8.GetVertexShaderDeclaration
Retrieves the vertex shader declaration token array.
object.GetVertexShaderDeclaration( _
Handle As Long, _
Data As Any, _
SizeOfData As Long)
Parts
- object
- Object expression that resolves to a Direct3DDevice8 object.
- Handle
- Handle to the referred to vertex shader.
- Data
- First element of an array to be filled with the declaration associated with the requested vertex shader handle, if the call succeeds.
- SizeOfData
- Size of the array at Data, in bytes. If this value is less than the actual size of the data (such as 0) the method sets this parameter to the required buffer size, and the method returns D3DERR_MOREDATA. If Data is ByVal 0, then this parameter is filled with the required size and D3D_OK is returned.
Error Codes
If Handle is an invalid handle to a vertex shader, D3DERR_INVALIDCALL is returned.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
Remarks
The vertex shader declaration token array defines the inputs to the shader, including how the vertex elements within the input data streams are used by the shader.
See Also
Direct3DDevice8.GetVertexShader