ID3D11On12Device1::GetD3D12Device method (d3d11on12.h)
Retrieves the Direct3D 12 device being interoperated with. This enables better interoperability with a component that might be handed a Direct3D 11 device, but which wants to leverage Direct3D 12 instead.
Syntax
HRESULT GetD3D12Device(
REFIID riid,
void **ppvDevice
);
Parameters
riid
Type: REFIID
A reference to the globally unique identifier (GUID) of the interface that you wish to be returned in ppvDevice
. This is expected to be the GUID of ID3D12Device.
ppvDevice
Type: void**
A pointer to a memory block that receives a pointer to the device. This is the address of a pointer to an ID3D12Device, representing the Direct3D 12 device.
Return value
Type: HRESULT
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 Build 20348 |
Minimum supported server | Windows 10 Build 20348 |
Header | d3d11on12.h |
Library | D3D11.lib |
DLL | D3D11.dll |