D3DDEVICEDESC

typedef struct _D3DDeviceDesc {

DWORD dwSize;

DWORD dwFlags;

D3DCOLORMODEL dcmColorModel;

DWORD dwDevCaps;

D3DTRANSFORMCAPS dtcTransformCaps;

BOOL bClipping;

D3DLIGHTINGCAPS dlcLightingCaps;

D3DPRIMCAPS dpcLineCaps;

D3DPRIMCAPS dpcTriCaps;

DWORD dwDeviceRenderBitDepth;

DWORD dwDeviceZBufferBitDepth;

DWORD dwMaxBufferSize;

DWORD dwMaxVertexCount;

} D3DDEVICEDESC, *LPD3DDEVICEDESC;

Contains a description of the current device. This structure is used to query the current device by such methods as IDirect3DDevice::GetCaps.

dwSize

Size, in bytes, of this structure.

dwFlags

Flags identifying the members of this structure that contain valid data.

D3DDD_BCLIPPING

The bClipping member is valid.

D3DDD_COLORMODEL

The dcmColorModel member is valid.

D3DDD_DEVCAPS

The dwDevCaps member is valid.

D3DDD_LIGHTINGCAPS

The dlcLightingCaps member is valid.

D3DDD_LINECAPS

The dpcLineCaps member is valid.

D3DDD_MAXBUFFERSIZE

The dwMaxBufferSize member is valid.

D3DDD_MAXVERTEXCOUNT

The dwMaxVertexCount member is valid.

D3DDD_TRANSFORMCAPS

The dtcTransformCaps member is valid.

D3DDD_TRICAPS

The dpcTriCaps member is valid.

dcmColorModel

One of the members of the D3DCOLORMODEL enumerated type, specifying the color model for the device.

dwDevCaps

Flags identifying the capabilities of the device.

D3DDEVCAPS_EXECUTESYSTEMMEMORY

Device can use execute buffers from system memory.

D3DDEVCAPS_EXECUTEVIDEOMEMORY

Device can use execute buffers from video memory.

D3DDEVCAPS_FLOATTLVERTEX

Device accepts floating point for post-transform vertex data.

D3DDEVCAPS_SORTDECREASINGZ

Device needs data sorted for decreasing depth.

D3DDEVCAPS_SORTEXACT

Device needs data sorted exactly.

D3DDEVCAPS_SORTINCREASINGZ

Device needs data sorted for increasing depth.

D3DDEVCAPS_TEXTURESYSTEMMEMORY

Device can retrieve textures from system memory.

D3DDEVCAPS_TEXTUREVIDEOMEMORY

Device can retrieves textures from device memory.

D3DDEVCAPS_TLVERTEXSYSTEMMEMORY

Device can use buffers from system memory for transformed and lit vertices.

D3DDEVCAPS_TLVERTEXVIDEOMEMORY

Device can use buffers from video memory for transformed and lit vertices.

dtcTransformCaps

One of the members of the D3DTRANSFORMCAPS structure, specifying the transformation capabilities of the device.

bClipping

TRUE if the device can perform 3D clipping.

dlcLightingCaps

One of the members of the D3DLIGHTINGCAPS structure, specifying the lighting capabilities of the device.

dpcLineCaps and dpcTriCaps

D3DPRIMCAPS structures defining the device's support for line-drawing and triangle primitives.

dwDeviceRenderBitDepth

Device's rendering bit-depth. This can be one or more of the following DirectDraw bit-depth constants: DDBD_8, DDBD_16, DDBD_24, or DDBD_32.

dwDeviceZBufferBitDepth

Device's z-buffer bit-depth. This can be one of the following DirectDraw bit-depth constants: DDBD_8, DDBD_16, DDBD_24, or DDBD_32.

dwMaxBufferSize

Maximum size of the execute buffer for this device. If this member is 0, the application can use any size.

dwMaxVertexCount

Maximum vertex count for this device.