IDXGIFactory4::EnumWarpAdapter method

Provides an adapter which can be provided to D3D12CreateDevice to use the WARP renderer.

Syntax

HRESULT EnumWarpAdapter(
  REFIID riid,
  void   **ppvAdapter
);

Parameters

riid

Type: REFIID

The globally unique identifier (GUID) of the IDXGIAdapter object referenced by the ppvAdapter parameter.

ppvAdapter

Type: void**

The address of an IDXGIAdapter interface pointer to the adapter. This parameter must not be NULL.

Return Value

Type: HRESULT

Returns S_OK if successful; an error code otherwise. For a list of error codes, see DXGI_ERROR. See also Direct3D 12 Return Codes.

Remarks

For more information, see DXGI 1.4 Improvements.

Requirements

   
Target Platform Windows
Header dxgi1_4.h
Library Dxgi.lib

See Also

DXGI Interfaces

IDXGIFactory4