Microsoft DirectX 8.1 (Visual Basic) |
Retrieves information about the rendering device.
object.GetInfo( _ DevInfoID As Long, _ Info As Any, _ Size As Long)
If this method fails, an error is raised and Err.Number is set to one of the following values.
D3DERR_INVALIDCALL | One or more parameters are invalid. |
E_FAIL | All parameters are valid, but not supported. The type passed in the Info parameter is not filled. |
S_FALSE | All parameters are valid, but an unknown error occurred. The type passed in the Info parameter is not filled. |
For information on trapping errors, see the Visual Basic Error Handling topic.
Information returned by this method can pertain to Microsoft® Direct3D® or the underlying device driver. This method makes it possible for drivers to declare specific information types and corresponding structures that are not documented in this software development kit (SDK).
This method executes synchronously and it can reduce your application's performance when it executes slowly. Do not call this method during scene rendering (between calls to Direct3DDevice8.BeginScene and Direct3DDevice8.EndScene).
This method is intended to be used for performance tracking and debugging during product development.
The following table shows a list of all the possible input values and the expected return value. ID is equivalent to the DevInfoID parameter, Type is equivalent to the Info parameter, and Size is equivalent to the Size parameter.
ID | Type | Size | Expected return value |
---|---|---|---|
- | NULL | - | D3DERR_INVALIDCALL |
- | - | 0 | D3DERR_INVALIDCALL |
0 | Type_5 | Size_5 | E_FAIL |
ID_1 | Type_1 | Size_1 | E_FAIL |
ID_2 | Type_2 | Size_2 | E_FAIL |
ID_3 | Type_3 | Size_3 | E_FAIL |
ID_4 | Type_4 | Size_4 | S_FALSE |
ID_5 | Type_5 | Size_5 | E_FAIL |
The table below shows the possible values for ID.
ID_1 | D3DDEVINFOID_TEXTUREMANAGER |
ID_2 | D3DDEVINFOID_D3DTEXTUREMANAGER |
ID_3 | D3DDEVINFOID_TEXTURING |
ID_4 | D3DDEVINFOID_VCACHE |
ID_5 | D3DDEVINFOID_RESOURCEMANAGER |
ID_6 | D3DDEVINFOID_D3DVERTEXSTATS |
ID_7 | D3DDEVINFOID_UNKNOWN |
The table below shows the possible values for Type.
Type_1 | D3DDEVINFO_TEXTUREMANAGER |
Type_2 | D3DDEVINFO_D3DTEXTUREMANAGER |
Type_3 | D3DDEVINFO_TEXTUREMANAGER |
Type_4 | D3DDEVINFO_VCACHE |
Type_5 | D3DDEVINFO_RESOURCEMANAGER |
Type_6 | D3DDEVINFO_D3DVERTEXSTATS |
Type_7 | D3DDEVINFO_UNKNOWN |
The table below shows the possible values for Size.
Size_1 | sizeof(D3DDEVINFO_TEXTUREMANAGER) |
Size_2 | sizeof(D3DDEVINFO_D3DTEXTUREMANAGER) |
Size_3 | sizeof(D3DDEVINFO_TEXTUREMANAGER) |
Size_4 | sizeof(D3DDEVINFO_VCACHE) |
Size_5 | sizeof(D3DDEVINFO_RESOURCEMANAGER) |
Size_6 | sizeof(D3DDEVINFO_D3DVERTEXSTATS) |
Size_7 | sizeof(D3DDEVINFO_UNKNOWN) |