Bewerken

Delen via


D3DDDICB_CREATECONTEXT structure (d3dumddi.h)

The D3DDDICB_CREATECONTEXT structure describes a context to create.

Syntax

typedef struct _D3DDDICB_CREATECONTEXT {
  [in]  UINT                      NodeOrdinal;
  [in]  UINT                      EngineAffinity;
  [in]  D3DDDI_CREATECONTEXTFLAGS Flags;
  [in]  VOID                      *pPrivateDriverData;
  [in]  UINT                      PrivateDriverDataSize;
  [out] HANDLE                    hContext;
  [out] VOID                      *pCommandBuffer;
  [out] UINT                      CommandBufferSize;
  [out] D3DDDI_ALLOCATIONLIST     *pAllocationList;
  [out] UINT                      AllocationListSize;
  [out] D3DDDI_PATCHLOCATIONLIST  *pPatchLocationList;
  [out] UINT                      PatchLocationListSize;
        D3DGPU_VIRTUAL_ADDRESS    CommandBuffer;
} D3DDDICB_CREATECONTEXT;

Members

[in] NodeOrdinal

The zero-based index for the node that the context is scheduled on.

[in] EngineAffinity

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

[in] Flags

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

[in] pPrivateDriverData

A pointer to private data that is passed to a display miniport driver.

[in] PrivateDriverDataSize

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

[out] hContext

A handle to the context that the pfnCreateContextCb function creates.

[out] pCommandBuffer

A pointer to the first command buffer for the created context.

[out] CommandBufferSize

The size, in bytes, of the first command buffer for the created context, which pCommandBuffer points to.

[out] pAllocationList

An array of D3DDDI_ALLOCATIONLIST structures for the first allocation list for the created context.

[out] AllocationListSize

The number of elements in the allocation-list array that pAllocationList specifies.

[out] pPatchLocationList

An array of D3DDDI_PATCHLOCATIONLIST structures for the first patch-location list for the created context.

[out] PatchLocationListSize

The number of elements in the patch-location-list array that pPatchLocationList specifies.

CommandBuffer

This member is reserved and should be set to zero.

This member is available beginning with Windows 7.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDI_ALLOCATIONLIST

D3DDDI_CREATECONTEXTFLAGS

D3DDDI_PATCHLOCATIONLIST

pfnCreateContextCb