PFND3D12DDI_CREATEDEVICE_0003 callback function (d3d12umddi.h)

The PFND3D12DDI_CREATEDEVICE_0003 function creates a graphics context that is referenced in subsequent calls.

Syntax

PFND3D12DDI_CREATEDEVICE_0003 Pfnd3d12ddiCreatedevice0003;

HRESULT Pfnd3d12ddiCreatedevice0003(
  D3D12DDI_HADAPTER unnamedParam1,
  const D3D12DDIARG_CREATEDEVICE_0003 *unnamedParam2
)
{...}

Parameters

unnamedParam1

A handle to the graphics adapter object that was created with the PFND3D12DDI_OPENADAPTER function.

unnamedParam2

A pointer to a D3D12DDIARG_CREATEDEVICE structure.

Return value

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.

Requirements

Requirement Value
Target Platform Windows
Header d3d12umddi.h