> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SOSetTargets

> Sets the stream output buffer views.

Sets the stream output buffer views.

## Syntax

```cpp theme={null}
void SOSetTargets(
    UINT StartSlot,
    UINT NumViews,
    const D3D12_STREAM_OUTPUT_BUFFER_VIEW  pViews
)
```

### Parameters

*StartSlot \[in]*\
Type: UINT

Index into the device's zero-based array to begin setting stream output buffers.

*NumViews \[in]*\
Type: UINT

The number of entries in the <i>pViews</i> array.

*pViews \[in, optional]*\
Type: const D3D12\_STREAM\_OUTPUT\_BUFFER\_VIEW \*

Specifies an array of  [D3D12\_STREAM\_OUTPUT\_BUFFER\_VIEW](/reference/graphics/d3d12/structs/d3d12_stream_output_buffer_view_public) structures.

### Return value

Type: void

None.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[ID3D12GraphicsCommandList](/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList/id3d12graphicscommandlist_xs)


## Related topics

- [D3D12_STREAM_OUTPUT_BUFFER_VIEW](/reference/graphics/d3d12/structs/d3d12_stream_output_buffer_view_public.md)
- [OMSetRenderTargets](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_omsetrendertargets_public.md)
- [SetShapeSrcPitchTarget](/reference/audio/shapesrccontext/functions/setshapesrcpitchtarget.md)
- [SetShapeFiltVolQTarget](/reference/audio/shapefiltvolcontext/functions/setshapefiltvolqtarget.md)
- [SetShapeEqCompGainTarget](/reference/audio/shapeeqcompcontext/functions/setshapeeqcompgaintarget.md)
