// d3dkmddi.h
typedef struct _DXGK_CREATECONTEXTFLAGS {
union {
struct {
UINT SystemContext : 1;
UINT GdiContext : 1;
UINT VirtualAddressing : 1;
UINT SystemProtectedContext : 1;
UINT HwQueueSupported : 1;
UINT TestContext : 1;
#if ...
UINT Reserved : 26;
#elif
UINT Reserved : 27;
#elif
UINT Reserved : 28;
#elif
UINT Reserved : 29;
#else
UINT Reserved : 30;
#endif
};
UINT Value;
};
} DXGK_CREATECONTEXTFLAGS;
View the official Windows Driver Kit DDI referenceNo description available.
The DXGK_CREATECONTEXTFLAGS structure identifies how to create contexts.
SystemContextA UINT value that specifies whether contexts that a driver's DxgkDdiCreateContext function creates are system contexts for the engine that the EngineAffinity member of the DXGKARG_CREATECONTEXT structure specifies. A system context is created for the paging engine only.
GdiContextA UINT value that specifies whether the contexts that a driver's DxgkDdiCreateContext function creates are GDI-specific contexts for the engine that the EngineAffinity member of the DXGKARG_CREATECONTEXT structure specifies.
This member is available beginning with Windows 7.
VirtualAddressingSpecifies whether the contexts that a driver's DxgkDdiCreateContext function creates use virtual addressing.
Supported starting with Windows 10.
SystemProtectedContextSpecifies whether the context being used to modify the VPR will have access to allocations outside the VPR.
Supported starting with Windows 10.
HwQueueSupportedSpecifies whether the context supports hardware queues.
TestContextSpecifies whether the context is a test context for Kernel-mode testing. Available starting with Windows 11, version 24H2 (WDDM 3.2).
ReservedThis member is reserved and should be set to zero.
ValueA member in the union that DXGK_CREATECONTEXTFLAGS contains that can hold a 32-bit value that identifies how to create contexts.