The D3DDEVICEDESC structure contains a description of the current device. This structure is used to query the current device by such methods as IDirect3DDevice2::GetCaps.
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;
DWORD dwMinTextureWidth, dwMinTextureHeight;
DWORD dwMaxTextureWidth, dwMaxTextureHeight;
DWORD dwMinStippleWidth, dwMaxStippleWidth;
DWORD dwMinStippleHeight, dwMaxStippleHeight;
} D3DDEVICEDESC, *LPD3DDEVICEDESC;
D3DDEVCAPS_CANRENDERAFTERFLIP | |
Device can queue rendering commands after a page flip. Applications should not change their behavior if this flag is set; this capability simply means that the device is relatively fast. This flag was introduced in DirectX 5. |
|
D3DDEVCAPS_DRAWPRIMTLVERTEX | |
Device exports a DrawPrimitive-aware HAL. This flag was introduced in DirectX 5. |
|
D3DDEVCAPS_EXECUTESYSTEMMEMORY | |
Device can use execute buffers from system memory. | |
D3DDEVCAPS_EXECUTEVIDEOMEMORY | |
Device can use execute buffer 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_TEXTURENONLOCALVIDMEM | |
Device can retrieve textures from nonlocal video (AGP) memory. This flag was introduced in DirectX 5. For more information about AGP memory, see Using Non-local Video Memory Surfaces in the DirectDraw documentation. |
|
D3DDEVCAPS_TEXTURESYSTEMMEMORY | |
Device can retrieve textures from system memory. | |
D3DDEVCAPS_TEXTUREVIDEOMEMORY | |
Device can retrieve 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. |
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in d3dcaps.h.
D3DCOLORMODEL, D3DFINDDEVICERESULT, D3DLIGHTINGCAPS, D3DPRIMCAPS, D3DTRANSFORMCAPS