Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the Direct3D 12 device that was used to create this DirectML device.
Syntax
HRESULT GetParentDevice(
REFIID riid,
[out] void **ppv
);
Parameters
riid
Type: REFIID
A reference to the globally unique identifier (GUID) of the interface that you wish to be returned in ppv. This is expected to be the GUID of ID3D12Device.
[out] ppv
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 device.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | directml.h |
Library | DirectML.lib |
DLL | DirectML.dll |