D3DKMT_CREATECONTEXT structure (d3dkmthk.h)

The D3DKMT_CREATECONTEXT structure is used with D3DKMTCreateContext to create a kernel-mode device context.

Syntax

typedef struct _D3DKMT_CREATECONTEXT {
  D3DKMT_HANDLE             hDevice;
  UINT                      NodeOrdinal;
  UINT                      EngineAffinity;
  D3DDDI_CREATECONTEXTFLAGS Flags;
  void                      D3DKMT_PTR(
    VOID               *unnamedParam1,
    pPrivateDriverData unnamedParam2
  );
  UINT                      PrivateDriverDataSize;
  D3DKMT_CLIENTHINT         ClientHint;
  D3DKMT_HANDLE             hContext;
  void                      D3DKMT_PTR(
    VOID           *unnamedParam1,
    pCommandBuffer unnamedParam2
  );
  UINT                      CommandBufferSize;
  void                      D3DKMT_PTR(
    D3DDDI_ALLOCATIONLIST *unnamedParam1,
    pAllocationList       unnamedParam2
  );
  UINT                      AllocationListSize;
  void                      D3DKMT_PTR(
    D3DDDI_PATCHLOCATIONLIST *unnamedParam1,
    pPatchLocationList       unnamedParam2
  );
  UINT                      PatchLocationListSize;
  D3DGPU_VIRTUAL_ADDRESS    CommandBuffer;
} D3DKMT_CREATECONTEXT;

Members

hDevice

[in] A handle to the device that owns the context being created.

NodeOrdinal

[in] The zero-based index of the node that the context is scheduled on.

EngineAffinity

[in] The zero-based index for the engine, within the node that NodeOrdinal specifies, that the context can run in.

Flags

[in] A D3DDDI_CREATECONTEXTFLAGS structure that indicates, in bit-field flags, how to create the context.

void D3DKMT_PTR( VOID *unnamedParam1, pPrivateDriverData unnamedParam2)

PrivateDriverDataSize

[in] The size, in bytes, of the private data that pPrivateDriverData points to.

ClientHint

[in] A D3DKMT_CLIENTHINT value that indicates the type of client that is creating the context.

hContext

[out] A handle to the created device context.

void D3DKMT_PTR( VOID *unnamedParam1, pCommandBuffer unnamedParam2)

CommandBufferSize

[out] The size, in bytes, of the memory block that pCommandBuffer points to.

void D3DKMT_PTR( D3DDDI_ALLOCATIONLIST *unnamedParam1, pAllocationList unnamedParam2)

AllocationListSize

[out] The number of elements in the array of allocations that pAllocationList points to. This quantity of allocations is available when Dxgkrnl submits the command buffer that is pointed to by pCommandBuffer to the display miniport driver.

void D3DKMT_PTR( D3DDDI_PATCHLOCATIONLIST *unnamedParam1, pPatchLocationList unnamedParam2)

PatchLocationListSize

[out] The number of elements in the patch-location list that pPatchLocationList points to. This quantity of patch locations is available when Dxgkrnl submits the command buffer that is pointed to by pCommandBuffer to the display miniport driver.

CommandBuffer

[out] The GPU virtual address of the command buffer memory.

Requirements

Requirement Value
Minimum supported client Windows Vista
Header d3dkmthk.h (include D3dkmthk.h)

See also

D3DDDI_ALLOCATIONLIST

D3DDDI_CREATECONTEXTFLAGS

D3DDDI_PATCHLOCATIONLIST

D3DKMTCreateContext