ID3D11DeviceContext::SOGetTargets Method

Get the target output buffers for the stream-output stage of the pipeline.

Syntax

public:
void SOGetTargets(
         UINT NumBuffers,
         ID3D11Buffer **ppSOTargets
)  

Parameters

NumBuffers
Type: UINT 

[in] Number of buffers to get.

ppSOTargets
Type: ID3D11Buffer **

[out, optional] An array of output buffers (see ID3D11Buffer) to be retrieved from the device.

Return value

None.

Remarks

A maximum of four output buffers can be retrieved.

The offsets to the output buffers pointed to in the returned ppSOTargets array may be assumed to be -1 (append), as defined for use in ID3D11DeviceContext::SOSetTargets.

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11DeviceContext

ID3D11DeviceContext Members