Bewerken

Delen via


DXGK_CREATECONTEXTALLOCATIONFLAGS structure (d3dkmddi.h)

Specifies the properties of the context to be allocated.

Syntax

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;

Members

[in] SharedAcrossContexts

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

[in] Reserved

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.

[in] Value

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.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header d3dkmddi.h (include D3dkmddi.h)

See also

DXGKARGCB_CREATECONTEXTALLOCATION

DxgkCbCreateContextAllocation