Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetInfo

Retrieves information about the rendering device.

object.GetInfo( _ 
    DevInfoID As Long, _ 
    Info As Any, _ 
    Size As Long)

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
DevInfoID
Value used to identify what information will be returned in Info.
Info
A type that receives the specified device information if the call succeeds.
Size
Size of the type at Info, in bytes, as returned by the Len Microsoft® Visual Basic® function.

Error Codes

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.

Remarks

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.

IDTypeSizeExpected return value
-NULL-D3DERR_INVALIDCALL
--0D3DERR_INVALIDCALL
0Type_5Size_5E_FAIL
ID_1Type_1Size_1E_FAIL
ID_2Type_2Size_2E_FAIL
ID_3Type_3Size_3E_FAIL
ID_4Type_4Size_4S_FALSE
ID_5Type_5Size_5E_FAIL

 

The table below shows the possible values for ID.
ID_1D3DDEVINFOID_TEXTUREMANAGER
ID_2D3DDEVINFOID_D3DTEXTUREMANAGER
ID_3D3DDEVINFOID_TEXTURING
ID_4D3DDEVINFOID_VCACHE
ID_5D3DDEVINFOID_RESOURCEMANAGER
ID_6D3DDEVINFOID_D3DVERTEXSTATS
ID_7D3DDEVINFOID_UNKNOWN

 

The table below shows the possible values for Type.
Type_1D3DDEVINFO_TEXTUREMANAGER
Type_2D3DDEVINFO_D3DTEXTUREMANAGER
Type_3D3DDEVINFO_TEXTUREMANAGER
Type_4D3DDEVINFO_VCACHE
Type_5D3DDEVINFO_RESOURCEMANAGER
Type_6D3DDEVINFO_D3DVERTEXSTATS
Type_7D3DDEVINFO_UNKNOWN

 

The table below shows the possible values for Size.
Size_1sizeof(D3DDEVINFO_TEXTUREMANAGER)
Size_2sizeof(D3DDEVINFO_D3DTEXTUREMANAGER)
Size_3sizeof(D3DDEVINFO_TEXTUREMANAGER)
Size_4sizeof(D3DDEVINFO_VCACHE)
Size_5sizeof(D3DDEVINFO_RESOURCEMANAGER)
Size_6sizeof(D3DDEVINFO_D3DVERTEXSTATS)
Size_7sizeof(D3DDEVINFO_UNKNOWN)