D3DKMT_CREATEDEVICEFLAGS structure

The D3DKMT_CREATEDEVICEFLAGS structure identifies the type of device context to be created in a call to the D3DKMTCreateDevice function.

Syntax

typedef struct _D3DKMT_CREATEDEVICEFLAGS {
  UINT LegacyMode : 1;
  UINT RequestVSync : 1;
  UINT DisableGpuTimeout : 1;
#if ...
  UINT Reserved : 29;
#else
  UINT Reserved : 30;
#endif
} D3DKMT_CREATEDEVICEFLAGS;

Members

LegacyMode

A UINT value that specifies whether the device should imitate several behaviors of legacy devices (that is, from Microsoft DirectDraw through Microsoft Direct3D 9.0 device types).

When legacy mode is enabled, the video memory manager does not allow the device to allocate more video memory than can fit in the combined GPU segment. Primaries are allocated in place in video memory and not preserved across mode switches.

Setting this member is equivalent to setting the first bit of a 32-bit value (0x00000001).

RequestVSync

A UINT value that specifies whether the device requires vertical sync to operate. If RequestVSync is set, the operating system will enable vertical sync on the graphics hardware until the display device is released.

Setting this member is equivalent to setting the second bit of a 32-bit value (0x00000002).

DisableGpuTimeout

Supported in Windows 8 and later versions.A UINT value that specifies whether the device has disabled Timeout Detection and Recovery (TDR).

Setting this member is equivalent to setting the second bit of a 32-bit value (0x00000004).

Reserved.#1302794593

Reserved.#845183812

Requirements

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header d3dkmthk.h (include D3dkmthk.h)

See Also

D3DKMT_CREATEDEVICE