Microsoft DirectX 8.1 (C++)

IDirect3DDevice8::GetInfo

Retrieves information about the rendering device.

HRESULT GetInfo(
  DWORD DevInfoID,
  VOID* pDevInfoStruct,
  DWORD DevInfoStructSize
);

Parameters

DevInfoID
[in] Value used to identify what information will be returned in pDevInfoStruct.
pDevInfoStruct
[in, out] Pointer to a structure that receives the specified device information if the call succeeds.
DevInfoStructSize
[in] Size of the structure at pDevInfoStruct, in bytes.

Return Values

If the method succeeds, the return value is D3D_OK.

If this method fails, the return value is one of following.
D3DERR_INVALIDCALL One or more parameters are invalid.
E_FAIL All parameters are valid, but not supported. The structure passed in the pDevInfoStruct parameter is not filled.
S_FALSE All parameters are valid, but an unknown error occurred. The structure passed in the pDevInfoStruct parameter is not filled.

Remarks

Information returned by this method can pertain to 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 can negatively impact an application's performance when it executes slowly. Do not call this method during scene rendering (between calls to IDirect3DDevice8::BeginScene and IDirect3DDevice8::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, Struct is equivalent to the pDevInfoStruct parameter, and Size is equivalent to the DevInfoStructSize parameter.

IDStructSizeExpected return value
-NULL-D3DERR_INVALIDCALL
--0D3DERR_INVALIDCALL
0Struct_7Size_7E_FAIL
ID_1Struct_1Size_1E_FAIL
ID_2Struct_2Size_2E_FAIL
ID_3Struct_3Size_3E_FAIL
ID_4Struct_4Size_4S_FALSE
ID_5Struct_5Size_5
ID_6Struct_6Size_6
ID_7Struct_7Size_7E_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 Struct.
Struct_1D3DDEVINFO_TEXTUREMANAGER
Struct_2D3DDEVINFO_D3DTEXTUREMANAGER
Struct_3D3DDEVINFO_TEXTUREMANAGER
Struct_4D3DDEVINFO_VCACHE
Struct_5D3DDEVINFO_RESOURCEMANAGER
Struct_6D3DDEVINFO_D3DVERTEXSTATS
Struct_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)

Requirements

  Header: Declared in D3d8.h.
  Import Library: Use D3d8.lib.