Microsoft DirectX 8.1 (Visual Basic)

Direct3D8.RegisterSoftwareDevice

Registers a pluggable software device with Microsoft® Direct3D®.

object.RegisterSoftwareDevice( _ 
    InitializeFunction As Any)

Parts

object
Object expression that resolves to a Direct3D8 object.
InitializeFunction
Initialization function for the software device to be registered.

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_OUTOFVIDEOMEMORY

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Remarks

The current interface for pluggable software rasterizers is a depreciated feature so do not use this method for any rasterizer (other than using it with the Microsoft® DirectX® reference rasterizer for testing).