D3DKMT_CREATEDEVICEFLAGS structure (d3dkmthk.h)

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

Syntax

typedef struct _D3DKMT_CREATEDEVICEFLAGS {
  UINT LegacyMode : 1;
  UINT RequestVSync : 1;
  UINT DisableGpuTimeout : 1;
  UINT TestDevice : 1;
#if ...
  UINT Reserved : 28;
#elif
  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.

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.

DisableGpuTimeout

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

TestDevice

The device is created by a test. Supported starting in Windows 11, version 22H2 (WDDM 3.1).

Reserved

This member is reserved and should be set to zero.

Requirements

Requirement Value
Minimum supported client Windows Vista
Header d3dkmthk.h (include D3dkmthk.h)

See also

D3DKMT_CREATEDEVICE