D3D12XboxCreateDevice

Creates a device that represents the display adapter.

Syntax

HRESULT D3D12XboxCreateDevice(
         IGraphicsUnknown *pAdapter,
         const D3D12XBOX_CREATE_DEVICE_PARAMETERS *pParameters,
         REFIID riid,
         void **ppDevice
)  

Parameters

pAdapter
Type: IGraphicsUnknown *

[in, optional] A pointer to the video adapter to use when creating a device. Pass null to use the default adapter.

pParameters
Type: D3D12XBOX_CREATE_DEVICE_PARAMETERS *

[in] A pointer to a D3D12XBOX_CREATE_DEVICE_PARAMETERS structure that supplies device creation parameters.

riid
Type: REFIID 

[in] The globally unique identifier (GUID) for the device interface. This parameter riid and ppDevice can be addressed with the single macro IID_PPV_ARGS.

**ppDevice
Type: void 

[out, optional] A pointer to a memory block that receives a pointer to the device.

Return value

Type: HRESULT 

This function can return one of the Direct3D 12 Return Codes.

Requirements

Header: Declared in d3d12_x.h.

Library: Use d3d12_x.lib.