IMFDXGIBuffer::GetSubresourceIndex method
Gets the index of the subresource that is associated with this media buffer.
Syntax
HRESULT GetSubresourceIndex( [out] UINT *puSubresource );
Parameters
- puSubresource [out]
-
Receives the zero-based index of the subresource.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The subresource index is specified when you create the media buffer object. See MFCreateDXGISurfaceBuffer.
For more information about texture subresources, see ID3D11Device::CreateTexture2D.
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