Microsoft DirectX 8.1 (Visual Basic)

Direct3D8.GetDeviceCaps

Retrieves device-specific information about a device.

object.GetDeviceCaps( _ 
    Adapter As Long, _ 
    DeviceType As CONST_D3DDEVTYPE, _ 
    Caps As D3DCAPS8)

Parts

object
Object expression that resolves to a Direct3D8 object.
Adapter
Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter.
DeviceType
Member of the CONST_D3DDEVTYPE enumeration. Denotes the device type.
Caps
A D3DCAPS8 type to be filled with information describing the capabilities of the device.

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_INVALIDDEVICE
D3DERR_OUTOFVIDEOMEMORY

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

Remarks

The application should not assume the persistence of vertex processing capabilities across Microsoft® Direct3D® device objects. The particular capabilities that a physical device exposes may depend on parameters supplied to Direct3D8.CreateDevice. For example, the capabilities might yield different vertex processing capabilities before and after creating a Direct3D Device Object with hardware vertex processing enabled. For more information, see D3DCAPS8.