DXGK_CREATECONTEXTALLOCATIONFLAGS - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-d3dkmddi-_dxgk_createcontextallocationflags)

_DXGK_CREATECONTEXTALLOCATIONFLAGS structure

Description

Specifies the properties of the context to be allocated.

Members

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.

MapGpuVirtualAddress

Reserved [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.

Remarks

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.

See also

DXGKARGCB_CREATECONTEXTALLOCATION

DxgkCbCreateContextAllocation