> ## 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](/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](/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList/id3d12graphicscommandlist_xs)


## Related topics

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