// d3dumddi.h
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;
View the official Windows Driver Kit DDI referenceNo description available.
The D3DDDICB_CREATECONTEXT structure describes a context to create.
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.
CommandBufferThis member is reserved and should be set to zero.
This member is available beginning with Windows 7.