Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetVertexShaderFunction

Retrieves the vertex shader function.

object.GetVertexShaderFunction( _ 
    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 code 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 the method fails, an error is raised and Err.Number can be set to one of the following values.

D3DERR_INVALIDCALL
D3DERR_MOREDATA

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 function defines the operation to apply to each vertex.

See Also

Direct3DDevice8.GetVertexShader