Microsoft DirectX 8.1 (Visual Basic) |
Retrieves device-specific information about a device.
object.GetDeviceCaps( _ Adapter As Long, _ DeviceType As CONST_D3DDEVTYPE, _ Caps As D3DCAPS8)
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.
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.