// d3dkmddi.h
typedef struct _DXGK_CREATECONTEXTALLOCATIONFLAGS {
union {
struct {
UINT SharedAcrossContexts : 1;
UINT MapGpuVirtualAddress : 1;
#if ...
UINT Reserved : 30;
#else
UINT Reserved : 31;
#endif
};
[in] UINT Value;
};
} DXGK_CREATECONTEXTALLOCATIONFLAGS;
View the official Windows Driver Kit DDI referenceNo description available.
Specifies the properties of the context to be allocated.
SharedAcrossContexts [in]A UINT value that specifies the association of the context.
If SharedAcrossContexts is set to one, the allocation is associated with all contexts specified by the hDevice member of the DXGKARGCB_CREATECONTEXTALLOCATION structure. The allocated context will be made resident when any context that belongs to hDevice is scheduled to run on the GPU.
If SharedAcrossContexts is set to zero, the allocation is associated with the context specified by the hContext member of the DXGKARGCB_CREATECONTEXTALLOCATION structure. The allocated context will be made resident when hContext is scheduled to run on the GPU.
MapGpuVirtualAddressReserved [in]This member is reserved and should be set to zero. Setting this member to zero is equivalent to setting the most significant 31 bits (0xFFFFFFFE) to zeros.
Value [in]A 32-bit value that specifies the context allocation flags.
The display miniport driver allocates GPU contexts or device-specific contexts by calling DxgkCbCreateContextAllocation.
The ContextAllocationFlags member of the DXGKARGCB_CREATECONTEXTALLOCATION structure is an DXGK_CREATECONTEXTALLOCATIONFLAGS data type.
DXGKARGCB_CREATECONTEXTALLOCATION