D3DKMT_CREATEDEVICEFLAGS structure (d3dkmthk.h)
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;
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.
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).
TestDevice
Reserved
This member is reserved and should be set to zero. Setting this member is equivalent to setting the remaining 30 bits (0xFFFFFFFC) of a 32-bit value to zeros.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Header | d3dkmthk.h (include D3dkmthk.h) |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for