// d3dukmdt.h
typedef struct _D3DDDI_CREATECONTEXTFLAGS {
union {
struct {
UINT NullRendering : 1;
UINT InitialData : 1;
UINT DisableGpuTimeout : 1;
UINT SynchronizationOnly : 1;
UINT HwQueueSupported : 1;
UINT NoKmdAccess : 1;
UINT TestContext : 1;
#if ...
UINT Reserved : 25;
#elif
UINT Reserved : 28;
#else
UINT Reserved : 30;
#endif
};
UINT Value;
};
} D3DDDI_CREATECONTEXTFLAGS;
View the official Windows Driver Kit DDI referenceNo description available.
The D3DDDI_CREATECONTEXTFLAGS structure describes how to create a context in a call to the pfnCreateContextCb function.
NullRenderingSpecifies whether the GPU should process any commands that are sent by the context that is created. The NullRendering bit-field flag is set to inform the GPU not to process any commands that are sent by the context. The NullRendering bit-field flag is set only during performance investigating and debugging to simulate an infinitely fast rendering engine that still must perform the overhead of DMA buffer submission and signaling. NullRendering is never set during typical operations.
InitialDataWhen set, indicates that the context is created with initial data.
DisableGpuTimeoutWhen set, indicates that the GPU timeout is disabled for the context.
SynchronizationOnlyWhen set, indicates that the context is created for synchronization purposes only, and not for rendering.
HwQueueSupportedWhen set, indicates that the context supports hardware queues, which can improve efficiency in command processing.
NoKmdAccessWhen set, indicates that the context is created without kernel-mode driver (KMD) access. Added in WDDM 2.3.
TestContextWhen set, indicates that the context is created for testing purposes. Added in WDDM 2.3.
ReservedThis member is reserved and should be set to zero.
ValueA member in the union that is contained in D3DDDI_CREATECONTEXTFLAGS that can hold one 32-bit value that identifies how to create the context.