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;
void D3DKMT_PTR(
VOID *unnamedParam1,
pCommandBuffer unnamedParam2
);
[out] UINT CommandBufferSize;
void D3DKMT_PTR(
D3DDDI_ALLOCATIONLIST *unnamedParam1,
pAllocationList unnamedParam2
);
[out] UINT AllocationListSize;
void D3DKMT_PTR(
D3DDDI_PATCHLOCATIONLIST *unnamedParam1,
pPatchLocationList unnamedParam2
);
[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.
void D3DKMT_PTR( VOID *unnamedParam1, pCommandBuffer unnamedParam2)
[out] CommandBufferSize
The size, in bytes, of the memory block that pCommandBuffer points to. The D3DKMTCreateDevice function returns this size value.
void D3DKMT_PTR( D3DDDI_ALLOCATIONLIST *unnamedParam1, pAllocationList unnamedParam2)
[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.
void D3DKMT_PTR( D3DDDI_PATCHLOCATIONLIST *unnamedParam1, pPatchLocationList unnamedParam2)
[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) |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for