D3DDDICB_CREATECONTEXT structure

The D3DDDICB_CREATECONTEXT structure describes a context to create.

Syntax


typedef struct _D3DDDICB_CREATECONTEXT {
  UINT                      NodeOrdinal;
  UINT                      EngineAffinity;
  D3DDDI_CREATECONTEXTFLAGS Flags;
  VOID                      *pPrivateDriverData;
  UINT                      PrivateDriverDataSize;
  HANDLE                    hContext;
  VOID                      *pCommandBuffer;
  UINT                      CommandBufferSize;
  D3DDDI_ALLOCATIONLIST     *pAllocationList;
  UINT                      AllocationListSize;
  D3DDDI_PATCHLOCATIONLIST  *pPatchLocationList;
  UINT                      PatchLocationListSize;
#if D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN7
  D3DGPU_VIRTUAL_ADDRESS    CommandBuffer;
#endif 
} D3DDDICB_CREATECONTEXT;

Members

NodeOrdinal

[in] The zero-based index for 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.

pPrivateDriverData

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

PrivateDriverDataSize

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

hContext

[out] A handle to the context that the pfnCreateContextCb function creates.

pCommandBuffer

[out] A pointer to the first command buffer for the created context.

CommandBufferSize

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

pAllocationList

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

AllocationListSize

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

pPatchLocationList

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

PatchLocationListSize

[out] 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

Version

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

 

 

Send comments about this topic to Microsoft

Show: