IMFDXGIBuffer::GetResource method
Queries the Microsoft DirectX Graphics Infrastructure (DXGI) surface for an interface.
Syntax
HRESULT GetResource(
[in] REFIID riid,
[out] LPVOID *ppvObject
);
Parameters
- riid [in]
-
The interface identifer (IID) of the interface being requested.
- ppvObject [out]
-
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
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Header |
|
See also