D3DKMT_CREATEDEVICE structure (d3dkmthk.h)
The D3DKMT_CREATEDEVICE structure describes a kernel-mode device context.
Syntax
typedef struct _D3DKMT_CREATEDEVICE {
union {
[in] D3DKMT_HANDLE hAdapter;
[in] VOID *pAdapter;
};
[in] D3DKMT_CREATEDEVICEFLAGS Flags;
[out] D3DKMT_HANDLE hDevice;
[out] VOID *pCommandBuffer;
[out] UINT CommandBufferSize;
[out] D3DDDI_ALLOCATIONLIST *pAllocationList;
[out] UINT AllocationListSize;
[out] D3DDDI_PATCHLOCATIONLIST *pPatchLocationList;
[out] UINT PatchLocationListSize;
} D3DKMT_CREATEDEVICE;
Members
[in] hAdapter
A handle to the graphics adapter that the device context is created on. This handle identifies the adapter for user-mode creation.
[in] pAdapter
A pointer to a block of memory for the graphics adapter that the device context is created on. This pointer identifies the adapter for kernel-mode creation.
[in] Flags
A D3DKMT_CREATEDEVICEFLAGS structure that indicates, in bit-field flags, the type of device context to be created.
[out] hDevice
A handle to the device context that the Microsoft DirectX graphics kernel subsystem (Dxgkrnl.sys) supplied and that is returned from the call to the D3DKMTCreateDevice function.
[out] pCommandBuffer
A pointer to command buffer memory that the OpenGL ICD places commands into. The D3DKMTCreateDevice function returns this memory pointer.
[out] CommandBufferSize
The size, in bytes, of the memory block that pCommandBuffer points to. The D3DKMTCreateDevice function returns this size value.
[out] pAllocationList
An array of D3DDDI_ALLOCATIONLIST structures that the OpenGL ICD inserts referenced allocations in.
The D3DKMTCreateDevice function returns this value.
[out] AllocationListSize
The number of elements in the array of allocations that is pointed to by pAllocationList. This quantity of allocations is available when submitting the command buffer that is pointed to by pCommandBuffer to the display miniport driver.
The D3DKMTCreateDevice function returns this value.
[out] pPatchLocationList
An array of D3DDDI_PATCHLOCATIONLIST structures that the OpenGL ICD inserts patching information in.
The D3DKMTCreateDevice function returns this value.
[out] PatchLocationListSize
The number of elements in the patch-location list that is pointed to by pPatchLocationList. This quantity of patch locations is available when submitting the command buffer that is pointed to by pCommandBuffer to the display miniport driver.
The D3DKMTCreateDevice function returns this value.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Header | d3dkmthk.h (include D3dkmthk.h) |