> ## 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

> 設定串流輸出緩衝區檢視。

設定串流輸出緩衝區檢視。

## 語法

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

### 參數

*StartSlot \[in]*\
類型：UINT

裝置以零為起始之陣列的索引，從此處開始設定串流輸出緩衝區。

*NumViews \[in]*\
類型：UINT

<i>pViews</i> 陣列中的項目數。

*pViews \[in, optional]*\
類型：const D3D12\_STREAM\_OUTPUT\_BUFFER\_VIEW \*

指定 [D3D12\_STREAM\_OUTPUT\_BUFFER\_VIEW](/zh-TW/reference/graphics/d3d12/structs/d3d12_stream_output_buffer_view_public) 結構的陣列。

### 傳回值

類型：void

無。

## 需求

**標頭:** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫:** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**: XBOX Series 主機與 XBOX One 系列

## 另請參閱

[ID3D12GraphicsCommandList](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList/id3d12graphicscommandlist_xs)


## Related topics

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