// d3d12umddi.h
PFND3D12DDI_CREATEDEVICE_0003 Pfnd3d12ddiCreatedevice0003;
HRESULT Pfnd3d12ddiCreatedevice0003(
D3D12DDI_HADAPTER unnamedParam1,
const D3D12DDIARG_CREATEDEVICE_0003 *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The PFND3D12DDI_CREATEDEVICE_0003 function creates a graphics context that is referenced in subsequent calls.
unnamedParam1A handle to the graphics adapter object that was created with the PFND3D12DDI_OPENADAPTER function.
unnamedParam2A pointer to a D3D12DDIARG_CREATEDEVICE structure.
PFND3D12DDI_CREATEDEVICE_0003 returns one of the following values:
| Return code | Description |
|---|---|
| S_OK | The graphics context was successfully created. |
| DXGI_STATUS_NO_REDIRECTION | The graphics context was successfully created. However, the DirectX Graphics Infrastructure (DXGI) should not use the shared resource presentation path to effect communication with the Desktop Windows Manager (DWM). For more information about the DXGI DDI, see Supporting the DXGI DDI . |
| E_OUTOFMEMORY | PFND3D12DDI_CREATEDEVICE_0003 could not allocate the memory that was required for it to complete. |