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.
Queries the Microsoft DirectX Graphics Infrastructure (DXGI)surface for an interface.
Syntax
HRESULT GetResource(
[in] REFIID riid,
[out] LPVOID *ppvObject
);
Parameters
[in] riid
The interface identifier (IID) of the interface being requested.
[out] ppvObject
Receives a pointer to the interface. The caller must release the interface.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
The object does not support the specified interface. |
|
Invalid request. |
Remarks
You can use this method to get a pointer to the ID3D11Texture2D interface of the surface. If the buffer is locked, the method returns MF_E_INVALIDREQUEST.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | mfobjects.h (include Mfidl.h) |