Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Mfobjects.h (include Mfidl.h)

See also

IMFDXGIBuffer

 

 

Show:
© 2017 Microsoft