IDXGIFactory4::EnumWarpAdapter method (dxgi1_4.h)
Provides an adapter which can be provided to D3D12CreateDevice to use the WARP renderer.
Syntax
HRESULT EnumWarpAdapter(
[in] REFIID riid,
[out] void **ppvAdapter
);
Parameters
[in] riid
Type: REFIID
The globally unique identifier (GUID) of the IDXGIAdapter object referenced by the ppvAdapter parameter.
[out] 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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | dxgi1_4.h |
Library | Dxgi.lib |